compilation problem when adding a module

F

felipe200112

This is generic to my machine. Maybe is it an initialisation problem...
Do you have an idea ??

Thanks in advance.

Philippe

"Version_check" is not exported by the ExtUtils::MakeMaker module
Can't continue after import errors at -e line 0
==============================================

linux51:/usr/src/rpm/SOURCES/IO-Socket-SSL-0.93# perl Makefile.PL
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = (unset),
LC_ALL = (unset),
LANG = "en_US"
are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
Writing Makefile for IO::Socket::SSL
linux51:/usr/src/rpm/SOURCES/IO-Socket-SSL-0.93# make
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = (unset),
LC_ALL = (unset),
LANG = "en_US"
are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
"Version_check" is not exported by the ExtUtils::MakeMaker module
Can't continue after import errors at -e line 0
BEGIN failed--compilation aborted.
make: *** [Version_check] Error 255
linux51:/usr/src/rpm/SOURCES/IO-Socket-SSL-0.93#


linux51:/usr/src/rpm/SOURCES/IO-Socket-SSL-0.93# uname -a
Linux linux51.fty 2.4.18-bf2.4 #1 Son Apr 14 09:53:28 CEST 2002 i686 GNU/Linux
linux51:/usr/src/rpm/SOURCES/IO-Socket-SSL-0.93# perl -v

perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = (unset),
LC_ALL = (unset),
LANG = "en_US"
are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").

This is perl, v5.8.3 built for i386-linux-thread-multi

Copyright 1987-2003, Larry Wall

Perl may be copied only under the terms of either the Artistic License or the
GNU General Public License, which may be found in the Perl 5 source kit.

Complete documentation for Perl, including FAQ lists, should be found on
this system using `man perl' or `perldoc perl'. If you have access to the
Internet, point your browser at http://www.perl.com/, the Perl Home Page.

linux51:/usr/src/rpm/SOURCES/IO-Socket-SSL-0.93#
 
A

Anno Siegel

felipe200112 said:
This is generic to my machine. Maybe is it an initialisation problem...

Generic? What do you mean?
Do you have an idea ??

The output below shows two problems that may well be independent from
each other. For the locale problem, unset the environment variable
LANG and try again.

Anno
"Version_check" is not exported by the ExtUtils::MakeMaker module
Can't continue after import errors at -e line 0
==============================================

linux51:/usr/src/rpm/SOURCES/IO-Socket-SSL-0.93# perl Makefile.PL
perl: warning: Setting locale failed.

[rest snipped]
 
M

Mark Clements

Adi2k5 said:
I'm interested in finding out how to solve this as well. I'm trying to
compile Math::GMP and I can't get past this.

lahar /yvr/project/perlssh/SunOS/perl-5.8.6/lib/Math/Math-GMP-2.04
111> perl Makefile.PL
Note (probably harmless): No library found for -lgmp
Writing Makefile for Math::GMP
lahar /yvr/project/perlssh/SunOS/perl-5.8.6/lib/Math/Math-GMP-2.04
112> lahar
/yvr/project/perlssh/SunOS/perl-5.8.6/lib/Math/Math-GMP-2.04 112>
lahar /yvr/project/perlssh/SunOS/perl-5.8.6/lib/Math/Math-GMP-2.04
112> make "Version_check" is not exported by the ExtUtils::MakeMaker
module Can't continue after import errors at -e line 0
BEGIN failed--compilation aborted.
*** Error code 255
make: Fatal error: Command failed for target `Version_check'
lahar /yvr/project/perlssh/SunOS/perl-5.8.6/lib/Math/Math-GMP-2.04
113> lahar
/yvr/project/perlssh/SunOS/perl-5.8.6/lib/Math/Math-GMP-2.04 113>
lahar /yvr/project/perlssh/SunOS/perl-5.8.6/lib/Math/Math-GMP-2.04
113> uname -a SunOS lahar 5.6 Generic_105181-20 sun4u sparc
SUNW,Ultra-Enterprise

You need the gmp library. You can find a package for it (though maybe
not for Solaris 2.6) on www.sunfreeware.com .

Mark
 
M

Mark Clements

Adi2k5 said:
Hi Mark,

I have the GMP lib.

lahar /yvr/project/perlssh/SunOS/perl-5.8.6/lib/Math 138> ls -ltr
total 952
-r-xr-xr-x 1 alazar staff 26328 Jan 31 2002 Complex.t
-r--r--r-- 1 alazar staff 44369 Jan 31 2002 Complex.pm
-r--r--r-- 1 alazar staff 14333 May 1 2003 Trig.pm
-r-xr-xr-x 1 alazar staff 5155 May 1 2003 Trig.t
-r--r--r-- 1 alazar staff 89656 Oct 21 2004 BigFloat.pm
-r--r--r-- 1 alazar staff 130656 Oct 21 2004 BigInt.pm
-r--r--r-- 1 alazar staff 42406 Oct 21 2004 BigRat.pm
drwxr-xr-x 3 alazar staff 4096 Nov 27 11:02 BigRat
drwxr-xr-x 3 alazar staff 4096 Nov 27 11:02 BigInt
drwxr-xr-x 2 alazar staff 4096 May 4 13:32 BigFloat
-rw-r--r-- 1 alazar staff 71680 May 4 16:44
Math-GMP-2.04.tar -rw-r--r-- 1 alazar staff 8910 May 6
11:59 GMP.pm drwxr-xr-x 5 alazar staff 4096 May 6 11:59
Math-GMP-2.04

I'm trying to build in ./Math-GMP-2.04

I don't know why 'perl Makefile.PL' can't find it tho.

I think you misunderstand. You need the gmp library, not the CPAN GMP
module. If you run

gcc -lgmp

You'll get probably get a "library not found error".

On my system:

bob 953 $ locate libgmp
/usr/local/lib/libgmp.a
/usr/local/lib/libgmp.la
/usr/local/lib/libgmp.so
/usr/local/lib/libgmp.so.3
/usr/local/lib/libgmp.so.3.3.2

bob 954 $ pkgchk -lp /usr/local/lib/libgmp.a
Pathname: /usr/local/lib/libgmp.a
Type: regular file
Expected mode: 0644
Expected owner: root
Expected group: bin
Expected file size (bytes): 2902116
Expected sum(1) of contents: 12280
Expected last modification: Mar 01 16:49:58 2004
Referenced by the following packages:
SMCgmp
Current status: installed

Look on www.sunfreeware.com for this package.

Note: CPAN modules sometimes have dependencies on external libraries,
eg DBD::mysql relies on the MySQL binary distribution, DBD::Oracle on
the Oracle client, XML::LibXML on libxml and so on.

Mark
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,582
Members
45,065
Latest member
OrderGreenAcreCBD

Latest Threads

Top