How to use local shared library while compiling the FOSS project?
I want to compile guile on shared hosting but when I run ./configure I've got error:
configure: error: GNU MP 4.1 or greater not found, see README
so I've downloaded GMP and tried to install it locally (found in answer to this question on Stack Overflow install library in home directory)
mkdir /home/jcubic/lib
./configure --prefix=/home/jcubic/
make
make install
it created this files in /home/jcubic/lib
libgmp.a
libgmp.la
libgmp.so
libgmp.so.10
libgmp.so.10.3.1
then I've run configure from guile directory (found the option by reading configure script):
./configure --with-libgmp-prefix=/home/jcubic
but the error remain, how can I use local GNU MP file while running guile ./configure and make?
As a sum up of the comments. One has to add the environment variables as follows.