RH 7 RT 2 make fixdeps problems

I’m trying to set up a Linux test machine with rt 2.0.11 and am getting
the following messages / errors as I try to install the perl modules.
Any help is appreciated:

-cut-
make testdeps | grep not
Checking for Apache::Cookie…Apache::Cookie not installed.
Checking for Apache::Session 1.53 …Apache::Session 1.53 not
installed.
Checking for DBD::mysql 2.0416 …DBD::mysql 2.0416 not installed.
-cut-

If I run make fixdeps and respond as follows:

-cut-
Removing previously used /root/.cpan/build/Msql-Mysql-modules-1.2219

CPAN.pm: Going to build J/JW/JWIED/Msql-Mysql-modules-1.2219.tar.gz

Which drivers do you want to install?

1)  MySQL only
2)  mSQL only (either of mSQL 1 or mSQL 2)
3)  MySQL and mSQL (either of mSQL 1 or mSQL 2)

4)  mSQL 1 and mSQL 2
5)  MySQL, mSQL 1 and mSQL 2

Enter the appropriate number: [3] 1

Do you want to install the MysqlPerl emulation? You might keep your old
Mysql module (to be distinguished from DBD::mysql!) if you are concerned

about compatibility to existing applications! [y] ENTER
Where is your MySQL installed? Please tell me the directory that
contains the subdir ‘include’. [/usr] ENTER
Which database should I use for testing the MySQL drivers? [test]ENTER
On which host is database test running (hostname, ip address or
host:port) [localhost]ENTER

User name for connecting to database test? [undef]root
Password for connecting to database test? [undef] ENTER
-cut-

I then get prompted:

-cut-

Sources for perl5 found in “/root/.cpan/build/perl-5.6.1”.

Beginning of configuration questions for perl5.

Checking echo to see how to suppress newlines…
…using -n.
The star should be here–>*

First let’s make sure your kit is complete. Checking…
Looks good…

[bla bla bla]

[Type carriage return to continue]

-cut-

I respond with ENTER to all the defaults and then get the error:

-cut-
Running Mkbootstrap for DBD::mysql ()
chmod 644 mysql.bs
LD_RUN_PATH=“/usr/lib/mysql:/lib:/usr/lib:/usr/lib/gcc-lib/i386-redhat-linux/2.96”
gcc -o …/blib/arch/auto/DBD/mysql/mysql.so -shared -L/usr/local/lib
dbdimp.o mysql.o -L/usr/lib/mysql -L/usr/lib/mysql -lmysqlclient -lm
-lz -L/usr/lib/gcc-lib/i386-redhat-linux/2.96 -lgcc
/usr/bin/ld: cannot find -lz
collect2: ld returned 1 exit status
make[2]: *** […/blib/arch/auto/DBD/mysql/mysql.so] Error 1
make[2]: Leaving directory
/root/.cpan/build/Msql-Mysql-modules-1.2219/mysql' make[1]: *** [subdirs] Error 2 make[1]: Leaving directory /root/.cpan/build/Msql-Mysql-modules-1.2219’

/usr/bin/make – NOT OK
Running make test
Oops, make had returned bad status
Running make install
Oops, make had returned bad status

-cut-

The OS detaisl are:

Red Hat Linux release 7.1 (Seawolf)
Kernel 2.4.9-21 on an i686

All rpms were updated using redhat up2date and the following are
installed:

