New Perl-Installation on new OS X
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
Re: New Perl-Installation on new OS X
On Wed, Jun 8, 2011 at 10:02 AM, Marek Stepanek marekstepa...@yahoo.co.uk wrote: I have a new laptop. Congrats! I have a new iMac, so I know the feeling. :-) 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. Did you reinstall Xcode, or did you migrate it from your old machine? If you migrated, you might want to try installing a fresh copy of Xcode. sherm-- -- Cocoa programming in Perl: http://camelbones.sourceforge.net
Re: New Perl-Installation on new OS X
At 16:02 +0200 08/06/2011, Marek Stepanek wrote: ...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: 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 ... I think you're going to have trouble until you get rid of everything Fink has installed and everything it's changed in /usr/bin. If I were you I'd probably delete /usr/bin/perl and replace it with a link but I'd wait for others to give you more experienced advice. I would also install the latest Xcode. Note that gcc -v will give you gcc-4.0 and not gcc-4.2 unless you have replaced Apple's original link, so maybe Fink did that too. JD
Re: New Perl-Installation on new OS X
On 08.06.2011 17:31, John Delacour wrote: At 16:02 +0200 08/06/2011, Marek Stepanek wrote: ...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: 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 ... I think you're going to have trouble until you get rid of everything Fink has installed and everything it's changed in /usr/bin. If I were you I'd probably delete /usr/bin/perl and replace it with a link but I'd wait for others to give you more experienced advice. I would also install the latest Xcode. Note that gcc -v will give you gcc-4.0 and not gcc-4.2 unless you have replaced Apple's original link, so maybe Fink did that too. JD Thank you John, Thank you Sherm! I did install the new XCode. offtopicMy new laptop was a not really cheap: 2600 Euros, and Apple is asking for the XCode download 3.90 Euros. This is nit-picking in my eyes. I don't know, where Apple is going, but I see in the last years only toys and no real support of professionals./offtopic gcc-4.2 was installed with the latest XCode 4.0.2 Is Fink installing into /usr/bin ? Or is it a misunderstanding? Probably there are old and new mixed up from migrating from my back-up. marek
Re: New Perl-Installation on new OS X
On 08.06.2011 18:03, Melton Low wrote: xCode 4 should have been included with your new Mac. Check in the Optional Application install disc. Mel Not here in Germany :-( In old times there was XCode on the optional installer DVD. Now there are only toys: iDVD, Sound Jingles, iPhoto ... That's all, what Apple offers as extra for a 2600 Euro computer ... marek
Re: New Perl-Installation on new OS X
On Wed, Jun 8, 2011 at 11:31 AM, John Delacour j...@bd8.com wrote: I think you're going to have trouble until you get rid of everything Fink has installed and everything it's changed in /usr/bin. Fink neither changes nor installs anything in /usr/anything. It's all under /sw. sherm-- -- Cocoa programming in Perl: http://camelbones.sourceforge.net
Re: New Perl-Installation on new OS X
At 17:55 +0200 08/06/2011, Marek Stepanek wrote: gcc-4.2 was installed with the latest XCode 4.0.2 Is Fink installing into /usr/bin ? Or is it a misunderstanding? I have both gcc-4.0 and gcc-4.2 in /usr/bin but gcc points to gcc-4.0. I have Xcode version 3.2.6 and I see in Get Info that there is an option to open in 32-bit mode. That may have been switched on in the migration... but listen to wiser counsel than mine. offtopicMy new laptop was a not really cheap: 2600 Euros, and Apple is asking for the XCode download 3.90 Euros. This is nit-picking in my eyes. I don't know, where Apple is going, but I see in the last years only toys and no real support of professionals. I have been thinking so all day after watching the announcement of iCloud, a complete non-happening designed, like everything Apple, for shop-happy groupees. It is free, up to a point, once you have bought your latest Mac, your latest iPhone and your latest iPad, paid the interest on the loans and the subscription to all the service providers for the connectivity needed to download tune after useless tune at an inflated price. My first 128K Mac with a dot matrix printer cost me over $4,000 in 1984, so the writing has been on the wall for a long time. /offtopic JD
Re: New Perl-Installation on new OS X
At 18:16 +0200 08/06/2011, Marek Stepanek wrote: On 08.06.2011 18:03, Melton Low wrote: xCode 4 should have been included with your new Mac. Check in the Optional Application install disc. XCode 4 is only for bleeding-edge developers. Not here in Germany :-( In old times there was XCode on the optional installer DVD. Now there are only toys: iDVD, Sound Jingles, iPhoto ... That's all, what Apple offers as extra for a 2600 Euro computer ... XCode 3.2.6 should be on the disks and is all you need. On the main install disk I got with the Mac Mini in January there is a folder Optional Installs with the XCode package in it. I have a feeling Sofware Update has updated it since I first installed it. If it's not on the disk you can get it free from http://developer.apple.com/devcenter/mac/index.action provided you are a member -- and this grade of membership is free. Good luck. JD
Re: New Perl-Installation on new OS X
xCode 4 should have been included with your new Mac. Check in the Optional Application install disc. Mel On Wed, Jun 8, 2011 at 9:55 AM, Marek Stepanek marekstepa...@yahoo.co.ukwrote: On 08.06.2011 17:31, John Delacour wrote: At 16:02 +0200 08/06/2011, Marek Stepanek wrote: ...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: 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 ... I think you're going to have trouble until you get rid of everything Fink has installed and everything it's changed in /usr/bin. If I were you I'd probably delete /usr/bin/perl and replace it with a link but I'd wait for others to give you more experienced advice. I would also install the latest Xcode. Note that gcc -v will give you gcc-4.0 and not gcc-4.2 unless you have replaced Apple's original link, so maybe Fink did that too. JD Thank you John, Thank you Sherm! I did install the new XCode. offtopicMy new laptop was a not really cheap: 2600 Euros, and Apple is asking for the XCode download 3.90 Euros. This is nit-picking in my eyes. I don't know, where Apple is going, but I see in the last years only toys and no real support of professionals./offtopic gcc-4.2 was installed with the latest XCode 4.0.2 Is Fink installing into /usr/bin ? Or is it a misunderstanding? Probably there are old and new mixed up from migrating from my back-up. marek
Re: New Perl-Installation on new OS X
I had a similar problem with my new MacBook Pro but I haven't had the time to look into it further. I use MacPort and I ended up deleting everything from MacPort before re-installing everything. As for deleting Perl from /usr/bin that is a VERY BAD IDEA. That came as part of the Apple OS so it's used by Apple for software install and upgrades. Never ever delete anything installed by Apple. Mel On Wed, Jun 8, 2011 at 9:31 AM, John Delacour j...@bd8.com wrote: At 16:02 +0200 08/06/2011, Marek Stepanek wrote: ...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: 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 ... I think you're going to have trouble until you get rid of everything Fink has installed and everything it's changed in /usr/bin. If I were you I'd probably delete /usr/bin/perl and replace it with a link but I'd wait for others to give you more experienced advice. I would also install the latest Xcode. Note that gcc -v will give you gcc-4.0 and not gcc-4.2 unless you have replaced Apple's original link, so maybe Fink did that too. JD
Re: New Perl-Installation on new OS X
On Jun 8, 2011, at 10:33 AM, John Delacour wrote: At 18:16 +0200 08/06/2011, Marek Stepanek wrote: On 08.06.2011 18:03, Melton Low wrote: xCode 4 should have been included with your new Mac. Check in the Optional Application install disc. XCode 4 is only for bleeding-edge developers. Not here in Germany :-( In old times there was XCode on the optional installer DVD. Now there are only toys: iDVD, Sound Jingles, iPhoto ... That's all, what Apple offers as extra for a 2600 Euro computer ... XCode 3.2.6 should be on the disks and is all you need. On the main install disk I got with the Mac Mini in January there is a folder Optional Installs with the XCode package in it. I have a feeling Sofware Update has updated it since I first installed it. If it's not on the disk you can get it free from http://developer.apple.com/devcenter/mac/index.action provided you are a member -- and this grade of membership is free. Good luck. JD xcode4 is only available if you are a $99/yr developer.
Re: New Perl-Installation on new OS X
At 10:54 -0700 08/06/2011, rd ackerman wrote: On Jun 8, 2011, at 10:33 AM, John Delacour wrote: If it's not on the disk you can get it free from http://developer.apple.com/devcenter/mac/index.action provided you are a member -- and this grade of membership is free. xcode4 is only available if you are a $99/yr developer. If you read what I wrote you will see I was not talking about XCode 4. Besides, as Marek said in the beginning, you can get it for $4.99 at the app store - http://itunes.apple.com/us/app/xcode/id422352214?mt=12ls=1 JD
Re: New Perl-Installation on new OS X
On Wed, Jun 8, 2011 at 1:16 PM, John Delacour j...@bd8.com wrote: I have been thinking so all day after watching the announcement of iCloud, a complete non-happening designed, like everything Apple, for shop-happy groupees. It is free, up to a point, once you have bought your latest Mac, your latest iPhone and your latest iPad, paid the interest on the loans and the subscription to all the service providers for the connectivity needed to download tune after useless tune at an inflated price. Any chance we might keep this on-topic for once? I don't see how *any* of this whine-fest is relevant to the issue at hand. sherm-- -- Cocoa programming in Perl: http://camelbones.sourceforge.net
Re: New Perl-Installation on new OS X
On Wed, Jun 8, 2011 at 11:49 AM, Melton Low softw.d...@gmail.com wrote: I use MacPort and I ended up deleting everything from MacPort before re-installing everything. A pointless exercise - Like Fink, MacPorts doesn't touch /usr. Everything relevant to MacPorts is found under /opt/local. sherm-- -- Cocoa programming in Perl: http://camelbones.sourceforge.net
Re: New Perl-Installation on new OS X
At 15:18 -0400 08/06/2011, Sherm Pendley wrote: On Wed, Jun 8, 2011 at 11:49 AM, Melton Low softw.d...@gmail.com wrote: I use MacPort and I ended up deleting everything from MacPort before re-installing everything. A pointless exercise - Like Fink, MacPorts doesn't touch /usr. Everything relevant to MacPorts is found under /opt/local. Please explain then how Marek gets /sw/lib/perl5/5.10.0 ... when he does perl -V from the command line. Are you saying that a script on his machine with the shebang #!/usr/bin/perl will completely ignore /sw/...? If I do perl -V I get the Apple installation If I do /usr/local/bin/./perl -V then I get /usr/local/lib/perl5/site_perl/5.14.0... JD PS. I don't need two copies of every posting to the list.
Re: New Perl-Installation on new OS X
On Wed, Jun 8, 2011 at 3:40 PM, John Delacour j...@bd8.com wrote: At 15:18 -0400 08/06/2011, Sherm Pendley wrote: On Wed, Jun 8, 2011 at 11:49 AM, Melton Low softw.d...@gmail.com wrote: I use MacPort and I ended up deleting everything from MacPort before re-installing everything. A pointless exercise - Like Fink, MacPorts doesn't touch /usr. Everything relevant to MacPorts is found under /opt/local. Please explain then how Marek gets /sw/lib/perl5/5.10.0 ... when he does perl -V from the command line. Are you saying that a script on his machine with the shebang #!/usr/bin/perl will completely ignore /sw/...? No. I'm saying that there are *many* ways to influence @INC without bothering any files under /usr. PERL5LIB, for one. PS. I don't need two copies of every posting to the list. Complain to the list admins. They're the ones who broke reply all, not me. sherm-- -- Cocoa programming in Perl: http://camelbones.sourceforge.net
Re: New Perl-Installation on new OS X
At 16:17 -0400 08/06/2011, Sherm Pendley wrote: No. I'm saying that there are *many* ways to influence @INC without bothering any files under /usr. PERL5LIB, for one. I'm sure that's very clear to everyone who already knows what you are talking about. Are you saying that by editing ~/.bashrc or some such file one could remove this environment variable that has been added by some fink or port or other animal? If that's what you mean, why not say so. I thought people asked questions on this list in order to get useful answers rather than merely to be informed that someone has the answer but hasn't the time to give it. PS. I don't need two copies of every posting to the list. Complain to the list admins. They're the ones who broke reply all, not me. You alone are responsible for who you send emails to. Are you getting a duplicate of this? JD
Re: New Perl-Installation on new OS X
On Wed, Jun 8, 2011 at 5:20 PM, John Delacour j...@bd8.com wrote: At 16:17 -0400 08/06/2011, Sherm Pendley wrote: PERL5LIB, for one. I'm sure that's very clear to everyone who already knows what you are talking about. Are you saying that by editing ~/.bashrc or some such file one could remove this environment variable that has been added by some fink or port or other animal? If that's what you mean, why not say so. Because there's nothing at all Mac-specific about it, and it's well-covered in the Perl man pages and many many tutorials, as well as having been discussed right here already, *many* times. If you can't be bothered to do even the most basic research, that's neither my fault nor my problem. I gave you the clue you needed, now go to Google and use it. Complain to the list admins. They're the ones who broke reply all, not me. You alone are responsible for who you send emails to. Blaming other people for your ignorance is a habit with you, isn't it? Yes, I'm responsible for who *I* send emails to. I'm not responsible for who the list sends emails to. A correctly-configured list will look at the To: and CC: headers of any mail it receives, and won't send an additional copy to anyone who's already received one. sherm-- -- Cocoa programming in Perl: http://camelbones.sourceforge.net
Re: New Perl-Installation on new OS X
On Wed, Jun 8, 2011 at 11:55 AM, Marek Stepanek marekstepa...@yahoo.co.uk wrote: offtopicMy new laptop was a not really cheap: 2600 Euros Ouch! At the current rate, that translates to roughly $3800 USD - $1400 more than the highest-price MacBook Pro in the US store. I wonder, how much of that was import taxes tariffs? Probably there are old and new mixed up from migrating from my back-up. I'm probably over-cautious, but I never migrate - I always format and make a clean install, then do a clean install of all my apps. I back up my home directory, and copy it over, which preserves all my personal preferences and such. sherm-- -- Cocoa programming in Perl: http://camelbones.sourceforge.net