New Perl-Installation on new OS X

2011-06-08 Thread Marek Stepanek
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 st

Re: New Perl-Installation on new OS X

2011-06-08 Thread Sherm Pendley
On Wed, Jun 8, 2011 at 10:02 AM, Marek Stepanek 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.

Re: New Perl-Installation on new OS X

2011-06-08 Thread John Delacour
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

Re: New Perl-Installation on new OS X

2011-06-08 Thread Marek Stepanek
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 da

Re: New Perl-Installation on new OS X

2011-06-08 Thread Marek Stepanek
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 ... T

Re: New Perl-Installation on new OS X

2011-06-08 Thread Sherm Pendley
On Wed, Jun 8, 2011 at 11:31 AM, John Delacour 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 program

Re: New Perl-Installation on new OS X

2011-06-08 Thread John Delacour
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 th

Re: New Perl-Installation on new OS X

2011-06-08 Thread John Delacour
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

Re: New Perl-Installation on new OS X

2011-06-08 Thread Melton Low
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 wrote: > 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 ri

Re: New Perl-Installation on new OS X

2011-06-08 Thread Melton Low
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

Re: New Perl-Installation on new OS X

2011-06-08 Thread rd ackerman
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

Re: New Perl-Installation on new OS X

2011-06-08 Thread John Delacour
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 provided you are a member -- and this grade of membership is free. xcode4 is only avai

Re: New Perl-Installation on new OS X

2011-06-08 Thread Sherm Pendley
On Wed, Jun 8, 2011 at 1:16 PM, John Delacour 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 late

Re: New Perl-Installation on new OS X

2011-06-08 Thread Sherm Pendley
On Wed, Jun 8, 2011 at 11:49 AM, Melton Low 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 pro

Re: New Perl-Installation on new OS X

2011-06-08 Thread John Delacour
At 15:18 -0400 08/06/2011, Sherm Pendley wrote: On Wed, Jun 8, 2011 at 11:49 AM, Melton Low 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

Re: New Perl-Installation on new OS X

2011-06-08 Thread Sherm Pendley
On Wed, Jun 8, 2011 at 3:40 PM, John Delacour wrote: > At 15:18 -0400 08/06/2011, Sherm Pendley wrote: > > >> On Wed, Jun 8, 2011 at 11:49 AM, Melton Low wrote: >>> >>>  I use MacPort and I ended up deleting everything from MacPort before >>>  re-installing everything. >> >> A pointless exercise

Re: New Perl-Installation on new OS X

2011-06-08 Thread John Delacour
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 ~/.bashr

Re: New Perl-Installation on new OS X

2011-06-08 Thread Sherm Pendley
On Wed, Jun 8, 2011 at 5:20 PM, John Delacour 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 t

Re: New Perl-Installation on new OS X

2011-06-08 Thread Sherm Pendley
On Wed, Jun 8, 2011 at 11:55 AM, Marek Stepanek wrote: > > My 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? > Pr

Re: New Perl-Installation on new OS X

2011-06-09 Thread Marek Stepanek
On 09.06.2011 05:38, Sherm Pendley wrote: 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-- Sherm, I

Re: New Perl-Installation on new OS X

2011-06-09 Thread Sherm Pendley
On Thu, Jun 9, 2011 at 6:43 AM, Marek Stepanek wrote: > > But perhaps this list could help me, to get @INC and $PERL5LIB clean of /sw > ... How is it possible, that I have $PERL5LIB set to > > %ENV: >    PERL5LIB="/sw/lib/perl5:/sw/lib/perl5/darwin" > > I only see two files: > >        ~/.profile

Re: New Perl-Installation on new OS X

2011-06-09 Thread Daniel Staal
--As of June 8, 2011 5:39:57 PM -0400, Sherm Pendley is alleged to have said: 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 th

Re: New Perl-Installation on new OS X

2011-06-09 Thread Sherm Pendley
On Thu, Jun 9, 2011 at 7:40 AM, Daniel Staal wrote: > > Suffice it to say, if someone asks you to not CC them > when you send to the list, it's polite not to.  (At least for that > discussion.) In general, I'd agree - but I also think it's appropriate to consider the tone & reason for the request

