473,372 Members | 947 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,372 software developers and data experts.

Install from source on a x86_64 machine

Hello all,

Being relatively new to linux I'm a little confused about what options
I need to use to build python from source.

Currently, I have python installed as part of the inital RHEL4 load
located at /usr/bin/Python and /usr/bin/Python2.3 . Some of the files
are located in /usr/lib64/Python2.3 and in /usr/lib/Python2.3 .
Please let me know if you need dir lsitings.

I'm trying to compile from source and plan on using the
--enable-unicode=ucs4 option for the configure script due to some RHEL
messing around with Tcl/Tk.

*** How do I get make altinstall to put the appropriate files in
/usr/lib64/Python2.4 and /usr/lib/Python2.4 respectively ? ***

Respectfully,
Christopher Taylor
Oct 18 '06 #1
4 1697
Christopher Taylor wrote:
>
Being relatively new to linux I'm a little confused about what options
I need to use to build python from source.
The README should provide sufficient information, although if you want
to install Python into /usr rather than /usr/local (as I believe is the
default), you need to run configure as follows:

../configure --prefix=/usr
Currently, I have python installed as part of the inital RHEL4 load
located at /usr/bin/Python and /usr/bin/Python2.3 . Some of the files
are located in /usr/lib64/Python2.3 and in /usr/lib/Python2.3 .
Please let me know if you need dir lsitings.
In fact, it's /usr/bin/python, /usr/bin/python2.3, /usr/lib64/python2.3
and /usr/lib/python, since Red Hat hasn't decided to capitalise the
name of the software. ;-)
I'm trying to compile from source and plan on using the
--enable-unicode=ucs4 option for the configure script due to some RHEL
messing around with Tcl/Tk.

*** How do I get make altinstall to put the appropriate files in
/usr/lib64/Python2.4 and /usr/lib/Python2.4 respectively ? ***
The configured Makefile together with the various other tools should
work out where to put the libraries. I'm a newcomer to x86-64, although
I've had some relatively recent experience with sparc64, and whilst I'm
not really familiar with the way the various tools choose the install
directory of libraries, I've noticed that sometimes 64-bit libraries
end up in lib rather than lib64. Meanwhile, I notice that the Red Hat
libraries do adhere correctly to the expectation that 32-bit libraries
are found under /usr/lib/python2.3 and 64-bit libraries are found under
/usr/lib64/python2.3.

Perhaps you should configure and make Python, then run the install
process in "pretend" mode:

make -n altinstall

You'll get a huge amount of output, but this should at least tell you
what the installation process is thinking of doing, and it won't be
overwriting anything important while it does so.

Paul

Oct 19 '06 #2
The README should provide sufficient information, although if you want
to install Python into /usr rather than /usr/local (as I believe is the
default), you need to run configure as follows:

./configure --prefix=/usr
Yeah, I saw that in the readme.
>
In fact, it's /usr/bin/python, /usr/bin/python2.3, /usr/lib64/python2.3
and /usr/lib/python, since Red Hat hasn't decided to capitalise the
name of the software. ;-)
ok you got me, type-o ....
The configured Makefile together with the various other tools should
work out where to put the libraries. I'm a newcomer to x86-64, although
I've had some relatively recent experience with sparc64, and whilst I'm
not really familiar with the way the various tools choose the install
directory of libraries, I've noticed that sometimes 64-bit libraries
end up in lib rather than lib64. Meanwhile, I notice that the Red Hat
libraries do adhere correctly to the expectation that 32-bit libraries
are found under /usr/lib/python2.3 and 64-bit libraries are found under
/usr/lib64/python2.3.

Perhaps you should configure and make Python, then run the install
process in "pretend" mode:

make -n altinstall

You'll get a huge amount of output, but this should at least tell you
what the installation process is thinking of doing, and it won't be
overwriting anything important while it does so.

ok, so where does that leave me. I'm not even sure which files
*should* be put in /lib64 vs lib.
>>I guess what I'm expecting is a congifure option to specify where
architecture dependent files should be put. <<<

Has anyone else mentioned this before?

