I'm using Haskell on webfaction server, with non root access, on a CentOS 6 system.
I have a /lib/
folder which contain libraries.
Actually, i have a problem with some libraries needed for an installation of package using cabal install
.
I need the libgsasl
library installed, so i download and compile the gsasl package from sources :
./configure --prefix=$HOME
to install compiled libraries into $HOME/lib
make
and make install
Next, i try two way with cabal install gsasl
command, which actually fails :
export LD_LIBRARY_PATH=$HOME/lib:$LD_LIBRARY_PATH
cabal install gsasl --bindir=$HOME/bin --extra-include-dirs=/home/reyman64/lib/ --extra-lib-dirs=/home/reyman64/lib
Any of the command found the good libraries ...
The pkg-config package 'libgsasl' version superior to 1.1 is required but it could not be found.
So i verify, my version is 1.8, and i have the libgsasl.sa .la .so .so.7 .so.7.9.6 in $HOME/lib
and i have a libgsasl.pc
into $home/lib/pkgconfig
Any idea of the problem ?
Make sure your PKG_CONFIG_PATH
environment variable is set to include $HOME/lib/pkgconfig
, i.e. the directory where you've placed libgsasl.pc
.