473,395 Members | 1,464 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,395 software developers and data experts.

libpython2.3.a Linux

Hello,

I'm trying to build a python module in the form of an .so file but I keep
getting the following message :

/usr/bin/ld cannot find -llibpython2.3

I have all the necessary files in /usr/local/src/Python-2.3.5

with libpython2.3.a and libpython2.3.so files

g++ -I /usr/local/src/Python-2.3.5/Include -L /usr/local/src/Python-2.3.5 -
shared -fPIC -l libpython2.3 -o file.so

Running on Fedora Core 3 - 1.7.0

made the following steps in compiling and installing Python :

../configure
make
make install
make libpython2.3.so

Compiling on windows 2k is fine.

Thanks for any input.

David

Jul 19 '05 #1
1 2108
David wrote:
Hello,

I'm trying to build a python module in the form of an .so file but I keep
getting the following message :

/usr/bin/ld cannot find -llibpython2.3

I have all the necessary files in /usr/local/src/Python-2.3.5

with libpython2.3.a and libpython2.3.so files

g++ -I /usr/local/src/Python-2.3.5/Include -L /usr/local/src/Python-2.3.5 -
shared -fPIC -l libpython2.3 -o file.so
Close:

g++ -I/usr/local/src/Python-2.3.5/Include -L/usr/local/src/Python-2.3.5
-shared -fPIC -lpython2.3 -o file.so

Please read the man page (or equivalent documentation) for the correct
way to use options in g++.
Running on Fedora Core 3 - 1.7.0

made the following steps in compiling and installing Python :

./configure
make
make install
make libpython2.3.so

Compiling on windows 2k is fine.

Thanks for any input.

David

HTH,
--ag

--
Artie Gold -- Austin, Texas
http://it-matters.blogspot.com (new post 12/5)
http://www.cafepress.com/goldsays
Jul 19 '05 #2

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

Similar topics

4
by: Jhuola Hoptire | last post by:
Just installed J2RE 1.4.2 on a Linux server. I am very knew to the POSIX world. I couldn't dig-up much in the docs or via google about the following: 1 - Is there a standard way to make sure...
2
by: Douglass Turner | last post by:
Hi, Please release me from my own private hell. Platform: SuSE 8.1 I'm installing python 2.3 tarball as follows: ../configure --enable-shared make
0
by: Eric Raymond | last post by:
When installing the rpms (or the tar file) onto Red Hat Enteprise Linux AS Beta 1 (Taroon), we get the follwing error: Installing all prepared tables /usr/bin/mysql_install_db: line 1: 7690...
6
by: gnu | last post by:
Rationale to use Linux ======================= - I can't afford paying for $199 for the license of an OS that's arguably better thank Linux for each of 10 computers I have. - I want to be...
0
by: HajoEhlers | last post by:
Hi folks, maybe somebody can help. I am trying to build python 2.4.2 on AIX 5.1 with gcc 3.3.2 The build option for python are: $ ./configure \ --enable-unicode \ --enable-shared \...
5
by: Levi Campbell | last post by:
what is /usr/lib/libpython2.4.so used for?
5
by: cranium.2003 | last post by:
hi, Here is my code #include <iostream.h> int main() { cout <<"HI"; return 0; } and using following command to compile a C++ program g++ ex1.cpp -o ex1
0
by: Raven | last post by:
Hi, I compiled a python script using cxFreeze because I need a standalone application, while the Windows version runs without any python installation the linux version of the executable is linked...
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
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...
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
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...

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.