Respectfully,
Christopher Taylor
Oct 19 '06 #3
Christopher Taylor wrote:
>
ok, so where does that leave me. I'm not even sure which files
*should* be put in /lib64 vs lib.
I'd imagine that anything which is a .so file (plus the modules which
depend on it, I suppose) should be put in the appropriate library
directory. Thus, 32-bit libraries should go into
/usr/lib/python2.4/site-packages and 64-bit libraries should go into
/usr/lib64/python2.4/site-packages. That said, I can see things that
I've installed via distutils (and various make; make install
combinations) that are in the "wrong" directory.
>I guess what I'm expecting is a congifure option to specify where
architecture dependent files should be put. <<<
Generally, the install process should respect the prefix (ie. /usr in
your case, /usr/local in the default case) and then choose the
appropriate library directories below that (ie. /usr/lib, /usr/lib64 in
your case), but I can't find anything obvious in the README about
specifying architecture-dependent install directories.
Has anyone else mentioned this before?
I'd be interested to hear more about this as well.

Paul

Oct 19 '06 #4
Generally, the install process should respect the prefix (ie. /usr in
your case, /usr/local in the default case) and then choose the
appropriate library directories below that (ie. /usr/lib, /usr/lib64 in
your case), but I can't find anything obvious in the README about
specifying architecture-dependent install directories.

Well that's pretty much what's happening ... either the 64bit libs
aren't being put in /usr/lib64 ... they're all being put in /usr/lib
or they were never compiled up in 64bit mode. The only think I can
think of is that the configure script doesn't check the mode the OS is
running in and take appropriate steps, ie.e compile the libs in both
32 and 64 bit mode and place them accordingly.

I know this is a problem because when I try and compile up mod_python
it's telling I'm getting the following error when it tries to link
libpython2.4.a :
/usr/bin/ld: /usr/lib/python2.4/config/libpython2.4.a(abstract.o):
relocation R_X86_64_32 against `a local symbol' can not be used when
making a shared object; recompile with -fPIC
/usr/lib/python2.4/config/libpython2.4.a: could not read symbols: Bad value

Which basically means to me that for whatever reason, when python
compiled up, the ./configure script didn't see that the os was running
in 64bit mode and compile the libraries in PIC mode, something I think
that is required for libraries on a 64bit OS.
Respectfully,
Christopher Taylor
Oct 19 '06 #5

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

Similar topics

10
by: Sam | last post by:
we are running windows 2003 server. it has NET framework installed, but doesn't have Visual Studio etc. installed on it. i created a new sulotion/project on my development pc and FTP'd it up to our...
1
by: Peter Hartmann | last post by:
Hello, I could really use some help. I'm trying to install a python program on centos4 x86_64. When I run 'python setup.py' it ends up in /usr/lib64/python2.3/site-packages/ instead of...
1
by: Peter Hartmann | last post by:
How do I influence the platform type during install? Could you look at this and tell me what I'm doing wrong? It's still using information from get_platform instead of using my preference. #...
0
by: Joshua Maeir | last post by:
Hi, Running VS Studio 2003 DotNet Framework 1.1 On XP Pro I have an application and a matching deployment project(actualy several)that have been developed under my own user account.
7
by: p | last post by:
WE had a Crystal 8 WebApp using vs 2002 which we upgraded to VS2003. I also have Crystal 9 pro on my development machine. The web app runs fine on my dev machine but am having problems deploying....
0
by: DarkBlue | last post by:
Trying to install wxPython on Suse10.1 64 with gcc4.1.0 and get wxPython-src-2.6.3.2/wxPython # python setup.py install Found wx-config: /usr/local/bin/wx-config Using flags: --toolkit=gtk2...
3
by: Florian Demmer | last post by:
Hi! I am doing a from source installation of Python 2.5 on some old Debian machine. As the target directoy I want /opt/somename so i added it to the configure like so: ../configure...
3
by: Bruno LIVERNAIS | last post by:
Hi, We are currently installing a DB2 V9 ESE on a Linux server (RHEL4U4-x86_64). Installation runs successfully on each node. Database user environment is OK and the instance is well created. To...
2
by: danfan46 | last post by:
Hi! Im trying tro install v9fp3_linuxx64_exp but get the message: This fix pack is not valid for any DB2 products that are installed on this system. The logfile from the install does not relieve...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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...

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.