- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- perl: Can't locate ExtUtils/MakeMaker.pm
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-15-2004 02:36 AM
тАО12-15-2004 02:36 AM
I want to install the module DBI-1.46 in perl.
I have download the file, but when I do
# perl Makefile.PL
Can't locate ExtUtils/MakeMaker.pm in @INC (@INC contains: lib /project/iASv2/sr
c/pdc_perl/bin/HPUX/Opt/lib/5.6.1/PA-RISC2.0 /project/iASv2/src/pdc_perl/bin/HPU
X/Opt/lib/5.6.1 /project/iASv2/src/pdc_perl/bin/HPUX/Opt/lib/site_perl/5.6.1/PA-
RISC2.0 /project/iASv2/src/pdc_perl/bin/HPUX/Opt/lib/site_perl/5.6.1 /project/iA
Sv2/src/pdc_perl/bin/HPUX/Opt/lib/site_perl .) at Makefile.PL line 31.
BEGIN failed--compilation aborted at Makefile.PL line 31.
its shows this error.
I have prove to put this files in the same directory that is this module, but there are a lot of files. Does anyone knows how I could modify @INC to put there all the paths with librarys??
Thanks a lot of,
Carmen.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-15-2004 02:47 AM
тАО12-15-2004 02:47 AM
Re: perl: Can't locate ExtUtils/MakeMaker.pm
Regards,
Fred
"Reality is just a point of view." (P. K. D.)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-15-2004 02:48 AM
тАО12-15-2004 02:48 AM
SolutionIt should look similar (version, architecture dependant) to this
# perl -le 'print join "\n",@INC'
/opt/perl5/lib/5.8.0/PA-RISC2.0-LP64
/opt/perl5/lib/5.8.0
/opt/perl5/lib/site_perl/5.8.0/PA-RISC2.0-LP64
/opt/perl5/lib/site_perl/5.8.0
/opt/perl5/lib/site_perl
.
The ExtUtils::MakeMaker module should be in the search path
e.g.
# ll /opt/perl5/lib/5.8.0/ExtUtils/MakeMaker.pm
-r--r--r-- 1 root sys 73040 Jul 4 2003 /opt/perl5/lib/5.8.0/ExtUtils/MakeMaker.pm
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-15-2004 02:56 AM
тАО12-15-2004 02:56 AM
Re: perl: Can't locate ExtUtils/MakeMaker.pm
if really necessary you could unshift your own search path in the @INC array by using the "use lib" pragma, or on the command line like
# perl -Mlib=/home/me/my/modules -le 'print join "\n",@INC'
/home/me/my/modules
/opt/perl5/lib/5.8.0/PA-RISC2.0-LP64
/opt/perl5/lib/5.8.0
/opt/perl5/lib/site_perl/5.8.0/PA-RISC2.0-LP64
/opt/perl5/lib/site_perl/5.8.0
/opt/perl5/lib/site_perl
.
However, MakeMaker is part of the basic Perl distro and should already be included in the search path.
Please check also
# perl -MExtUtils::MakeMaker -le 'print $ExtUtils::MakeMaker::VERSION'
6.03
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-15-2004 03:02 AM
тАО12-15-2004 03:02 AM
Re: perl: Can't locate ExtUtils/MakeMaker.pm
So, assuming I'm correct, you either fetch a more recent perl binary prebuild from one of the available sources (HP Porting center on http://hpux.connect.org.uk/ or my site at http://mirrors.develooper.com/hpux/ ), or rebuild perl from source yourself, which is a good option if you are using HP C-ANSI-C, because all binary distro's for HP-UX are - as far as I know - built with GNU gcc, and your problem post does not state what compiler you use.
My build includes the most recent DBI at the moment of build.
And to answer your question, you can set the perl lib path in $PERL5LIB
Enjoy, Have FUN! H.Merijn
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-15-2004 03:03 AM
тАО12-15-2004 03:03 AM
Re: perl: Can't locate ExtUtils/MakeMaker.pm
Your @INC looks strange, at least non-standard to me.
Have you installed your Perl under /project/iASv2, or has someone modified it (e.g. in a profile script or other)?
If you are using the precompiled HP-UX Perl build it should have been installed beneath /opt.
Please post the output of "perl -V",
to see if you're running a custom built Perl.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-15-2004 03:26 AM
тАО12-15-2004 03:26 AM
Re: perl: Can't locate ExtUtils/MakeMaker.pm
I have do this:
# perl -le 'print join "\n", @INC'
/project/iASv2/src/pdc_perl/bin/HPUX/Opt/lib/5.6.1/PA-RISC2.0
/project/iASv2/src/pdc_perl/bin/HPUX/Opt/lib/5.6.1
/project/iASv2/src/pdc_perl/bin/HPUX/Opt/lib/site_perl/5.6.1/PA-RISC2.0
/project/iASv2/src/pdc_perl/bin/HPUX/Opt/lib/site_perl/5.6.1
/project/iASv2/src/pdc_perl/bin/HPUX/Opt/lib/site_perl
but I don't have this directory.
#find / -name MakeMaker.pm
/opt/perl/lib/5.6.1/ExtUtils/MakeMaker.pm
/opt/OV/contrib/perl/lib/5.6.1/ExtUtils/MakeMaker.pm
/Serveis/oas10g/perl/lib/5.6.1/ExtUtils/MakeMaker.pm
I would like to install this module in /Serveis/oas10g/perl/lib/5.6.1, so:
#pwd
/Serveis/oas10g/perl/lib/5.6.1
#perl -Mlib=/Serveis/oas10g/perl/lib/5.6.1 -le 'print join "\n",@INC'
Can't locate Config.pm in @INC (@INC contains: /project/iASv2/src/pdc_perl/bin/HPUX/Opt/lib/5.6.1/PA-RISC2.0 /project/iASv2/src/pdc_perl/bin/HPUX/Opt/lib/5.6.1 /project/iASv2/src/pdc_perl/bin/HPUX/Opt/lib/site_perl/5.6.1/PA-RISC2.0 /project/iASv2/src/pdc_perl/bin/HPUX/Opt/lib/site_perl/5.6.1 /project/iASv2/src/pdc_perl/bin/HPUX/Opt/lib/site_perl .) at lib.pm line 4.
BEGIN failed--compilation aborted at lib.pm line 4.
Compilation failed in require.
BEGIN failed--compilation aborted.
but its returns this error. Any idea??
Thanks,
Carmen.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-15-2004 03:30 AM
тАО12-15-2004 03:30 AM
Re: perl: Can't locate ExtUtils/MakeMaker.pm
Regards,
Fred
"Reality is just a point of view." (P. K. D.)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-15-2004 03:30 AM
тАО12-15-2004 03:30 AM
Re: perl: Can't locate ExtUtils/MakeMaker.pm
# perl Makefile.PL
Maybe this is not correct??
Thanks!,
Carmen.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-15-2004 03:32 AM
тАО12-15-2004 03:32 AM
Re: perl: Can't locate ExtUtils/MakeMaker.pm
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-15-2004 03:35 AM
тАО12-15-2004 03:35 AM
Re: perl: Can't locate ExtUtils/MakeMaker.pm
Regards,
Fred
"Reality is just a point of view." (P. K. D.)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-15-2004 03:53 AM
тАО12-15-2004 03:53 AM
Re: perl: Can't locate ExtUtils/MakeMaker.pm
Besides, don't use the -M option to load another path that I told you before.
As procura suggested the usual way would be to set the PERL5LIB variable (if you really need to).
I simply forgot about that one.
First find out which of the three interpreters gets invoked.
e.g.
which perl
or
type perl
As said before, to see how this Perl was built (i.e. which compiler etc) post the output from
"perl -V"
Alternatively you could post us the dump from
perl -MConfig -e 'map{printf "%s => %s\n",$Config{$_},$_} sort keys %Config'
(no, just kidding, this would be overkill)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-15-2004 04:03 AM
тАО12-15-2004 04:03 AM
Re: perl: Can't locate ExtUtils/MakeMaker.pm
If so, where is it pointing to?
# ll $(which perl)
lrwxr-xr-x 1 root sys 19 Jul 6 2003 /usr/bin/perl -> /opt/perl5/bin/perl
If your Perl isn't a very special custom built Perl that contains special modules,
go and download the build from procura, or if you're adventuous get the sources and build your own.
(Outch, by accident I swapped key and value, and the formatting yields clutter,
maybe this works better?
perl -MConfig -e 'map{printf "%-20s => %s\n",$_,$Config{$_}} sort keys %Config'
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-16-2004 12:53 AM
тАО12-16-2004 12:53 AM
Re: perl: Can't locate ExtUtils/MakeMaker.pm
Finally I have do one link between
/project/iASv2/src/pdc_perl/bin/HPUX/Opt/lib
and /Serveis/oas10g/perl/lib/5.6.1
and then it has works ok.
Thanks everyone.
Carmen.