LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices

Reply
 
Search this Thread
Old 07-26-2006, 08:24 PM   #1
Brnzwngs
Member
 
Registered: Jun 2005
Location: Netherlands
Distribution: Gentoo
Posts: 32

Rep: Reputation: 15
CPAN make issues. No modules will install


Hey guys,

I'm having trouble with Perl's CPAN. Whenever I try to run cpan install whatever module I want, it gives me make errors. Here is an example when I try to install WWW::Myspace:

Code:
        Test returned status 2 (wstat 512, 0x200)
FAILED--2 test scripts could be run, alas--no output ever seen
make: *** [test_dynamic] Error 2
  /usr/bin/make test -- NOT OK
Running make install
  make test had returned bad status, won't install without force
Do you know what I can do to make it run properly? I have all the developer tools in the world practically. I have the make path defined and everything. Save me please haha.

Thanks in advance!
 
Old 07-26-2006, 08:42 PM   #2
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,123

Rep: Reputation: 162Reputation: 162
There's a heap of dependencies listed for that module, did all of them install OK? Although the cpan install WWW::Myspace command should have downloaded the dependencies for you (I think), if it didn't you might be able to find out by doing the steps manually. For example:
Code:
perl Makefile.PL
make
make test
# You could run the following instead and check output.log:
make test | tee output.log
sudo make install
When I try and run the steps manually I get plenty of wstat errors, but not the same one that you do.
 
Old 07-26-2006, 08:55 PM   #3
Brnzwngs
Member
 
Registered: Jun 2005
Location: Netherlands
Distribution: Gentoo
Posts: 32

Original Poster
Rep: Reputation: 15
I did attempt to install the dependencies, but all it does it continue going and it does flash that it had make errors. Especially on make tests they all fail.
 
Old 07-26-2006, 09:10 PM   #4
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,123

Rep: Reputation: 162Reputation: 162
It sounds like it had problems downloading the dependencies. You can check if a module is installed with something like this (substitute the name of each dependency for WWW::Myspace):
Code:
perl -MWWW::Myspace -e 1
If the dependencies didn't get installed you should be able to install them manually. Have you installed perl stuff manually before? You can search at http://cpan.perl.org/ for the dependencies, download them and (usually) install with perl Makefile.PL && make && make test && make install
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
load perl CPAN modules sailu_mvn Linux - Software 1 04-18-2006 07:31 PM
installing CPAN modules andy11983 Linux - Software 1 11-30-2004 12:28 PM
If i remove /root/cpan do i lost all installed modules?? emilioestevezz Linux - Networking 5 09-25-2004 11:20 AM
perl modules problems CPAN tardigrade Linux - Software 6 09-02-2004 12:29 PM
Canīt download perl modules with cpan emilioestevezz Linux - Networking 1 08-25-2004 09:51 AM


All times are GMT -5. The time now is 01:19 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration