![]() configure -prefix=/home/user_name/local LDFLAG='-L/home/user_name/local/lib' CFLAGS='-I/home/user_name/local/include' CPPFLAGS='-I/home/user_name/local/include' CXXFLAGS='-I/home/user_name/local/include'Īn. Then when you compile git, you need to update the compile flags so they look in the correct location for the dependency's libraries and include files. If you find that you need to install dependencies, compile and install them as above. Of course, the pain with installing from source is that you don't get automatic dependency resolution. ![]() When compiling I set the prefix to the local directory $ configure -prefix=/home/user_name/local I download source as I would to /usr/local when I have root, e.g., in ~/local/git. My standard practice has become to compile from source to a local directory in my home $ mkdir ~/local There are ways to install rpms in a user directory using rpm, but I don't believe it is straight-forward.
0 Comments
Leave a Reply. |