help with PYTHONHOME / unix

Harry George hgg9140 at seanet.com
Tue May 23 18:37:26 EDT 2000


This is typically done in your shell resource file, in your home dir.
If you happen to have Beazley's Essential Reference (which is a good
idea), see pg 84.

For csh or tcsh, edit ".cshrc":
setenv PYTHONHOME /opt/python

For bash edit ".bashrc"; for ksh edit ".kshrc":
export PYTHONHOME=/opt/python


In both cases, PYTHONHOME can point to the general python home (as above) or
to both the general home and the exec home, by doing a path
concatenation, e.g.:

export PYTHONHOME=/opt/python:/usr/local/my_special_python

You will have to "source" the "rc" file before it will take effect -- the
easiest way may be to just log out and log back in.

Frank Mattes <mattes at rfhsm.ac.uk> writes:

> Hi all,
> 
> I'm new in this group and my question might be silly for most of us, 
> however I could't find
> the answer on the net.
> I'm compiling a program "pybliographer-1.0.0" which needs python 
> 1.5.2. I have installed python from the binaries on my hp-ux, which 
> has a slightly different install tree.
> 
> Python is installed in
> 
> /opt/python
> 
> with 
> 
> /opt/python/bin  			<------ the program
> /opt/python/lib/python1.5 		<------ the lib files
> /opt/python/include/python1.5 	<------ the include files
> 
> the "configure" script gives the following error:
> 
> checking for python... /opt/python/bin/python
> checking python version... Could not find platform dependent libraries 
> <exec_prefix>
> Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>]
> 1.5
> checking python devel... Could not find platform dependent libraries 
> <exec_prefix>
> Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>]
> found
> 
> However I don't know how to set-up the variable.
> 
> Can anybody help me.
> I appreciate any help
> 
> Frank
> Department of Virology
> Royal Free Hospital, London
> 
> 
> 

-- 
Harry George
hgg9140 at seanet.com



More information about the Python-list mailing list