[Haskell-cafe] cabal probems with binary/containers packages

brian briand at aracnet.com
Wed Oct 28 21:10:50 EDT 2009


That was indeed the problem.

I edited the pkg-config file by hand.

I followed your advice anyway and unregistered and re-installed.

Everythingworks now.

Thanks for your help.

Brian

On Oct 28, 2009, at 11:58 AM, Duncan Coutts wrote:

> On Wed, 2009-10-28 at 07:07 -0700, brian wrote:
>> Just found the following file:
>>
>> .ghc/powerpc-darwin-6.10.1/pkg-config
>>
>> and it is referring to 0.5.0.1.
>>
>> Is there anyway to regenerate the file, or is it broken because of a
>> problem with the package ?
>
>>>> It all started with this:
>>>>
>>>> Loading package binary-0.5.0.1 ... can't load .so/.DLL for:
>>>> HSbinary-0.5.0.1 (dlopen(libHSbinary-0.5.0.1.dylib, 9): image not
>>>> found)
>
>
> What's (probably) going on is that you deleted the files for the
> binary-0.5.0.1 package but did not unregister it. You probably also  
> have
> other registered packages that depend on binary-0.5.0.1 (because  
> that's
> the version they were built against).
>
> You can use ghc-pkg to forcibly unregister binary-0.5.0.1 and rebuild
> the other packages that depended on it.
>
> Generally I recommend just leaving old packages and rebuilding things
> when necessary (which cabal-install will do automatically) rather than
> going about deleting or unregistering older versions of packages.
>
> Duncan



More information about the Haskell-Cafe mailing list