cybler has asked for the wisdom of the Perl Monks concerning the following question:

Thank you monks for your help so far. Taking the good advice from my last question, I am leaving 5.8, which was installed with the OS on the system and trying to install 5.005_03 along side it.

This is Red Hat Enterprise Linux v3.0 running kernel 2.4.21-9.EL. The compilers I think it trys to is one of these:
libgcc-3.2.3-24
gcc-3.2.3-24
...I think...when it asks what compiler to use, I take the default, which it displays as "cc".

The install I'm working from, I believe came from cpan some time ago. The tar ball was still on the old server, so I'm using that. The name to be exact is perl5.005_03.tar.gz.

I run sh Configure and take almost all the defaults, except that I want it installed in /usr/local/bin and not /usr/bin. That part seems to run without any errors that I can see.

It finishes and I run make and get the following error:

make: *** No rule to make target `<built-in>', needed by `miniperlmain.o'. Stop.

Any idea what might be wrong? I suspect I should be using an older or different compiler. I saved the output from running Configure and also have the config.sh file if that might be helpful.

Please help, I'm lost.

Thanks!

Replies are listed 'Best First'.
Re: Compiling 5.005_03
by ysth (Canon) on Mar 10, 2004 at 04:34 UTC
    Older perl's have trouble with gcc 3's output. I suggest you use 5.005_04 instead. The changes in _04 are almost exclusively things to make it build using newer compilers.

    Or fix the broken makefiles using your newer perl:

    cd into_your_build_directory perl -ni~ -we 'print unless /: </' x2p/makefile makefile
    (taken from Nicholas Clark in http://groups.google.com/groups?selm=20031107204924.GR6287@plum.flirble.org)
Re: Compiling 5.005_03
by cybler (Acolyte) on Mar 10, 2004 at 20:16 UTC
    Thanks for the tip, 5.005_04 is doing much better. I have hit one snag but am not sure if it is critical or not. I've tried many different way around this, but can't make this test pass. This occurs during the make test phase:

    lib/db-btree.......Can't locate DB_File.pm in @INC (@INC contains: ../lib) at lib/db-btree.t line 21. BEGIN failed--compilation aborted at lib/db-btree.t line 21. FAILED at test 0

    I re-ran the make and make test on the old server and this test is skipped there. That server is running RH 7.1. Thanks