Fwd: Re: Problems installing Python on server

jim-on-linux inq1ltd at inqvista.com
Thu Jan 31 10:43:01 EST 2008


On Thursday 31 January 2008 09:46, 
jim-on-linux wrote:
> > > Also be careful and setup all the
> > > paths that is required for compiling
> > > various Python modules etc.
> > >
> > > On Jan 29, 8:28 am, Yansky
> >
> > <thegoodd... at gmail.com> wrote:
> > > > I asked my hosting company if they
> > > > would upgrade Python on my server to
> > > > the latest version. They responded
> > > > with:
> > > >
> > > > "Sorry no. We tend to stick with
> > > > what comes packaged with the unix
> > > > distribution to ease maintenance
> > > > issues.
> > > >
> > > > There is nothing stopping you from
> > > > running your own version of python
> > > > from within your own account.
> > > > Download the source and compile it
> > > > and install it into your own space.
> > > > Adjust the fist line of your python
> > > > scripts to reflect the location of
> > > > YOUR python binary:
> > > >
> > > > #! /home/youraccount/yourlibs/python
> > > >
> > > > and you should be all set."
> >
> > Go to the ReadME file after you unpack
> > python.
> > Open  and look for   "Installing".
> > Read the section, it explains how to
> > install on the entire system and how to
> > install locally.
> > "Make altinstall"  is what you are
> > looking for.
> >
> > jim-on-linux
> > http:\\www.inqvista.com
> >
> > > > The build instructions for Python
> > > > are: To start building right away
> > > > (on UNIX): type "./configure" in the
> > > > current directory and when it
> > > > finishes, type "make". This creates
> > > > an executable "./python"; to install
> > > > in usr/local, first do "su root" and
> > > > then "make install".
> > > >
> > > > The problem is, I don't have root
> > > > access to the server so I can't do
> > > > the "make install". I have ubuntu on
> > > > my computer, but from what I
> > > > understand I can't compile it on
> > > > that and upload it because the
> > > > server runs Red Had and the
> > > > ./configure would have made it
> > > > incompatible right?
> > > >
> > > > So how can I build Python without
> > > > root access?
>
> Will the "make install" make my Python the
>  default one? If I want to install some
>  Python modules, will I need to alter
> their installation as well or will it see
> my Python version as the right one to
> install too?
>
> Cheers.
From the Readme file enclose with Python;

------
" If you have a previous installation of 
Python that you don't
want to replace yet, use

	make altinstall  

This installs the same set of files as "make 
install" except it
doesn't create the hard link to 
"python<version>" named "python" and
it doesn't install the manual page at all. "
------


I installed python 2.5 
using make altinstall by going to 
 
" /usr/local/lib " 
  unpacking, then using 
   make altinstall

Folder 2.5 is created.
To add modules, as I have added PIL to my 
system, I go to;

" /usr/local/lib/python2.5/site-packages "
where I installed PIL.

installing a py module in the site-packages 
folder is where I would install any package 
unless otherwise directed.  When upgrading 
you can go to the site directory and see 
what's in there, and what has to be added to
a new upgrade.

http:\\www.inqvista.com

jim-on-linux






More information about the Python-list mailing list