Adding paths to compiled packages

Hi,
While compiling packages, i use the option --prefix=/home/user/pkg_name. So by default the paths to the bin, include and lib are not set. I can set the paths to the bin directory by using the export PATH= syntax in ~/.bashrc.
Could someone tell me if there is some global file(s) where i can add these paths, at least for include and lib, so that i do not have to keep adding them every time i compile any other package which needs the headers and libs? I heard that using the option LD_LIBRARY_PATH is not recommended.

Hi
If you run ./configure --help it will show all the options you can use,
I normally set the prefix as /usr and libdir=/usr/lib or /usr/lib64 if
it’s on a 64bit machine. Why put in your home directory, or is this a
machine you don’t have root access on?


Cheers Malcolm °¿° (Linux Counter #276890)
openSUSE 11.0 x86 Kernel 2.6.25.18-0.2-default
up 2 days 22:14, 2 users, load average: 1.31, 1.26, 1.27
GPU GeForce 6600 TE/6200 TE - Driver Version: 177.82

Hi,
I have root access, but in a reply to one of my threads, oldcpu said that it is advisable to keep my compiled packages in /home (a separate partition) since this would enable upgradations of my OS. Also, i can delete the packages if i wish. Whats more, a couple of the packages created executables of the same name, so i need to avoid such clashes.
Is it difficult to set these paths?

Hi
oldcpu may have meant your built packages, not when you run the install
command. If you keep them and wish to uninstall you can generally run
the uninstall command; eg


mkdir build
cd build
cp  ~/downloads/<someprog.tar.gz> .
tar zxf <someprog.tar.gz>
cd someprog
../configure --prefix=/usr --libdir=/usr/lib --mandir=/usr/share/man
make
sudo make install

Then at a later date to uninstall;


cd build/someprog
sudo make uninstall

You may also want to read up on creating them as rpms if they have spec
files available.

Another command I use is nohup to capture output of configure, make and
make install commands, this is especially useful if there is no
uninstall routine.


Cheers Malcolm °¿° (Linux Counter #276890)
openSUSE 11.0 x86 Kernel 2.6.25.18-0.2-default
up 2:20, 2 users, load average: 0.33, 0.16, 0.15
GPU GeForce 6600 TE/6200 TE - Driver Version: 177.82