1
Because I don't have the administration permission on the Linux server, so I have to install all the software with configure
, make
, make install
to a local directory so as to avoiding permission denied.
For example, I will do the following to install a program:
./configure --prefix=/myDir/bin
make
make install
After the installation, I get some files created in the /myDir/bin
, such as:
bin/
include/
lib/
lib64/
libexec/
share/
My question is after the installation, what should I do?
With some searching, I find that to many about set LD_LIBRARY_PATH
, LIBRARY_PATH
, PKG_CONFIG_PATH
... But I'm not quite clear about the functionality of those settings.
What is the complete setting and configuration after make install?
Thanks for your replay, currently I meet such a case, where I need to compile and install the
git
from source. It turns out that it needszlib
installed beforehand. So I turn to install thezlib
into the/myDir
and and/myDir
intoLD_LIBRARY_PATH
. But when Imake git
, it still shows can not findzlib.h
. I know one solution is toconfigure
with--with-zlib
, is there a way to avoid that with just setting? – 宇宙人 – 2014-10-18T00:38:39.943Yes, you need to set
CFLAGS
andLDFLAGS
variables. I edited my answer. – lemonsqueeze – 2014-10-18T08:00:45.660