[Haskell-cafe] cabal library dependencies

Nehir Sonmez nehir.sonmez at bsc.es
Mon Oct 8 09:03:03 EDT 2007

Hi All,

To test some programs written in CABAL, I need to use a server (where I 
do not have root access) with GHC 6.6.1 (in-place) installed. However, 
many programs need more libraries that have to be installed, (such as 
binary, or derive) for which, even when I use ./Setup configure 

1) After the ./Setup build, it can not do ./Setup install correctly 
because I am not root, ie.
 Installing: /usr/local/lib/derive-0.1/ghc-6.6.1 & /usr/local/bin 
 Setup: /usr/local/lib/derive-0.1: createDirectory: permission denied 
(Permission denied)

2) But the .o and the .a files are created. However possibly due to (1), 
I can not make the program see the library, so in the end when I try 
configuring the program, I get (for example):
 Setup: cannot satisfy dependency derive-any

possible solutions I could think of were:
 2) use configure with a --with flag
 3) copying the library files to the prefix directory of the program I
ultimately want to run
 4) The -L flag

and still no luck, so here I am asking for your help... Thanks a lot in 
-Nehir Sonmez

More information about the Haskell-Cafe mailing list