School Assignment? Project Due Tomorrow? Chat LIVE With A Programming Expert!

Welcome to Dream.In.Code
Become an Expert!

Join 307,116 Programmers for FREE! Get instant access to thousands of experts, tutorials, code snippets, and more! There are 2,000 people online right now. Registration is fast and FREE... Join Now!




Installing Perl Modules in Macintosh

 

Installing Perl Modules in Macintosh

madhu_d

25 Aug, 2009 - 10:25 PM
Post #1

New D.I.C Head
*

Joined: 25 Aug, 2009
Posts: 1

I want to obtain the eigen values of a 3*3 matrix using the module Math-GSL-0.20.tar.gz as downloaded from CPAN. Though i work in Macintosh PC, my programs are using UNIX OS. According to the instructions in README, i tried to install this module but failed with the following error:
CODE
Can't locate Module/Build.pm in @INC (@INC contains: /System/Library/Perl/5.8.1/darwin-thread-multi-2level /System/Library/Perl/5.8.1 /Library/Perl/5.8.1/darwin-thread-multi-2level /Library/Perl/5.8.1 /Library/Perl /Network/Library/Perl/5.8.1/darwin-thread-multi-2level /Network/Library/Perl/5.8.1 /Network/Library/Perl .) at Build.PL line 24.

Next, i tried to install CPAN modules using the following code:
CODE
perl -MCPAN -e "shell"
Terminal does not support AddHistory.

cpan shell -- CPAN exploration and modules installation (v1.76)
ReadLine support available (try 'install Bundle::CPAN')

cpan> install Bundle::CPAN
CPAN: Storable loaded ok
Going to read /Users/madhurima/.cpan/Metadata

but again failed with the following error:
CODE
Recursive dependency detected:
    Bundle::CPAN
=> Test::Harness
=> A/AN/ANDYA/Test-Harness-3.17.tar.gz
=> File::Spec
=> S/SM/SMUELLER/PathTools-3.30.tar.gz
=> Scalar::Util
=> G/GB/GBARR/Scalar-List-Utils-1.21.tar.gz
=> Test::More
=> M/MS/MSCHWERN/Test-Simple-0.92.tar.gz
=> Test::Harness.
Cannot continue.


Can anybody please help me what getting wrong??

User is offlineProfile CardPM
+Quote Post


girasquid

RE: Installing Perl Modules In Macintosh

26 Aug, 2009 - 07:35 AM
Post #2

Barbarbar
Group Icon

Joined: 3 Oct, 2006
Posts: 1,648



Thanked: 58 times
Dream Kudos: 825
My Contributions
Generally when installing CPAN modules, I've found it easier to just tell the shell to install them directly:
CODE

sudo cpan install Math::GSL


If that command also fails, please paste the error messages.
User is offlineProfile CardPM
+Quote Post

chorny_cpan

RE: Installing Perl Modules In Macintosh

29 Aug, 2009 - 01:54 PM
Post #3

New D.I.C Head
Group Icon

Joined: 13 May, 2009
Posts: 36


Dream Kudos: 25
My Contributions
perl 5.8.1 is quite old...
Do in CPAN shell

install CPAN
install Module::Build
install Math::GSL

If "install CPAN" fails, just continue.
User is offlineProfile CardPM
+Quote Post

chorny_cpan

RE: Installing Perl Modules In Macintosh

29 Aug, 2009 - 02:11 PM
Post #4

New D.I.C Head
Group Icon

Joined: 13 May, 2009
Posts: 36


Dream Kudos: 25
My Contributions
Strange...

List of dependencies:
Test::Harness
'File::Spec' => '0.8'

PathTools (contains File::Spec)
'Scalar::Util' => '0',

Scalar-List-Utils (contains Scalar::Util)
'Test::More' => 0,

Test::More (and Test::Simple)
Test::Harness => 2.03,

Do you have Scalar::Util and Test::More modules installed? You should have them, if you don't - it's the problem with your Perl.

User is offlineProfile CardPM
+Quote Post

Fast ReplyReply to this topicStart new topic

Time is now: 11/21/09 01:27PM

Live Help!

Be Social

Dream.In.Code RSS Feed Dream.In.Code LinkedIn Group Follow Us On Twitter Fan Us On Facebook

Tutorials

Programming

Web Development

Reference Sheets

Code Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month