cabal removeLink denied on Mac

Ulrich Vollert ulrivo at gmx.de
Sun Mar 20 17:29:42 CET 2011


Hi,

I installed the Haskell-Platform 2011.2.0.0 on my Mac with Mac OS X 10.6.6...and I am happy with it ;-)

After some problems with directories and files under /private/var/folders, I get an error message whenever I try to use Cabal to install new packages.

For instance:

................................................
cabal install sqlite
Warning: The package list for 'hackage.haskell.org' is 28 days old.
Run 'cabal update' to get the latest list of available packages.
Resolving dependencies...
Configuring sqlite-0.5.2...
Warning: 'include-dirs: include' directory does not exist.
Warning: 'hs-source-dirs: .' directory does not exist.
cabal: Missing dependency on a foreign library:
* Missing header file: sqlite3-local.h
* Missing C library: sqlite3
This problem can usually be solved by installing the system package that
provides this library (you may need the "-dev" version). If the library is
already installed but in a non-standard location then you can use the flags
--extra-include-dirs= and --extra-lib-dirs= to specify where it is.
cabal: Error: some packages failed to install:
sqlite-0.5.2 failed while unpacking the package. The exception was:
/var/folders/Ks/Ks-bTCXtGXaCQnMtMuXr4k+++TI/-Tmp-/sqlite-0.5.23531/sqlite-0.5.2:
removeLink: permission denied (Operation not permitted)
................................................


"cabal update" works without an error message but generates the warning that the package list is old....?

I assume that there is a permission problem with /private/var/folders but I dont know how to fix it.

Regards
Ulrich







More information about the Libraries mailing list