471,326 Members | 1,827 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,326 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 962
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 discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

5 posts views Thread by Mike S. | last post: by
1 post views Thread by python-listNOSPAMthankyou | last post: by
reply views Thread by mmarkzon | last post: by
9 posts views Thread by Paul Watson | last post: by
5 posts views Thread by Py PY | last post: by
1 post views Thread by vduber6er | last post: by
11 posts views Thread by ZMY | last post: by
3 posts views Thread by Mathias Waack | last post: by
reply views Thread by rosydwin | last post: by

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.