mailcap-2.1.4-2
redhat-release-7.1-1
bdflush-1.5-16
cracklib-2.7-8
db2-2.4.14-5
dosfstools-2.2-8
eject-2.0.2-7
finger-0.17-7
glib-1.2.9-1
hdparm-3.9-6
ksymoops-2.4.0-3
libtermcap-2.0.8-26
mailx-8.1.1-20
mktemp-1.5-8
bzip2-1.0.1-3
MAKEDEV-3.1.0-14
ncurses-5.2-8
cpio-2.4.2-20
ed-0.2-19
gawk-3.0.6-1
grep-2.4.2-5
dhcpcd-1.3.18pl8-10
make-3.79.1-5
net-tools-1.57-6
popt-1.6.2-8
psmisc-19-4
raidtools-0.90-20
readline-4.1-9
rmt-0.4b21-3
sed-3.02-9
shadow-utils-20000826-4
slang-1.4.2-2
kbdconfig-1.9.12-1
setuptool-1.7-2
sysklogd-1.4-7
tar-1.13.19-4
tcsh-6.10-5
textutils-2.0.11-7
mkbootdisk-1.4.2-1
time-1.7-13
crontabs-1.9-2words-2-16
kudzu-0.98.10-1
sh-utils-2.0-13
zlib-1.1.3-22
libpng-1.0.9-1
rpm-python-4.0.2-8
apmd-3.0final-29
ipchains-1.3.10-7
kernel-2.4.2-2
pciutils-2.1.8-19
vixie-cron-3.0.1-62
mod_perl-1.24_01-2
dump-0.4b21-3
stat-2.2-2
mysql-3.23.36-1
tripwire-2.3.0-58
sendmail-cf-8.11.6-2.7.1
tmpwatch-2.8-0.7.x
xinetd-2.3.3-1
python-popt-0.6-4
filesystem-2.1.0-2.1
glibc-2.2.4-19.3
utempter-0.5.2-4
vim-minimal-6.0-0.27
mount-2.11b-3
mouseconfig-4.22-1
mod_ssl-2.8.5-0.7
openldap-2.0.21-0.7.1
rhn_register-2.7.2-7.x.8
initscripts-5.84.1-1
openssh-clients-2.9p2-11.7
quota-3.01pre9-0.7.1
SysVinit-2.78-17
cpp-2.96-85
devfsd-2.4.3-12
e2fsprogs-1.23-1.7.1
gnupg-1.0.6-1
krb5-libs-1.2.2-12
groff-1.17.2-7.0.2
man-1.5i2-0.7x.5
mm-1.1.3-2
mod_put-1.3-2
mod_bandwidth-2.0.3-2
kernel-headers-2.4.9-21
redhat-logos-1.1.2-3
setup-2.4.7-1
basesystem-7.0-2
termcap-11.0.1-8
chkconfig-1.2.22-1
db1-1.85-5
db3-3.1.17-7
file-3.33-1
gdbm-1.8.0-5
gmp-3.1.1-3
iputils-20001110-1
libjpeg-6b-15
mingetty-0.9.4-16
bash-2.04-21
hotplug-2001_02_14-15
info-4.0-20
fileutils-4.0.36-4
findutils-4.1.6-2
gettext-0.10.35-31
ash-0.3.7-1
gzip-1.3-12
m4-1.4.1-4
nkf-1.92-4
perl-5.6.0-12
logrotate-3.5.4-1
procps-2.0.7-8
pwdb-0.61.1-1
rdate-1.0-7
ftp-0.17-7
rootfiles-7.0-4
console-tools-19990829-34
setserial-2.17-2
dev-3.1.0-14
newt-0.50.22-2
ntsysv-1.2.22-1
slocate-2.5-5
syslinux-1.52-1
tcp_wrappers-7.6-18
lilo-21.4.4-13
traceroute-1.4a5-25
vim-common-6.0-0.27
which-2.12-1
cracklib-dicts-2.7-8
authconfig-4.1.6-1
gpm-1.19.3-16
passwd-0.64.1-4
freetype-2.0.1-4
krbafs-1.0.5-1
pam_krb5-1.31-1
python-1.5.2-30
rpm-4.0.2-8
lokkit-0.43-6
pump-0.8.11-1
timeconfig-3.2-1
anacron-2.3-16
perl-DBI-1.14-10
gd-1.8.3-7
binutils-2.10.91.0.2-3
lsof-4.51-1
linuxconf-1.24r2-10
mysql-devel-3.23.36-1
perl-DBD-MySQL-1.2215-1
vlock-1.3-5
telnet-0.17-18.1
util-linux-2.11f-17
python-xmlrpc-1.5.1-7.x.3
up2date-2.7.11-7.x.1
glibc-common-2.2.4-19.3
up2date-2.7.11-7.x.1
glibc-common-2.2.4-19.3
modutils-2.4.13-0.7.1
mkinitrd-3.2.6-1
openssl-0.9.6-9
pam-0.75-18.7
procmail-3.21-0.71
sendmail-8.11.6-2.7.1
openssh-2.9p2-11.7
openssh-server-2.9p2-11.7
glibc-devel-2.2.4-19.3
at-3.1.8-23
cyrus-sasl-1.5.24-22.7
diffutils-2.7-23
gcc-2.96-85
iptables-1.2.4-0.71.2
libstdc+±2.96-85
losetup-2.11b-3
expat-1.95.1-1
mod_throttle-3.1.2-3
apache-1.3.22-1.7.1
kernel-2.4.9-21
mysql-server-3.23.36-1

On Tue, 26 Feb 2002 12:13:28 MST, “Randy Millis (Lists Acct.)” said:

> >Running Mkbootstrap for DBD::mysql () >chmod 644 mysql.bs >LD_RUN_PATH="/usr/lib/mysql:/lib:/usr/lib:/usr/lib/gcc-lib/i386-redhat-linux/2 >.96" >gcc -o ../blib/arch/auto/DBD/mysql/mysql.so -shared -L/usr/local/lib >dbdimp.o mysql.o -L/usr/lib/mysql -L/usr/lib/mysql -lmysqlclient -lm >-lz -L/usr/lib/gcc-lib/i386-redhat-linux/2.96 -lgcc >/usr/bin/ld: cannot find -lz >collect2: ld returned 1 exit status

