Hiya All,
I want to install python but I don't have root priviledges on the server. How do I install it in my home directory?
(I'm not even sure WHERE I should install it).
I'm using bash, I've created ~/usr and ~/usr/local and ~/usr/local/bin but I'm not doing anything with them right now. I've also added the ~/usr/local/bin directory to my path.
I can download python okay, I can run "tar -zxvf Python-2.3.4.tgz" just fine... I can even run "./configure"
but I don't want to install it in the default directory... so where should I install it?
what command should I run?
"./configure --prefix=~/usr/local" or is another place better?
Thanks! -- Nathan
This is what I would recommend (I've never done this with Python specifically, but with other apps it works pretty well):
mkdir ~/python # or wherever you want to put it in your home dir tar -zxvf Python-2.3.4.tgz cd Python # or whatever the directory is ./configure --prefix=~/python make make install
Now everything python should be under ~/python. The executable will be ~/python/bin/python. Now if you ever want to get rid of it (maybe to replace with a newer version) just do an 'rm -rf ~/python'. If you want python in your path you just put a line in your .bash_profile:
export PATH=$PATH:~/python/bin
There might be some more library path settings and such to take care of, I don't know much about python so I can't help you there.
You could do the ./configure --prefix=~/usr/local like you said above, but if you do that with a bunch of different apps they all get mixed together under ~/usr/local. This is fine until you want to remove or upgrade them and you realize that you didn't keep the source around so you could type 'make uninstall'. That's why I recommended what I did.
Bryan
_______________________________________________ newbies mailing list [EMAIL PROTECTED] http://phantom.byu.edu/cgi-bin/mailman/listinfo/newbies
