cannot install Apache2::Request from CPAN

cannot install Apache2::Request from CPAN

am 01.04.2009 06:45:38 von Mark Hedges

This worked at one time on this machine. Can't do it now,
nor on new similarly configured machines. Any ideas? --mark--


hedges@anubis:~/DeSpam$ sudo updatedb
hedges@anubis:~/DeSpam$ locate Request.pm
/usr/lib/perl5/site_perl/5.8.8/i386-linux-thread-multi/APR/R equest.pm
/usr/lib/perl5/site_perl/5.8.8/i386-linux-thread-multi/Apach e2/Request.pm
/usr/lib/perl5/vendor_perl/5.8.8/HTTP/Request.pm
/usr/lib/perl5/vendor_perl/5.8.8/i386-linux-thread-multi/Apa che/TestRequest.pm
/usr/lib/perl5/vendor_perl/5.8.8/i386-linux-thread-multi/Apa che2/SubRequest.pm
/usr/share/autoconf/Autom4te/Request.pm
hedges@anubis:~/DeSpam$ sudo perl -MCPAN -e shell

cpan shell -- CPAN exploration and modules installation (v1.9304)
ReadLine support enabled

cpan[1]> Lockfile removed.
hedges@anubis:~/DeSpam$ sudo su -
[root@anubis ~]# perl -MCPAN -e shell

cpan shell -- CPAN exploration and modules installation (v1.9304)
ReadLine support enabled

cpan[1]> install Apache2::Request
CPAN: Storable loaded ok (v2.15)
Going to read /root/.cpan/Metadata
Database was generated on Mon, 30 Mar 2009 10:27:08 GMT
Warning: Cannot install Apache2::Request, don't know what it is.
Try the command

i /Apache2::Request/

to find objects with matching identifiers.
CPAN: Time::HiRes loaded ok (v1.86)

cpan[2]> install APR::Request
Warning: Cannot install APR::Request, don't know what it is.
Try the command

i /APR::Request/

to find objects with matching identifiers.

cpan[3]> o conf
$CPAN::Config options from '/usr/lib/perl5/5.8.8/CPAN/Config.pm':
commit [Commit changes to disk]
defaults [Reload defaults from disk]
help [Short help about 'o conf' usage]
init [Interactive setting of all options]