You can see on line 4(?) up there that ld(1) is complaining about
‘cannot find -lz’; as in zlib.

zlib-1.1.3-22

It looks like you have zlib installed, but it may be hiding it’s
libraries in an odd place… try doing a

locate libz.so

to see where that is, and then you will have to update your Makefile for
that directory probably… using ‘-L /usr/lib’ or whatever, as part of
the gcc arguments.

or maybe that can be done in the configure stage somewhere, I dunno I'm lazy and it's ages since I've done it!
Niall

This may or may not help, but when I installed RT on a RH 7.1 system
there was a major problem with the RH perl version (5.6.0) and the
version that CPAN tried to install (5.6.1). (I belatedly discovered
that you could halt the 5.6.1 installation.)

Anyway, when I ran testdeps, it wasn’t finding the Apache modules that
you noted below, either. I ended up having to install these modules by
hand using the direct perl path command to 5.6.0, (rather than just
“perl filename”) and it then properly installed those modules, testdeps
was happy, and then the RT install went fine.

Shannon Pedersen-----Original Message-----
From: Randy Millis (Lists Acct.) [mailto:rmillisl@enel.ucalgary.ca]
Sent: Tuesday, February 26, 2002 11:13 AM
To: rt-users@lists.fsck.com
Subject: [rt-users] RH 7 RT 2 make fixdeps problems

I’m trying to set up a Linux test machine with rt 2.0.11 and am getting
the following messages / errors as I try to install the perl modules.
Any help is appreciated:

-cut-
make testdeps | grep not
Checking for Apache::Cookie…Apache::Cookie not installed.
Checking for Apache::Session 1.53 …Apache::Session 1.53 not
installed.
Checking for DBD::mysql 2.0416 …DBD::mysql 2.0416 not installed.
-cut-

I think I did it the REALLY hard way, where I got the tarred perl
modules and installed them by hand. But rather than using:
$ perl Makefile.pl

I used:
$ /usr/bin/perl Makefile.pl

So in your case, you might try:
$ /usr/local/bin/perl Makefile.pl

Alternatively, I do have the following written in my notes about
installing from CPAN(my notes eventually got fairly incoherent):

$ /usr/bin/perl -MCPAN -e shell

which gives you a prompt like this:
cpan>

From there, I typed:
install Apache::Session

or whatever you need.

Hopefully someone with more experience in all this will assist you as
well - RT was really my first experience with Perl modules and CPAN. A
Definite crash course. :slight_smile:

I’ll give this a try. Thanks.

This may or may not help, but when I installed RT on a RH 7.1 system
there was a major problem with the RH perl version (5.6.0) and the
version that CPAN tried to install (5.6.1). (I belatedly discovered
that you could halt the 5.6.1 installation.)

Anyone know how you halt the install if doing a make fixdeps?

This is the same issue I have it sounds like:

/usr/local/bin/perl is perl, v5.6.1 built for i686-linux

/usr/bin/perl is perl v5.6.0 built for i386-linux

Anyway, when I ran testdeps, it wasn’t finding the Apache modules that
you noted below, either. I ended up having to install these modules by
hand using the direct perl path command to 5.6.0, (rather than just
“perl filename”) and it then properly installed those modules, testdeps
was happy, and then the RT install went fine.

I tried /usr/bin/perl -MCPAN -e shell but ran into two failures ant it looks
like one success.

-cut-
make testdeps | grep not
Checking for Apache::Cookie…Apache::Cookie not installed.
Checking for Apache::Session 1.53 …Apache::Session 1.53 not installed.
-cut-

Anyone haev any ideas what next?

Here’s is what I did:

-cut-
/usr/bin/perl -MCPAN -e shell

cpan> install Apache::Cookie

