473,396 Members | 1,891 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Problems installing Python on server

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."

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?
Jan 28 '08 #1
7 1746
On 28 jan, 22:28, Yansky <thegoodd...@gmail.comwrote:
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."

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".

This is the "default" install. You want to have a look at the ./
configure flags (doing ./configure --help) and set the right options
for your custom install.
The problem is, I don't have root access to the server so I can't do
the "make install".
You don't need root access to install in your own home directory -
this is only needed to do a system wide 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?
Indeed
So how can I build Python without root access?
cf above : type ./configure --help, read on, set appropriate options,
and proceed !-)

HTH
Jan 28 '08 #2
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...@gmail.comwrote:
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."
>
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?
Jan 29 '08 #3
On Tuesday 29 January 2008 01:20, Devraj
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...@gmail.comwrote:
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?
Jan 29 '08 #4


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...@gmail.comwrote:
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.

-------------------------------------------------------
Jan 31 '08 #5
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...@gmail.comwrote:
>>>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?
The "default one"? That's just the one that runs when a user enters the

python

command, right? "make install" will install Python wherever you told the
configure utility to build it for. "make altinstall" is a convenience
method that (IIRC) builds for /usr/local/bin.

Generally speaking when you install an extension or other module,
nowadays you use the command

python setup.py install

The installation takes place in whichever copy of Python runs setup.py,
so with a "default" /usr/bin/python and an "alternate"
/usr/local/bin/python, to install a module in the alternate you would run

/usr/local/bin/python setup.py install

The same is true of a Python you have installed somewhere under your
home directory.

regards
Steve
--
Steve Holden +1 571 484 6266 +1 800 494 3119
Holden Web LLC http://www.holdenweb.com/

Jan 31 '08 #6
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...@gmail.comwrote:
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

Jan 31 '08 #7
On 28 Jan, 22:28, Yansky <thegoodd...@gmail.comwrote:
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.
Which version are they running, by the way?
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."
This sounds like reasonable advice, I suppose.
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 think that the "su root" stuff is just there in anticipation of
people trying to configure, build and install Python without thinking
too hard about it and then finding that they get lots of errors about
installing into places they don't have permissions for. If you're
installing into a different location, you only need to have
permissions to write to that location.
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?
If you have shell access on the hosting service and they have
compilers available, you can just do the build and install there.
Building on your own computer and having the executable work on the
server is likely to be more difficult due to the usual library
versioning issues that arise between distributions - it'd be
interesting to see if anyone can suggest a solution for this involving
the LSB tools.
So how can I build Python without root access?
Something like this:

mkdir /home/youraccount/apps # optional - see below
./configure --prefix=/home/youraccount/apps
make
make install

Here, the apps directory in your home directory will contain the usual
UNIX directory structure that you would otherwise see in /usr:
directories such as bin, lib, share (probably), and so on. You'll find
the python executable as /home/youraccount/apps/bin/python.

Some people like to mimic the full UNIX structure and have a usr
directory (either underneath or instead of the apps directory employed
above); others prefer to have the bin, lib (and other directories) in
their home directory (thus omitting the apps directory); you get to
choose. ;-)

I hope this helps!

Paul
Jan 31 '08 #8

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Alex Lapp | last post by:
Hi ng, i have a problem installing cvs module from: http://www.object-craft.com.au/projects/csv/ My Python version is: Python 2.1.3 (Not the latest, but i need this version for running Zope...
0
by: Adelein and Jeremy | last post by:
I have just installed Python 2.3.3, after first installing Tcl/Tk 8.4.6. After successful installation of Tcl/Tk (including passing configure the '--enable-shared' option), and testing both Tcl...
2
by: Justin Lemkul | last post by:
Hello all, I am hoping someone out there will be able to help me. I am trying to install a program that utilizes NumPy. In installing NumPy, I realized that I was lacking Atlas. I ran into...
1
by: 3f | last post by:
Hello; We have made a web application that people can download from our web site and installed on: Windows XP Windows 2000 Professional Windows 2003 Server Windows 2000 Server
2
by: mb12036 | last post by:
All- Having a problem installing a DB2 client on a machine running AIX version 5.0. Client appeared to install one time succesfully, then was uninstalled and a reinstall was attempted. For...
4
by: James | last post by:
I have a VB windows forms application that accesses a Microsoft Access database that has been secured using user-level security. The application is being deployed using No-Touch deployment. The...
4
by: Nico Grubert | last post by:
Hi there, I'd like to install Python 2.3.5. on a 64-Bit OS (Suse Linux Enterprise Server 10) on an AMD Opteron 64-Bit machine. I have to use Python 2.3.5. Do I need a special source archive...
5
by: paw | last post by:
I have ran the MSI installer for Python 2.5 several times attempting to install to C: Python, however all of the files are placed in C:\ . The installer is told to only install files for me,...
15
by: John Nagle | last post by:
I've been installing Python and its supporting packages on a dedicated server with Fedora Core 6 for about a day now. This is a standard dedicated rackmount server in a colocation facility,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.