By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
444,050 Members | 1,019 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 444,050 IT Pros & Developers. It's quick & easy.

Compiling python2.5.1 results in 3.5MB python lib?

P: n/a
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
Share this Question
Share on Google+
4 Replies


P: n/a
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

P: n/a
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

P: n/a
On Jul 28, 11:07 am, "Martin v. Lwis" <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

P: n/a
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.