in reply to Setting build path for modules
I have no idea how it could happen that you end up with both /lib and /lib64. Some information is lacking from you. Show the output of
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Setting build path for modules
by Skyeheart (Initiate) on Jul 18, 2012 at 17:04 UTC | |
For Perl -V: Summary of my perl5 (revision 5 version 8 subversion 8) configuration: Platform: osname=linux, osvers=2.6.18-53.el5, archname=x86_64-linux-thread-multi uname='linux builder10.centos.org 2.6.18-53.el5 #1 smp mon nov 12 02:14:55 est 2007 x86_64 x86_64 x86_64 gnulinux ' config_args='-des -Doptimize=-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -Dversion=5.8.8 -Dmyhostname=localhost -Dperladmin=root@localhost -Dcc=gcc -Dcf_by=Red Hat, Inc. -Dinstallprefix=/usr -Dprefix=/usr -Dlibpth=/usr/local/lib64 /lib64 /usr/lib64 -Dprivlib=/usr/lib/perl5/5.8.8 -Dsitelib=/usr/lib/perl5/site_perl/5.8.8 -Dvendorlib=/usr/lib/perl5/vendor_perl/5.8.8 -Darchlib=/usr/lib64/perl5/5.8.8/x86_64-linux-thread-multi -Dsitearch=/usr/lib64/perl5/site_perl/5.8.8/x86_64-linux-thread-multi -Dvendorarch=/usr/lib64/perl5/vendor_perl/5.8.8/x86_64-linux-thread-multi -Darchname=x86_64-linux-thread-multi -Dvendorprefix=/usr -Dsiteprefix=/usr -Duseshrplib -Dusethreads -Duseithreads -Duselargefiles -Dd_dosuid -Dd_semctl_semun -Di_db -Ui_ndbm -Di_gdbm -Di_shadow -Di_syslog -Dman3ext=3pm -Duseperlio -Dinstallusrbinperl=n -Ubincompat5005 -Uversiononly -Dpager=/usr/bin/less -isr -Dd_gethostent_r_proto -Ud_endhostent_r_proto -Ud_sethostent_r_proto -Ud_endprotoent_r_proto -Ud_setprotoent_r_proto -Ud_endservent_r_proto -Ud_setservent_r_proto -Dinc_version_list=5.8.7 5.8.6 5.8.5 -Dscriptdir=/usr/bin' hint=recommended, useposix=true, d_sigaction=define usethreads=define use5005threads=undef useithreads=define usemultiplicity=define useperlio=define d_sfio=undef uselargefiles=define usesocks=undef use64bitint=define use64bitall=define uselongdouble=undef usemymalloc=n, bincompat5005=undef Compiler: cc='gcc', ccflags ='-D_REENTRANT -D_GNU_SOURCE -fno-strict-aliasing -pipe -Wdeclaration-after-statement -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm', optimize='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic', cppflags='-D_REENTRANT -D_GNU_SOURCE -fno-strict-aliasing -pipe -Wdeclaration-after-statement -I/usr/local/include -I/usr/include/gdbm' ccversion='', gccversion='4.1.2 20080704 (Red Hat 4.1.2-52)', gccosandvers='' intsize=4, longsize=8, ptrsize=8, doublesize=8, byteorder=12345678 d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=16 ivtype='long', ivsize=8, nvtype='double', nvsize=8, Off_t='off_t', lseeksize=8 alignbytes=8, prototype=define Linker and Libraries: ld='gcc', ldflags ='' libpth=/usr/local/lib64 /lib64 /usr/lib64 libs=-lresolv -lnsl -lgdbm -ldb -ldl -lm -lcrypt -lutil -lpthread -lc perllibs=-lresolv -lnsl -ldl -lm -lcrypt -lutil -lpthread -lc libc=, so=so, useshrplib=true, libperl=libperl.so gnulibc_version='2.5' Dynamic Linking: dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-Wl,-E -Wl,-rpath,/usr/lib64/perl5/5.8.8/x86_64-linux-thread-multi/CORE' cccdlflags='-fPIC', lddlflags='-shared -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic' Characteristics of this binary (from libperl): Compile-time options: MULTIPLICITY PERL_IMPLICIT_CONTEXT PERL_MALLOC_WRAP USE_64_BIT_ALL USE_64_BIT_INT USE_ITHREADS USE_LARGE_FILES USE_PERLIO USE_REENTRANT_API Built under linux Compiled at Feb 22 2012 11:13:04 @INC: /usr/lib64/perl5/site_perl/5.8.8/x86_64-linux-thread-multi /usr/lib/perl5/site_perl/5.8.8 /usr/lib/perl5/site_perl /usr/lib64/perl5/vendor_perl/5.8.8/x86_64-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.8 /usr/lib/perl5/vendor_perl /usr/lib64/perl5/5.8.8/x86_64-linux-thread-multi /usr/lib/perl5/5.8.8 For Config.pm: # This is CPAN.pm's systemwide configuration file provided for # ActivePerl. This file provides defaults for users, and the values # can be changed in a per-user configuration file. The user-config # file is being looked for as ~/.cpan/CPAN/MyConfig.pm. my $CPAN_HOME = "$ENV{HOME}/.cpan"; $CPAN_HOME = do {require Config; "$Config::Config{prefix}/cpan"} if $^O eq "MSWin32"; my $SHELL = $ENV{SHELL}; $SHELL ||= $ENV{COMSPEC} if $^O eq "MSWin32"; my $PAGER = $ENV{PAGER} || "more"; $CPAN::Config = { 'auto_commit' => 0, 'build_cache' => "10", 'build_dir' => "$CPAN_HOME/build", 'cache_metadata' => 1, 'colorize_output' => 1, 'colorize_print' => "green", 'colorize_warn' => "red", 'cpan_home' => $CPAN_HOME, 'ftp' => '', 'ftp_proxy' => '', 'getcwd' => '', 'gpg' => '', 'gzip' => '', 'histfile' => "$CPAN_HOME/histfile", 'histsize' => 100, 'http_proxy' => '', 'inactivity_timeout' => 0, 'index_expire' => 1, 'inhibit_startup_message' => 0, 'keep_source_where' => "$CPAN_HOME/sources", 'load_module_verbosity' => 'none', 'lynx' => '', 'make' => '', 'make_arg' => '', 'make_install_arg' => '', 'makepl_arg' => 'INSTALLDIRS=site', 'mbuild_arg' => '', 'mbuild_install_arg' => '', 'mbuildpl_arg' => '--installdirs=site', 'no_proxy' => '', 'pager' => $PAGER, 'prerequisites_policy' => 'follow', 'scan_cache' => 'atstart', 'shell' => $SHELL, 'tar' => '', 'term_is_latin' => 1, 'unzip' => '', 'urllist' => 'http://ppm.activestate.com/CPAN', 'http://cpan.perl.org', 'wget' => '', 'yaml_module' => qYAML::XS, }; if ($^O eq "MSWin32") { $ENV{TERM} = "dumb"; $CPAN::Config->{colorize_output} = eval { require Win32::Console::ANSI }; } else { $CPAN::Config->{mbuild_install_build_command} = './Build install'; } 1; Though I'm not sure if that's the correct one since I found so many Config.pm in a lot of directories. | [reply] |
by daxim (Curate) on Jul 19, 2012 at 09:08 UTC | |
-Dprivlib=/usr/lib/perl5/5.8.8 The problem stems from Redhat's practice of defining these divergent paths explicitly at compile time. I cannot fathom why, but probably they thought they had a good reason to do so. (Normally one only defines a common prefix.) Your Perl is very old and unsupported. You should get an updated package for your OS, or if failing that, simply abandon the installation compile your own current stable of Perl (as of now this is version 5.16.0) into a different prefix. Perlbrew helps you automate most parts of that. | [reply] |