Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re: Module compilation hell

by The Mad Hatter (Priest)
on Mar 30, 2004 at 22:12 UTC ( #341113=note: print w/ replies, xml ) Need Help??


in reply to Module compilation hell

I hope you're not trying to deal with the dependencies of large modules by hand as it sounds. Check out CPAN.pm (comes with Perl, try perl -MCPAN -e shell) and CPANPLUS. They handle downloading, compiling, and installing a module and all of its prerequisites for you.


Comment on Re: Module compilation hell
Download Code
Re: Re: Module compilation hell
by Anonymous Monk on Mar 30, 2004 at 23:07 UTC
    I used 'perl -MCPAN -e shell' on both Panther and Fedora Core. Many of the failed compilations failed on both machines. The machines also have different Apaches (1.3/OSX and 2/Fedora) so I doubt it is an Apache version issue.
      I can tell you that Mac OS X installs of modules can be a little daunting, but most of the time they are doable. It sounds like you are not very comfortable with compiling and the underlying OS and utilities listed above. you need to consider this, perl is not CPAN. CPAN is a wonderful stash of great modules (perl, XS, inline C, ...) that can be used to save huge amounts of development time, make hard problems seem simple, and generally reduce the amount _YOU_ need to code -- they can come at a cost. The cost to you the programmer is that you must learn more about how your OS, compiler, and perl itself works to use them sometimes. Most module developers that post to CPAN make every effort to make the install of their modules as painless as possible. Considering how many platforms perl runs on and then multiply that by the obscene amount of other variables on the install base of those systems -- they have to offload some of the work to you. Perl, PHP, Python, Ruby, Java, C, C++ whatever you end up using to code will only allow you to stay at a low level of expertise in your OS and other utilities for varying short points of time. In my opinion, perl makes up for the offloaded work easily ten fold -- but if you do not want to learn and cope with the speedbumps, there is absolutely nothing holding you back from PHP or Ruby whatever -- is a free world out there, use what you like and are comfortable with. Just do not underestimate the amount of time CPAN and perl can save you (even with the learning curve sometimes required) -- In this world time is the most valuable commodity.


      -Waswas
        My problem can be solved by switching to PHP but the broader issue here is how Perl's potential is held back by all this. I've not doubt Perl's decline relative to PHP in the webdev sphere is due, in part, to its relative unusability re module compilation and dependency. This should be of concern to the Perl community.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://341113]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (3)
As of 2014-10-25 04:14 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    For retirement, I am banking on:










    Results (141 votes), past polls