Yeah, this is a totally non-obvious part of the way Julia's package manager 
works, "rm" doesn't delete anything, it removes the requirement for the 
package to be installed then re-runs dependency resolution. Packages that 
are no longer required don't get deleted, they get moved to .trash. 
Sometimes this is a good thing, but often it results in trying to put back 
a broken copy of the package instead of re-starting from scratch.

I have a proposal I opened a few weeks ago to tweak some of this behavior, 
still need to put together a prototype implementation of my suggested 
change.


On Tuesday, June 9, 2015 at 4:25:14 PM UTC-7, Yifei Ni wrote:
>
> Oh I see what you mean by delete the package at .trash.
>
> On Tuesday, June 9, 2015 at 7:22:33 PM UTC-4, Yifei Ni wrote:
>>
>> I have tried Pkg.update(). Besides, I have used Pkg.rm() before using 
>> Pkg.clone(). Is this correct?
>>
>> On Tuesday, June 9, 2015 at 7:18:40 PM UTC-4, Tony Kelman wrote:
>>>
>>> Have you done Pkg.init() and Pkg.update() ?
>>>
>>> If you tried using Pkg.clone at any point, you may need to remove the 
>>> copy of Zlib that is now at joinpath(Pkg.dir(),".trash","Zlib")
>>>
>>>
>>> On Tuesday, June 9, 2015 at 4:12:33 PM UTC-7, Yifei Ni wrote:
>>>>
>>>> Hi Tony,
>>>>
>>>> Here is the full error message.
>>>>
>>>> julia> Pkg.add("Zlib")
>>>> ERROR: unknown package Zlib
>>>>  in wait at task.jl:51
>>>>  in sync_end at task.jl:311
>>>>  in add at pkg/entry.jl:319
>>>>  in add at pkg/entry.jl:71
>>>>  in anonymous at pkg/dir.jl:28
>>>>  in cd at file.jl:30
>>>>  in cd at pkg/dir.jl:28
>>>>  in add at pkg.jl:20
>>>>
>>>>
>>>> On Tuesday, June 9, 2015 at 5:34:05 PM UTC-4, Tony Kelman wrote:
>>>>>
>>>>> What is the full error message when you try Pkg.add("Zlib") ?
>>>>>
>>>>>
>>>>> On Tuesday, June 9, 2015 at 1:57:21 PM UTC-7, Yifei Ni wrote:
>>>>>>
>>>>>> Hi everyone,
>>>>>>
>>>>>> I am now confronting a problem of adding the package Zlib when I try 
>>>>>> to add the package GSL. The Pkg.add() cannot find Zlib and Pkg.clone("
>>>>>> https://github.com/dcjones/Zlib.jl.git";) fixed the version of Zlib 
>>>>>> at 0.0.0- which is in conflict with requirement of WinRPM, which is 
>>>>>> [0.1.4,inf). Does anyone know how to solve this problem?
>>>>>>
>>>>>> Thanks,
>>>>>> Yifei
>>>>>>
>>>>>

Reply via email to