applypatch undef
auto_commit [0]
build_cache [10]
build_dir [/root/.cpan/build]
build_dir_reuse undef
build_requires_install_policy undef
bzip2 undef
cache_metadata [1]
check_sigs undef
colorize_debug undef
colorize_output undef
colorize_print undef
colorize_warn undef
commandnumber_in_prompt [1]
commands_quote undef
connect_to_internet_ok [0]
cpan_home [/root/.cpan]
curl undef
dontload_hash
dontload_list undef
ftp [/usr/bin/ftp]
ftp_passive [1]
ftp_proxy []
ftpstats_period undef
ftpstats_size undef
getcwd [cwd]
gpg [/usr/bin/gpg]
gzip [/bin/gzip]
halt_on_failure undef
histfile [/root/.cpan/histfile]
histsize [1000]
http_proxy []
inactivity_timeout [0]
index_expire [1]
inhibit_startup_message [0]
keep_source_where [/root/.cpan/sources]
load_module_verbosity undef
lynx undef
make [/usr/bin/make]
make_arg []
make_install_arg []
make_install_make_command [/usr/bin/make]
makepl_arg []
mbuild_arg []
mbuild_install_arg []
mbuild_install_build_command [./Build]
mbuildpl_arg []
ncftp []
ncftpget []
no_proxy []
pager [/usr/bin/less]
password undef
patch undef
perl5lib_verbosity undef
prefer_installer undef
prefs_dir undef
prerequisites_policy [ask]
proxy_pass undef
proxy_user undef
randomize_urllist undef
scan_cache [atstart]
shell [/bin/bash]
show_unparsable_versions undef
show_upload_date [0]
show_zero_versions undef
tar [/bin/tar]
tar_verbosity undef
term_is_latin [0]
term_ornaments [1]
test_report undef
trust_test_report_history undef
unzip [/usr/bin/unzip]
urllist
0 [http://mirrors.gossamer-threads.com/CPAN]
1 [http://cpan.mirror.facebook.com/]
2 [http://www.ibiblio.org/pub/mirrors/CPAN]
3 [http://www.perl.com/CPAN/]
use_sqlite [0]
username undef
wait_list undef
wget [/usr/bin/wget]
yaml_load_code undef
yaml_module undef

Re: cannot install Apache2::Request from CPAN

am 01.04.2009 07:00:08 von Mark Hedges

I can build libapreq2-2.12 from source on an i386 machine
but not on an x86_64 virtualhost both run CentOS 5.?.

gcc -shared .libs/util.o .libs/version.o .libs/cookie.o .libs/param.o .libs/parser.o .libs/parser_urlencoded.o .libs/parser_header.o .libs/parser_multipart.o .libs/module.o .libs/module_custom.o .libs/module_cgi.o .libs/error.o -Wl,--rpath -Wl,/usr/lib64 -Wl,--rpath -Wl,/usr/lib64 /usr/lib64/libapr-1.so /usr/lib64/libaprutil-1.so -lpthread -ldl -lldap -llber /usr/lib/libdb-4.3.so /usr/lib/libexpat.so -Wl,-soname -Wl,libapreq2.so.3 -o .libs/libapreq2.so.3.7.1
/usr/lib/libdb-4.3.so: could not read symbols: File in wrong format
collect2: ld returned 1 exit status
make[2]: *** [libapreq2.la] Error 1

Mark

Re: cannot install Apache2::Request from CPAN

am 01.04.2009 07:05:12 von Fred Moyer

On Tue, Mar 31, 2009 at 10:00 PM, Mark Hedges wr=
ote:
>
> I can build libapreq2-2.12 from source on an i386 machine
> but not on an x86_64 virtualhost both run CentOS 5.?.

Do you have /usr/lib64 in your /etc/ld.so.conf? Been a while since
I've done 64 bit but that always seemed to be the issue. Run ldconfig
if needed after you add it.

>
> gcc -shared =A0.libs/util.o .libs/version.o .libs/cookie.o .libs/param.o =
..libs/parser.o .libs/parser_urlencoded.o .libs/parser_header.o .libs/parser=
_multipart.o .libs/module.o .libs/module_custom.o .libs/module_cgi.o .libs/=
error.o =A0-Wl,--rpath -Wl,/usr/lib64 -Wl,--rpath -Wl,/usr/lib64 /usr/lib64=
/libapr-1.so /usr/lib64/libaprutil-1.so -lpthread -ldl -lldap -llber /usr/l=
ib/libdb-4.3.so /usr/lib/libexpat.so =A0-Wl,-soname -Wl,libapreq2.so.3 -o .=
libs/libapreq2.so.3.7.1
> /usr/lib/libdb-4.3.so: could not read symbols: File in wrong format
> collect2: ld returned 1 exit status
> make[2]: *** [libapreq2.la] Error 1
>
> Mark
>

Re: cannot install Apache2::Request from CPAN

am 01.04.2009 08:04:27 von Mark Hedges

I still have the problem that I can't install
Apache2::Request from CPAN. Was I not able to do that
before, after installing apr-dev yum packages etc.?

On Tue, 31 Mar 2009, Fred Moyer wrote:

> Do you have /usr/lib64 in your /etc/ld.so.conf? Been a
> while since I've done 64 bit but that always seemed to be
> the issue. Run ldconfig if needed after you add it.

Nope. I added . Same error:

/usr/lib/libdb-4.3.so: could not read symbols: File in wrong
format

$ cat /etc/ld.so.conf
/usr/lib64
include ld.so.conf.d/*.conf
/opt/dell/srvadmin/dataeng/bin
/opt/dell/srvadmin/hapi/bin
/opt/dell/srvadmin/oma/bin
/opt/dell/srvadmin/omsa/bin
/opt/dell/srvadmin/rac5/bin
/opt/dell/srvadmin/rac5/libs
/opt/dell/srvadmin/shared/bin
/opt/dell/srvadmin/sm
/opt/dell/srvadmin/sm/dellvl

?? what is this stuff?

Argh why can't I just use `apt-get`?

Mark

Re: cannot install Apache2::Request from CPAN

am 02.04.2009 01:10:38 von Mark Hedges

On Tue, 31 Mar 2009, Mark Hedges wrote:
> On Tue, 31 Mar 2009, Fred Moyer wrote:
>
> > Do you have /usr/lib64 in your /etc/ld.so.conf? Been a
> > while since I've done 64 bit but that always seemed to
> > be the issue. Run ldconfig if needed after you add it.
>
> Nope. I added . Same error:
>
> /usr/lib/libdb-4.3.so: could not read symbols: File in
> wrong format

Aha, CentOS apparently allows both *.i386 and *.x86_64
packages to be installed simultaneously. I wrote a script
to filter this all out and install the x86_64 ones and it
works to compile from source now.

I still cannot get it from CPAN. I thought I'd been able to
do that. Too bad it's not packaged for CentOS.

Mark