In file included from apache_request.c:59:
apache_request.h:5:19: httpd.h: No such file or directory
apache_request.h:6:25: http_config.h: No such file or directory
apache_request.h:7:23: http_core.h: No such file or directory
apache_request.h:8:22: http_log.h: No such file or directory
apache_request.h:9:23: http_main.h: No such file or directory
apache_request.h:10:27: http_protocol.h: No such file or directory
apache_request.h:11:25: util_script.h: No such file or directory
make[1]: *** [apache_request.o] Error 1
make[1]: Leaving directory `/root/.cpan/build/libapreq-1.0/c’
make: *** [subdirs] Error 2
/usr/bin/make – NOT OK
Running make test
Oops, make had returned bad status
Running make install
Oops, make had returned bad status

cpan> install Apache::Session
BEGIN failed–compilation aborted at
blib/lib/Apache/Session/Serialize/UUEncode.pm line 14.
Compilation failed in require at t/99uue.t line 7.
BEGIN failed–compilation aborted at t/99uue.t line 7.
t/99uue…dubious
Test returned status 2 (wstat 512, 0x200)
Failed Test Status Wstat Total Fail Failed List of failed
t/99base64.t 2 512 ?? ?? % ??
t/99dbfile.t 2 512 ?? ?? % ??
t/99file.t 2 512 ?? ?? % ??
t/99flex.t 2 512 2 2 100.00% 1-2
t/99mysql.t 2 512 ?? ?? % ??
t/99oracle.t 2 512 ?? ?? % ??
t/99postgres.t 2 512 ?? ?? % ??
t/99storable.t 2 512 ?? ?? % ??
t/99uue.t 2 512 ?? ?? % ??
2 tests skipped.
Failed 9/18 test scripts, 50.00% okay. 2/86 subtests failed, 97.67% okay.
make: *** [test_dynamic] Error 2
/usr/bin/make test – NOT OK
Running make install
make test had returned bad status, won’t install without force

cpan> install DBD::mysql

All tests successful, 1 test skipped.
Files=18, Tests=764, 22 wallclock secs ( 1.74 cusr + 0.16 csys = 1.90 CPU)
/usr/bin/make test – OK
Running make install
Installing /usr/lib/perl5/site_perl/5.6.0/i386-linux/auto/DBD/mysql/mysql.so
Skipping /usr/lib/perl5/site_perl/5.6.0/i386-linux/auto/DBD/mysql/mysql.bs
(unchanged)
Files found in blib/arch: installing files in blib/lib into architecture
dependent library tree
Installing /usr/lib/perl5/site_perl/5.6.0/i386-linux/Mysql.pm
Installing /usr/lib/perl5/site_perl/5.6.0/i386-linux/Mysql/Statement.pm
Installing /usr/lib/perl5/site_perl/5.6.0/i386-linux/Bundle/DBD/mysql.pm
Installing /usr/lib/perl5/site_perl/5.6.0/i386-linux/DBD/mysql.pod
Installing /usr/lib/perl5/site_perl/5.6.0/i386-linux/DBD/mysql.pm
Installing /usr/lib/perl5/site_perl/5.6.0/i386-linux/DBD/mysql/INSTALL.pod
Installing /usr/share/man/man3/DBD::mysql.3pm
Installing /usr/share/man/man3/DBD::mysql::INSTALL.3pm
Installing /usr/share/man/man3/Bundle::DBD::mysql.3pm
Installing /usr/share/man/man3/Mysql.3pm
Writing /usr/lib/perl5/site_perl/5.6.0/i386-linux/auto/DBD/mysql/.packlist
Appending installation info to /usr/lib/perl5/5.6.0/i386-linux/perllocal.pod
/usr/bin/make install – OK

-cut-

cpan> force Apache::Session seemed to work.

Still Have the issue below now:

cpan> force Apache::Session seemed to work.

Still Have the issue below now:

/usr/bin/perl -MCPAN -e shell

cpan> install Apache::Cookie

In file included from apache_request.c:59:
apache_request.h:5:19: httpd.h: No such file or directory

I suspect that you have apache installed in a non-standard location, or
you did not install the apache include files.

Find where the files are on your system (locate httpd.h, or install them),
and include that directory to the end of $CCFLAGS in
/root/.cpan/build/libapreq-1.0/Makefile as
‘-I/this/directory/has/httpd.h/in/it’ , eg:

CCFLAGS = -fno-strict-aliasing -I/usr/local/include -I/this/directory

Then run make in that (/root/.cpan/etc) directory, ‘make test’ and ‘make
install’ if this is ok.

                         Bruce Campbell                            RIPE
               Systems/Network Engineer                             NCC
             www.ripe.net - PGP562C8B1B                      Operations

Still Have the issue below now:

/usr/bin/perl -MCPAN -e shell

cpan> install Apache::Cookie

In file included from apache_request.c:59:
apache_request.h:5:19: httpd.h: No such file or directory

I suspect that you have apache installed in a non-standard location, or
you did not install the apache include files.

Is that becasue I used the redhat RPM for apache?

Find where the files are on your system (locate httpd.h, or install them),
and include that directory to the end of $CCFLAGS in
/root/.cpan/build/libapreq-1.0/Makefile as
‘-I/this/directory/has/httpd.h/in/it’ , eg:

CCFLAGS = -fno-strict-aliasing -I/usr/local/include -I/this/directory

Then run make in that (/root/.cpan/etc) directory, ‘make test’ and ‘make
install’ if this is ok.

I’ll give this a try.