LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   CPAN make issues. No modules will install (https://www.linuxquestions.org/questions/programming-9/cpan-make-issues-no-modules-will-install-468037/)

Brnzwngs 07-26-2006 08:24 PM

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!

gilead 07-26-2006 08:42 PM

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.

Brnzwngs 07-26-2006 08:55 PM

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.

gilead 07-26-2006 09:10 PM

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


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