Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion Groups
General
GeneralPortable MacsHardwareNetworking
Applications
Mac ApplicationsEudoraFirefox / MozillaInternet ExplorerOutlook ExpressMS OfficeEntourageExcelPowerPointWordVirtual PCMedia PlayerOther MS Products
Programming
Mac ProgrammingCodeWarriorPerl
Country Specific
Australian Mac GroupUK Mac Group

Mac Forum / Programming / Perl / January 2008



Tip: Looking for answers? Try searching our database.

Leopard Upgrade Killed my Modules

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Elton Hughes - 09 Jan 2008 21:44 GMT
Hello All,

I upgraded to Mac OSX 10.5, using the upgrade option, and the modules  
I downloaded from CPAN are now missing. Bummer. No problem though, I  
am not under a huge time problem and it would be good to get a little  
practice in.

So I have a couple of questions. First, where would a safe place be to  
my modules? Second, I have started installing a few of my favorite  
modules and I am getting an error message from make. The error message  
is:

make: *** No rule to make target `/System/Library/Perl/5.8.8/darwin-
thread-multi-2level/CORE/config.h', needed by `Makefile'.  Stop.

What is happening here? And how best to solve it?

Thank you for your time.

Elton

=========================================================
 NOVA                        505 W. Olive Ave. Suite 550
 Elton Hughes (MIS/IT)                Sunnyvale CA 94086
 Phone: 408-730-7235                   Fax: 408-730-7643
---------------------------------------------------------
Sherm Pendley - 10 Jan 2008 03:58 GMT
> Hello All,
>
> I upgraded to Mac OSX 10.5, using the upgrade option, and the modules
> I downloaded from CPAN are now missing. Bummer. No problem though, I
> am not under a huge time problem and it would be good to get a little
> practice in.

Leopard includes an upgrade to a newer Perl 5.8.8, so it's a good idea to
reinstall your CPAN modules anyway. XS modules, in particular, are probably
linked against older OS SDKs and Perl versions.

> So I have a couple of questions. First, where would a safe place be to
> my modules?

Wherever ExtUtils::MakeMaker puts them. Whether you're driving it manually,
or with the CPAN tool, Perl already knows where to install its own modules.
So by default, the final "sudo make install" will do the Right Thing(tm).

> Second, I have started installing a few of my favorite
> modules and I am getting an error message from make. The error message
[quoted text clipped - 4 lines]
>
> What is happening here? And how best to solve it?

Have you installed all the latest Xcode updates for Leopard?

sherm--
John Baldwin - 10 Jan 2008 06:51 GMT
If by "safe," you mean "where they will stick around when I upgrade to  
Mac OS X 10.6 in 18 months," then I'd say install your own copy of  
perl somewhere and add your modules to that.

perl 5.9 looks like it has some nice features anyway.

I haven't tried installing my own copy of perl, but would be more than  
happy for you to try and tell me how you got past any issues :)

John

> So I have a couple of questions. First, where would a safe place be  
> to my modules?
David Cantrell - 10 Jan 2008 14:08 GMT
> perl 5.9 looks like it has some nice features anyway.

5.10 is out now.  Unfortunately it was just a bit too late to make it
into Leopard.

Signature

David Cantrell | Nth greatest programmer in the world

Eye have a spelling chequer / It came with my pea sea
It planely marques four my revue / Miss Steaks eye kin knot sea.
Eye strike a quay and type a word / And weight for it to say
Weather eye am wrong oar write / It shows me strait a weigh.

Brian D Foy - 10 Jan 2008 09:35 GMT
> Hello All,
>
> I upgraded to Mac OSX 10.5, using the upgrade option, and the modules  
> I downloaded from CPAN are now missing.

You probably had them installed in Mac OS X's Perl directories.

I install my own perls (and have many installed) each with their own
roots:

$ ls -l /usr/local/perls
drwxr-xr-x   5 root   wheel  170 Dec  2 12:13 perl-5.10.0-rc2
drwxrwxr-x   5 brian  wheel  170 Mar 14  2007 perl-5.6.2
drwxrwxr-x   5 brian  wheel  170 Sep 22 13:02 perl-5.6.2-dist
drwxrwxr-x   6 brian  wheel  204 Apr 10  2007 perl-5.8.8-for-pugs
drwxr-xr-x   5 brian  wheel  170 Feb 22  2007 perl-5.8.8-threaded
drwxr-xr-x   4 brian  wheel  136 Feb 22  2007
perl-5.8.8-threaded-debugging
drwxr-xr-x   5 brian  wheel  170 Feb 26  2007 perl-5.9.4
drwxrwxr-x   5 brian  wheel  170 Aug 19 01:42 perl-5.9.5
drwxrwxr-x   5 brian  wheel  170 Oct  7 18:45 perl-5.9.5-for-kp6
drwxrwxr-x   5 brian  wheel  170 Sep 30 17:16 perl4
drwxr-xr-x  24 brian  brian  816 Mar 13  2007 perlbench-0.93

I think have links in /usr/local/bin to each of the interpreters I like
to use:

$ ls -l /usr/local/bin/perl*
-rwxr-xr-x  2 root  wheel  1103676 Apr  9  2007 /usr/local/bin/perl
lrwxr-xr-x  1 root  wheel       47 Dec  2 12:44
/usr/local/bin/perl5.10.0 ->
/usr/local/perls/perl-5.10.0-rc2/bin/perl5.10.0
lrwxr-xr-x  1 root  wheel       41 Aug 16 00:00
/usr/local/bin/perl5.6.2 -> /usr/local/perls/perl-5.6.2/bin/perl5.6.2
-rwxr-xr-x  2 root  wheel  1103676 Apr  9  2007 /usr/local/bin/perl5.8.8
lrwxr-xr-x  1 root  wheel       41 Sep 29 14:38
/usr/local/bin/perl5.9.5 -> /usr/local/perls/perl-5.9.5/bin/perl5.9.5

When I want to install modules, I use the right interpreter with
cpan(1):

$ perl5.10.0 cpan Foo Bar
Robert Hicks - 15 Jan 2008 00:49 GMT
brian d foy wrote:

>> Hello All,
>>
[quoted text clipped - 38 lines]
>
> $ perl5.10.0 cpan Foo Bar

Hey brian,

Do you typically just take the defaults when compiling Perl?

Robert
Brian D Foy - 15 Jan 2008 22:08 GMT
> Hey brian,
>
> Do you typically just take the defaults when compiling Perl?

Nope! You have to change the install locations!
Robert Hicks - 16 Jan 2008 22:16 GMT
brian d foy wrote:

>> Hey brian,
>>
>> Do you typically just take the defaults when compiling Perl?
>
> Nope! You have to change the install locations!

: )

I deserved that. Outside of changing the install locations; do you just
take the defaults?

Robert
Brian D Foy - 17 Jan 2008 20:13 GMT
> brian d foy wrote:
> >
[quoted text clipped - 8 lines]
> I deserved that. Outside of changing the install locations; do you just
> take the defaults?

it depends on why I'm compiling it. I'll usually compile a given release
three times to get one that's threaded, one that is debugging, and one
that has neither of those.

It really depends on what sort of interpreter you want. I do a lot of
research, so I have different needs than someone who is just moving
bits, who would have different needs that a CPAN Tester, etc.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.