Click to See Complete Forum and Search --> : adding a few things to the PATH
Linux_N00bie
10-06-2001, 10:13 PM
i realize that i need to add PERL 5.6.1, TK, and TCL to the PATH before they work.. i know the path is in /etc/profile , but like where in the text file do i add them? and if you know where TCL and TK rpm's install to (what folder) that would help so i know what to put in the PATH ;)
Malakin
10-07-2001, 02:05 AM
To see where an rpm puts it's files you do this "rpm tcl*rpm -qpl" to list the files, and if you just want to see ones put in bin directories you could a "rpm tcl*rpm -qpl | grep bin"
You will notice that both tcl and tk when installed off the mandrake CD's are put in /usr/bin/ and therefore you don't need to play with the PATH or add in symlinks for them.
If you've installed an rpm from elsewhere I suggest uninstalling it "rpm tcl tk -e" and installing the ones off the CD.
If you want to play with your PATH anyways near the end of /etc/profile there's an addition to PATH that you can just tack onto.
bdg1983
10-07-2001, 03:04 AM
In /etc/profile, you should have a line similiar to
PATH="/bin:/usr/bin:/scripts"
and also
export PATH (among others) at the end
Just insert the additional path at the end (just before ") and separated by a :
PATH="/bin:/usr/bin:/scripts:/new/path"
Linux_N00bie
10-07-2001, 08:48 AM
okay, i used activestate's PERL rpm installer, and am running mandrake 8.0, I then added PERL's /bin to my path (/usr/local/ActivePerl-5.6/bin) and ran export path and source profile. Both didn't get any errors, yet perl is still on 5.6.0, when i downloaded 5.6.1 ... ? Why isn't it working properly?