New Perl-Installation on new OS X

[email protected] (Marek Stepanek)
Newsgroups perl.macosx
Message-ID <[email protected]>

Hello all!


I have a new laptop. Apparently my Perl-Installation has problems. I 
tried to update all outdated modules with cpanplus; but I get on many, 
not all, modules error-messages, like:

	Unable to create a new distribution object for 'HTML::Entities'

or

	format not a string literal and no format arguments

With IO::Pty I got this message:

	(see conf/compilerok.log). Suggestions:
	1) The complier 'gcc-4.2' is not in your PATH. Add it
    	to the PATH and try again. OR
	2) The compiler isn't installed on your system. Install it. OR
	3) You only have a different compiler installed (e.g. 'gcc').
    	Either fix the compiler config in the perl Config.pm
   	or install a perl that was built with the right compiler
    	(you could build perl yourself with the available compiler).

making

	% which gcc 	

I get:

	/usr/bin/gcc
making

	% gcc -v		

I get:
	Using built-in specs.
	Target: i686-apple-darwin10
	Configured with: /var/tmp/gcc/gcc-5666.3~123/src/configure 
--disable-checking --enable-werror --prefix=/usr --mandir=/share/man 
--enable-languages=c,objc,c++,obj-c++ 
--program-transform-name=/^[cg][^.-]*$/s/$/-4.2/ --with-slibdir=/usr/lib 
--build=i686-apple-darwin10 --program-prefix=i686-apple-darwin10- 
--host=x86_64-apple-darwin10 --target=i686-apple-darwin10 
--with-gxx-include-dir=/include/c++/4.2.1
	Thread model: posix
	gcc version 4.2.1 (Apple Inc. build 5666) (dot 3)

in /usr/bin my gcc is properly linked to gcc@ -> gcc-4.2


So, gcc seems to be al right. Is it possible, that the migration 
assistant has mixed up, 32bit compiled modules with 64bit? Or is there a 
confusion with the Perl of Fink? Here my Perl:

	% perl -V
Summary of my perl5 (revision 5 version 10 subversion 0) configuration:
   Platform:
     osname=darwin, osvers=10.0, archname=darwin-thread-multi-2level
     uname='darwin pizzly.apple.com 10.0 darwin kernel version 10.0.0: 
fri jul 31 22:46:25 pdt 2009; root:xnu-1456.1.25~1release_x86_64 x86_64 '
     config_args='-ds -e -Dprefix=/usr -Dccflags=-g  -pipe  -Dldflags= 
-Dman3ext=3pm -Duseithreads -Duseshrplib -Dinc_version_list=none 
-Dcc=gcc-4.2'
     hint=recommended, useposix=true, d_sigaction=define
     useithreads=define, usemultiplicity=define
     useperlio=define, d_sfio=undef, uselargefiles=define, usesocks=undef
     use64bitint=define, use64bitall=define, uselongdouble=undef
     usemymalloc=n, bincompat5005=undef
   Compiler:
     cc='gcc-4.2', ccflags ='-arch x86_64 -arch i386 -arch ppc -g -pipe 
-fno-common -DPERL_DARWIN -fno-strict-aliasing -I/usr/local/include',
     optimize='-Os',
     cppflags='-g -pipe -fno-common -DPERL_DARWIN -fno-strict-aliasing 
-I/usr/local/include'
     ccversion='', gccversion='4.2.1 (Apple Inc. build 5646)', 
gccosandvers=''
     intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=1234
     d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=16
     ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t', 
lseeksize=8
     alignbytes=8, prototype=define
   Linker and Libraries:
     ld='gcc-4.2 -mmacosx-version-min=10.6.3', ldflags ='-arch x86_64 
-arch i386 -arch ppc -L/usr/local/lib'
     libpth=/usr/local/lib /usr/lib
     libs=-ldbm -ldl -lm -lutil -lc
     perllibs=-ldl -lm -lutil -lc
     libc=/usr/lib/libc.dylib, so=dylib, useshrplib=true, 
libperl=libperl.dylib
     gnulibc_version=''
   Dynamic Linking:
     dlsrc=dl_dlopen.xs, dlext=bundle, d_dlsymun=undef, ccdlflags=' '
     cccdlflags=' ', lddlflags='-arch x86_64 -arch i386 -arch ppc 
-bundle -undefined dynamic_lookup -L/usr/local/lib'


Characteristics of this binary (from libperl):
   Compile-time options: MULTIPLICITY PERL_DONT_CREATE_GVSV
                         PERL_IMPLICIT_CONTEXT PERL_MALLOC_WRAP USE_ITHREADS
                         USE_LARGE_FILES USE_PERLIO USE_REENTRANT_API
   Locally applied patches:
	/Library/Perl/Updates/<version> comes before system perl directories
	installprivlib and installarchlib points to the Updates directory
   Built under darwin
   Compiled at Jan 26 2010 17:48:54
   %ENV:
     PERL5LIB="/sw/lib/perl5:/sw/lib/perl5/darwin"
   @INC:
     /sw/lib/perl5/5.10.0/darwin-thread-multi-2level
     /sw/lib/perl5/5.10.0
     /sw/lib/perl5/darwin-thread-multi-2level
     /sw/lib/perl5
     /sw/lib/perl5/darwin
     /Library/Perl/Updates/5.10.0/darwin-thread-multi-2level
     /Library/Perl/Updates/5.10.0
     /System/Library/Perl/5.10.0/darwin-thread-multi-2level
     /System/Library/Perl/5.10.0
     /Library/Perl/5.10.0/darwin-thread-multi-2level
     /Library/Perl/5.10.0
     /Network/Library/Perl/5.10.0/darwin-thread-multi-2level
     /Network/Library/Perl/5.10.0
     /Network/Library/Perl
     /System/Library/Perl/Extras/5.10.0/darwin-thread-multi-2level
     /System/Library/Perl/Extras/5.10.0


Thank you for your help!



marek
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.