Skip navigation.
Home
Your source for Perl tips, howto's, faq and tutorials
( categories: )

For some reason every time I go to install a module I get a make error.

Example:
make: *** [GMP.o] Error 1
/usr/bin/make -- NOT OK
Running make test
Can't test without successful make
Running make install
make had returned bad status, install seems impossible

This happens as user and as root.

I've checked to make sure that make is in the right place and it is.

Thoughts???


I guess you're using the

I guess you're using the CPAN shell to install the module, right? If that's the case, the problem could be an improperly configured path for 'make' in the CPAN shell.

In that case, you could try to do the following from the CPAN shell (I'm assuming you have 'make' installed in /usr/bin/make, you should change the path to the correct location):

cpan>o conf make /usr/bin/make
cpan>o conf commit

Don't forget to execute 'commit' or the change won't persist.

Regards,
Toshiro.

You guessed right!

Yes I am. I went ahead and did that and everything looks good now. Well for the most part. I got the Net::SSH::Perl module to load, I just couldn't get the Math::BigInt::GMP module loaded. I got this error:

make: *** [GMP.o] Error 1
/usr/bin/make -- NOT OK
Running make test
Can't test without successful make
Running make install
make had returned bad status, install seems impossible

I even forced the install just to be sure. And I reran the "o conf make /usr/bin/make" and 'commit as well.

have you tried to manually install the module?

If the problem persists after doing a manual installation, then the issue is not the CPAN shell; probably some libraries are missing, most likely the multiprecision arithmetic library (I don't know which unix are you using, in Debian the needed package is 'libgmp3c2').

You can find the manual installation procedure here

Not yet....

...but I'll give that a try. The system that I'm trying to install this on is actualy Ubuntu, but I've also gotten that on some Solaris systems as well.

I'll check out this package (or something similar) and see if it works.

Thanks!

If you use Ubuntu ...

then you have an Ubuntu package for that module, its name is libmath-bigint-gmp-perl, it's very simple to install, just execute:

apt-get install libmath-bigint-gmp-perl