Re: New Perl-Installation on new OS X

2011-06-09 Thread Marek Stepanek
Thank you Sherm! This is a step in the right direction. But my cpanplus Perl is still broken, with messages like: Unable to create a new distribution object for 'Archive::Tar', although I have no /sw in the %ENV or @INC any more. % perl -V even does not show a %ENV at all. This is certain

Re: New Perl-Installation on new OS X

2011-06-09 Thread Vic Norton
I recently installed Fink to see if it had "pdffonts". This conversation has scared me; I have uninstalled Fink. I certainly don't want to start looking for Perl modules in /sw. Now I see no PERL5LIB in %ENV. I guess Perl is looking in /System/Library/Perl/5.10.0 /Library/Perl/5.10.0 /Syst

Re: New Perl-Installation on new OS X

2011-06-09 Thread John Delacour
At 16:14 +0100 09/06/2011, Marek Stepanek wrote: Probably I will leave the apple Perl it as it is, and make a new install of perl-5.14.0 under /usr/local That is what I do, so that the two installations are independent. I configure simply like this: cd downloaded_directory ./Configure -de -

Re: New Perl-Installation on new OS X

2011-06-09 Thread Charlie Garrison
Good morning, On 9/06/11 at 4:40 PM +0100, John Delacour wrote: One thing to remember, of course, is that to add modules with cpan to 5.14.0 so configured, rather than to Apple's installation, you need to cd /usr/local/bin; sudo ./cpan I haven't followed all of this thread (it was digress

Re: New Perl-Installation on new OS X

2011-06-09 Thread Sherm Pendley
On Thu, Jun 9, 2011 at 8:14 AM, Marek Stepanek wrote: > > Thank you Sherm! > > This is a step in the right direction. But my cpanplus Perl is still broken, > with messages like: > > Unable to create a new distribution object for 'Archive::Tar', although I > have no /sw in the %ENV or @INC any more

Re: New Perl-Installation on new OS X

2011-06-09 Thread Sherm Pendley
On Thu, Jun 9, 2011 at 10:55 AM, Vic Norton wrote: > I recently installed Fink to see if it had "pdffonts". This conversation has > scared me; I have uninstalled Fink. I certainly don't want to start looking > for Perl modules in /sw. Fear is the mind-killer. :-) Understanding what Fink does,

Re: New Perl-Installation on new OS X

2011-06-09 Thread Sherm Pendley
On Thu, Jun 9, 2011 at 11:54 AM, Charlie Garrison wrote: > Good morning, > > I haven't followed all of this thread (it was digressing there for a while). > Would perlbrew be a solution for the OP. I've only been using it a short > while but it makes installing and using a custom perl very simple.

Re: New Perl-Installation on new OS X

2011-06-09 Thread Wayne Brissette
>> I haven't followed all of this thread (it was digressing there for a while). >> Would perlbrew be a solution for the OP. I've only been using it a short >> while but it makes installing and using a custom perl very simple. I installed the preconfigured version from active state recently and wa

Re: New Perl-Installation on new OS X

2011-06-09 Thread Chas. Owens
On Thu, Jun 9, 2011 at 13:22, Sherm Pendley wrote: > On Thu, Jun 9, 2011 at 11:54 AM, Charlie Garrison > wrote: >> Good morning, >> >> I haven't followed all of this thread (it was digressing there for a while). >> Would perlbrew be a solution for the OP. I've only been using it a short >> while

Re: New Perl-Installation on new OS X

2011-06-10 Thread David Cantrell
On Thu, Jun 09, 2011 at 12:43:43PM +0200, Marek Stepanek wrote: > But perhaps this list could help me, to get @INC and $PERL5LIB clean of > /sw ... How is it possible, that I have $PERL5LIB set to > > %ENV: > PERL5LIB="/sw/lib/perl5:/sw/lib/perl5/darwin" > > in [my .profile] I only have one

Re: New Perl-Installation on new OS X

2011-06-10 Thread John Delacour
At 11:45 +0100 10/06/2011, David Cantrell wrote: Several fixes come to mind: ... 4. just set PERl5LIB to whatever you fancy after that line. This will, however, mean that you override any changes that may be made to your startup files elsewhere at a later date. What would be the effect

Re: New Perl-Installation on new OS X

2011-06-10 Thread Sherm Pendley
On Fri, Jun 10, 2011 at 10:34 AM, John Delacour wrote: > At 11:45 +0100 10/06/2011, David Cantrell wrote: > >> Several fixes come to mind: >> ... >> 4. just set PERl5LIB to whatever you fancy after that line.  This will, >>   however, mean that you override any changes that may be made to your >>

Re: New Perl-Installation on new OS X

2011-06-10 Thread John Delacour
At 10:38 -0400 10/06/2011, Sherm Pendley wrote: > What would be the effect of setting a value (or no value) for PERL5LIB in ~/.MacOSX/environment.plist? That plist is for setting up environment variables for GUI apps. It has no effect on shell sessions. Obviously I'm missing something. I

Re: New Perl-Installation on new OS X

2011-06-10 Thread Doug McNutt
At 10:38 -0400 6/10/11, Sherm Pendley wrote: >On Fri, Jun 10, 2011 at 10:34 AM, John Delacour wrote: >> What would be the effect of setting a value (or no value) for PERL5LIB in >> ~/.MacOSX/environment.plist? > >That plist is for setting up environment variables for GUI apps. It >has no effect on

Re: New Perl-Installation on new OS X

2011-06-10 Thread Sherm Pendley
On Fri, Jun 10, 2011 at 11:11 AM, John Delacour wrote: > At 10:38 -0400 10/06/2011, Sherm Pendley wrote: > >>  > What would be the effect of setting a value (or no value) for PERL5LIB >> in >>> >>>  ~/.MacOSX/environment.plist? >> >> That plist is for setting up environment variables for GUI apps.

Re: New Perl-Installation on new OS X

2011-06-10 Thread David Cantrell
On Fri, Jun 10, 2011 at 04:11:43PM +0100, John Delacour wrote: > At 10:38 -0400 10/06/2011, Sherm Pendley wrote: > > > What would be the effect of setting a value (or no value) for PERL5LIB > > in > >> ~/.MacOSX/environment.plist? > >That plist is for setting up environment variables for GUI apps.

Re: New Perl-Installation on new OS X

2011-06-10 Thread John Delacour
At 16:47 +0100 10/06/2011, David Cantrell wrote: Are you using Terminal.app? That's a GUI application, so it takes effect, and is then inherited by the shell. Try sshing into your Mac from elsewhere. Right. I ran a script from cgi-bin on my local server and indeed this key was missing. Th

RE: New Perl-Installation on new OS X

2011-06-10 Thread Jan Dubois
On Fri, 10 Jun 2011, Sherm Pendley wrote: > Yes, but since .profile is evaluated later, whatever it does will > override what's set in the plist. Thus, changes in the plist will have > no effect on shell sessions that set the same variable. I use this line in my .bash_profile to make sure I use th

Re: New Perl-Installation on new OS X

2011-06-10 Thread Sherm Pendley
On Fri, Jun 10, 2011 at 2:27 PM, Jan Dubois wrote: > On Fri, 10 Jun 2011, Sherm Pendley wrote: >> Yes, but since .profile is evaluated later, whatever it does will >> override what's set in the plist. Thus, changes in the plist will have >> no effect on shell sessions that set the same variable. >

RE: New Perl-Installation on new OS X

2011-06-10 Thread Jan Dubois
On Fri, 10 Jun 2011, Sherm Pendley wrote: > But the question is, should it be done for PERL5LIB? That affects > *all* Perls, and if you've included the path to modules compiled for > (say) 5.12, but you're running 5.10, those modules won't work. Ah, yes, sorry, lost track of the real topic of the

RE: New Perl-Installation on new OS X

2011-06-10 Thread John Delacour
At 13:21 -0700 10/06/2011, Jan Dubois wrote: I think a better way to modify your @INC is on a per-installation basis. For Apple's Perl you have the AppendToPath and PrependToPath mechanism... There is no PrependToPath file by default, but you can create one yourself, and all directories listed