HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Installing Python 2.3.2 from source
Operating System - HP-UX
1830938
Members
1948
Online
110017
Solutions
Forums
Categories
Company
Local Language
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
back
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-01-2003 04:45 AM
12-01-2003 04:45 AM
Installing Python 2.3.2 from source
Hey y'all, I'm trying to install Python 2.3.2 from the source files (since last I checked there wasn't a depot for it yet).
I'm getting a host of errors. When I tried to compile as is, using cc, it would fail, mostly giving me errors about using options that are only available with ANSI/C. So I installed gcc 3.3.2 and tried again; it got a lot further, but then it gave me a lot of "_POSIX_C_SOURCE redefined" errors, and finally failed with this:
gcc -pthread -Wl,-E -Wl,+s -o python \
Modules/python.o \
libpython2.3.a -lnsl -lrt -ldld -lm
/usr/ccs/bin/ld: Unsatisfied symbols:
PyThread_acquire_lock (code)
PyThread_exit_thread (code)
PyThread_allocate_lock (code)
PyThread_free_lock (code)
PyThread_start_new_thread (code)
PyThread_release_lock (code)
PyThread_get_thread_ident (code)
PyThread__init_thread (code)
collect2: ld returned 1 exit status
*** Error exit code 1
I heard that editing out the "O" option from the makefile (turning off optimization) could help, but I get the same error. Any ideas?
Thanks!!!!
I'm getting a host of errors. When I tried to compile as is, using cc, it would fail, mostly giving me errors about using options that are only available with ANSI/C. So I installed gcc 3.3.2 and tried again; it got a lot further, but then it gave me a lot of "_POSIX_C_SOURCE redefined" errors, and finally failed with this:
gcc -pthread -Wl,-E -Wl,+s -o python \
Modules/python.o \
libpython2.3.a -lnsl -lrt -ldld -lm
/usr/ccs/bin/ld: Unsatisfied symbols:
PyThread_acquire_lock (code)
PyThread_exit_thread (code)
PyThread_allocate_lock (code)
PyThread_free_lock (code)
PyThread_start_new_thread (code)
PyThread_release_lock (code)
PyThread_get_thread_ident (code)
PyThread__init_thread (code)
collect2: ld returned 1 exit status
*** Error exit code 1
I heard that editing out the "O" option from the makefile (turning off optimization) could help, but I get the same error. Any ideas?
Thanks!!!!
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-01-2003 02:14 PM
12-01-2003 02:14 PM
Re: Installing Python 2.3.2 from source
Hello Matt,
Refer to the foll. link for info.
http://diveintopython.org/installing_python/source.html
HTH.
Regards,
Hemanth
Refer to the foll. link for info.
http://diveintopython.org/installing_python/source.html
HTH.
Regards,
Hemanth
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-02-2003 01:22 AM
12-02-2003 01:22 AM
Re: Installing Python 2.3.2 from source
That website details the commands used to install the software, which are already described in the README, and which I have already attempted.
Has nobody seen anything like this error before? When I google some of the errors I get a lot of hits, but no resolutions. Have I come across the unfixable bug?
Thanks!
Has nobody seen anything like this error before? When I google some of the errors I get a lot of hits, but no resolutions. Have I come across the unfixable bug?
Thanks!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-02-2003 07:43 AM
12-02-2003 07:43 AM
Re: Installing Python 2.3.2 from source
I have not compiled python on my HPUX11.0 platform. But I have compiled other stuff and seen similar errors.
libpython2.3.a -lnsl -lrt -ldld -lm
/usr/ccs/bin/ld: Unsatisfied symbols:
I would check your $PATH. Make sure gcc's directories are before the CC's. I bet it is still using part of the original c compiler.
Check to see if you need to set CC=GCC or cc=gcc ..or cc=/opt/gcc/bin/gcc...or.... you get the idea. But I assume that was in the documentation already.
Also I have had problems where I needed to install gmake and binutils before I could get gcc to work right. At least that's what I needed for compiling perl.
hope my guess helps.
steve
libpython2.3.a -lnsl -lrt -ldld -lm
/usr/ccs/bin/ld: Unsatisfied symbols:
I would check your $PATH. Make sure gcc's directories are before the CC's. I bet it is still using part of the original c compiler.
Check to see if you need to set CC=GCC or cc=gcc ..or cc=/opt/gcc/bin/gcc...or.... you get the idea. But I assume that was in the documentation already.
Also I have had problems where I needed to install gmake and binutils before I could get gcc to work right. At least that's what I needed for compiling perl.
hope my guess helps.
steve
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP