Errors with make while installing Perl 5.8

trex

Registered
I'm running 10.2.6 and I'm trying to install Perl 5.8 according to Apple's instructions that can be found here:

http://developer.apple.com/internet/macosx/perl.html

./Configure went well but when I ran make I got 2 major errors.

One of them was:

cc1: warning: changing search order for system directory "/usr/local/include"

So I found this thread:
http://www.xray.mpe.mpg.de/mailing-lists/perl5-porters/2002-05/msg01650.html

and added:

Dlocincpth=' '

to the ./Configure command and it removed the above error

However when running make again I still get this error:

`sh cflags "optimize='-O3'" toke.o` toke.c
CCCMD = cc -DPERL_CORE -c -pipe -fno-common -no-cpp-precomp -fno-strict-aliasing -O3 -Wall
{standard input}:unknown:FATAL:can't create output file: toke.o
make: *** [toke.o] Error 1

I have already tried make distclean in order to clean out the configuration. Anyone know what else I can try to get Perl 5.8 to install?
 
Usually that happens when you have a permission problem - try doing sudo make and see if you still get that problem.

Note that if you use sudo for make, you'll have to use it for make clean or make distclean as well.
 
hello,

sudo did the trick. I'm running make test now -- so hopefully everything else will go smooth. I heard Fink breaks after installing 5.8 so I'll look into fixing that if need be

thanks :)
 
ok I got Perl 5.8 to install after implementing:

sudo make
and then of course
sudo make test
sudo make install

however I had alot of problems with Fink and Perl 5.8. there's been a good amount of threads on this at mac os x hints and apple's developer mailing list.


errors include:
dyld: perl Undefined symbols:
_Perl_safefree
_Perl_safemalloc
_Perl_saferealloc
_Perl_sv_2pv
_Perl_sv_catpvn

It was suggested that I recompile the Fink libraries (first I needed to remove them and rebuild)

However I just decided to remove all modules from the Following Fink installs:

/sw/lib/perl5/darwin/
/sw/lib/perl5/

I used:

sudo rm -Rf *

to remove all the modules. Just to be on the safe side I also removed everything from (using sudo rm-Rf *):

/Library/Perl
/System/Library/Perl

this should have removed all of the 5.6 modules from my system. Then I ran sudo make install again with my Perl build.

I also deleted .cpan in my home directory to see if that would help in my problems with CPAN - loading - I was getting the same errors above when loading:

perl -MCPAN -e shell

after doing all of this Perl 5.8 seems to be purring nicely and I have installed all of my old modules again using the cpan shell

Here are some other helpful URL's that I used:


http://www.mail-archive.com/macosx@perl.org/msg04384.html

http://www.macosxhints.com/article.php?story=20030510134717974
 
Back
Top