473,395 Members | 2,798 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.

Compiling python2.5.1 results in 3.5MB python lib?

Hi all,

I'm compiling 2.5.1 and end up with a 3.5MB libpython2.5.so file. I
seem to remember it should be somewhere around the 1MB mark. What
could be causing this?

I'm using ./configure --enable-shared

This is a problem for me seeing as i'm using apache+mod_python to
serve web content. Each apache child process incorporates libpython
and ends up starting at 7MB, which is quite large. Especially
considering the framework + code I'm using adds another 10+MB.

Any help is appreciated. Let me know if i need to give some more
information.

Jul 27 '07 #1
4 1008
On 7/27/07, simonbun <si********@gmail.comwrote:
Hi all,

I'm compiling 2.5.1 and end up with a 3.5MB libpython2.5.so file. I
seem to remember it should be somewhere around the 1MB mark. What
could be causing this?

I'm using ./configure --enable-shared

This is a problem for me seeing as i'm using apache+mod_python to
serve web content. Each apache child process incorporates libpython
and ends up starting at 7MB, which is quite large. Especially
considering the framework + code I'm using adds another 10+MB.

Any help is appreciated. Let me know if i need to give some more
information.
Shared libraries are *shared*. The size of them is irrelevant for the
purpose you list here.
Jul 27 '07 #2
I'm compiling 2.5.1 and end up with a 3.5MB libpython2.5.so file. I
seem to remember it should be somewhere around the 1MB mark. What
could be causing this?
Try stripping it.

Regards,
Martin
Jul 28 '07 #3
On Jul 28, 11:07 am, "Martin v. Löwis" <mar...@v.loewis.dewrote:
I'm compiling 2.5.1 and end up with a 3.5MB libpython2.5.so file. I
seem to remember it should be somewhere around the 1MB mark. What
could be causing this?

Try stripping it.

Regards,
Martin
How would I go about doing this? I'm not sure what to strip nor how to
do it.

Thanks,
Simon

Jul 29 '07 #4
On Jul 29, 12:46 pm, simonbun <simonce...@gmail.comwrote:
....
How would I go about doing this? I'm not sure what to strip nor how to
do it.
man strip

-- bjorn

Jul 29 '07 #5

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

Similar topics

5
by: Mike S. | last post by:
Hello, Has anyone had success compiling the informixdb-1.3 module under python 2.2? It seems the absense of makefile.pre.in in python 2.2 causes the break under py2.2. Is there an easy way...
1
by: python-listNOSPAMthankyou | last post by:
Can you  help me, can you pass me onto someone who can? Whilst compiling: rpmbuild --rebuild python2.3-2.3.4-2pydotorg.src.rpm I got an error: RPM build errors:     user jafo does not exist -...
0
by: mmarkzon | last post by:
I have been struggling compiling linkchecker from http://linkchecker.sourceforge.net/. The last thing I get is "error: command 'gcc' failed with exit status 1" which is not very helpful. This is...
9
by: Paul Watson | last post by:
Any ideas why ./Modules/cjkcodecs/_codecs_cn.c fails to compile? It appears that the CODEC_STATELESS macro is concatenating 'hz' with a number and text. building '_codecs_cn' extension cc...
5
by: Py PY | last post by:
(Apologies if this appears twice. I posted it yesterday and it was held due to a 'suspicious header') I'm having a hard time trying to get a couple of tests to pass when compling Python 2.3.5 on...
1
by: vduber6er | last post by:
Hello, I just recently switched my code from one server to another and now having some problems compiling my code. I was able to compile fine with my last server now but this current one is...
2
by: metaperl | last post by:
I've tried both Python 2.4.4 and Python 2.5. I'm trying to build from source and install under a local directory Swarm since OpenSwarm requires builds of Postgres and Python under it's control. ...
11
by: ZMY | last post by:
Dear all, I am a real newbie for both python and QNX, but I am still trying to compile Numeric-24.2 under QNX4.25 with python 2.2. I got following error message: $ sudo python setup.py...
3
by: Mathias Waack | last post by:
After switching my development environment to 64 bit I've got a problem with a python extension for a 32 bit application. Compiling the app under Linux results in the following error: g++ -m32...
6
by: grbgooglefan | last post by:
I am compiling CPP program which uses CPython API functions from Python 2.5.1 source code First I compiled with this commanline, that time I got "pyconfig.h" not found. g++ -Os -I../../Include...
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
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
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
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
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.