[SOLVED] huge perl binary file after compiling 5.16.0
Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
A few years ago, I compiled perl 5.10.0 on my old server. The binary file was 16KB
I'm installing a new server with perl 5.16.0 and the resulting perl binary is 1.5MB ...
I run tones of perl scripts on the server, there is no way that I load a huge binary without reason.
My compile options and optimizations have nothing really special or stupid.
Anyone has experienced this or may have suggestions?
THANKS!
[ revising post: I misunderstood the original question! ]
Just FYI, recently compiled my own, too:
Code:
$ ./perl -v
This is perl 5, version 14, subversion 2 (v5.14.2) built for x86_64-linux
Code:
$ du -h perl
1.4M perl
I'd point out that more and more modules keep getting included in the "core" perl. I am not planning to go through this myself at the moment, but this may be illuminating: perldoc - History/Changes.
I really don't know, but one hypothesis is that the Unicode support changes added a lot of size. Feel free to investigate further.
I just tried something I've never tried before :
To compile my old 5.10.0 on my new machine.
And the binary is now 1.2MB instead of 16KB ...
So it apparently does not come from the version, but from my configurations...
I have no idea what to check!
I wonder how I managed to make a 16KB binary but I also wonder how a perl binary can be almost the size of my kernel... that's ridiculous!
Last edited by MisterBark; 07-12-2012 at 04:04 PM.
It might be worth moving this to the Programming forum, but (for me) for a 'deep Perl' qn like this, I'd ask over at perlmonks.org; its where the Perl community hangs out, inc those that actually create Perl itself..
It might be worth moving this to the Programming forum, but (for me) for a 'deep Perl' qn like this, I'd ask over at perlmonks.org; its where the Perl community hangs out, inc those that actually create Perl itself..
Duh, I had a strange feeling I was missing something obvious. A quick query with the file(1) command could have told us whether we're dealing with dynamically- or statically-linked perl. Thanks for posting the followup from perlmonks.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.