Rt command does not work

Hello all,

I have updated some perl modules and then, rt coomands do not work
properly.

kimura@red > ./rtq
Can’t load ‘/usr/local/lib/perl5/site_perl/5.005/i386-freebsd/auto/DBD/mysql/mys
ql.so’ for module DBD::mysql: Shared object “libmysqlclient.so.10” not found at
/usr/libdata/perl/5.00503/DynaLoader.pm line 169.

at /usr/local/lib/perl5/site_perl/5.005/i386-freebsd/Mysql.pm line 13
BEGIN failed–compilation aborted at /opt/rt/lib/rt/database.pm line 8.

I searched for libmysqlclient.so.10 the concerned directory but it is
not there.

I suspect DBD::mysql module may be wrong so, I did;

red# perl -MCPAN -e ‘install DBD::mysql’
(snip)

cp lib/Mysql.pm blib/lib/Mysql.pm
cc -c -I/usr/local/lib/perl5/site_perl/5.005/i386-freebsd/auto/DBI -DVERSION="2.0900" -DXS_VERSION="2.0900" -DPIC -fpic -I/usr/libdata/perl/5.00503/mach/CORE dbdimp.c
In file included from dbdimp.c:29:
dbdimp.h:31: mysql.h: No such file or directory
dbdimp.h:32: errmsg.h: No such file or directory
*** Error code 1

Stop in /root/.cpan/build/DBD-mysql-2.0900.
/usr/bin/make – NOT OK
Running make test
Can’t test without successful make
Running make install
make had returned bad status, install seems impossible

Concerning mysql.h and errmsg.h, they exist.

red# find / -name mysql.h -print
/usr/local/mysql/include/mysql/mysql.h

red# find / -name errmsg.h -print
/usr/local/mysql/include/mysql/errmsg.h

Any suggestion on what to fix?


Kazu Kimura kimura@ctc.ad.jp
IP Network tech. dep. CTC
Phone +81-52-740-8101
Fax +81-52-740-8935


The current version of DBD::mysql is a broken beta test.

perl -CPAN -e’install DBD::mysql::Install’ will get you the old
working version.On Tue, May 22, 2001 at 03:57:38PM +0900, Kazu Kimura wrote:

Hello all,

I have updated some perl modules and then, rt coomands do not work
properly.

kimura@red > ./rtq
Can’t load ‘/usr/local/lib/perl5/site_perl/5.005/i386-freebsd/auto/DBD/mysql/mys
ql.so’ for module DBD::mysql: Shared object “libmysqlclient.so.10” not found at
/usr/libdata/perl/5.00503/DynaLoader.pm line 169.

at /usr/local/lib/perl5/site_perl/5.005/i386-freebsd/Mysql.pm line 13
BEGIN failed–compilation aborted at /opt/rt/lib/rt/database.pm line 8.

I searched for libmysqlclient.so.10 the concerned directory but it is
not there.

I suspect DBD::mysql module may be wrong so, I did;

red# perl -MCPAN -e ‘install DBD::mysql’
(snip)

cp lib/Mysql.pm blib/lib/Mysql.pm
cc -c -I/usr/local/lib/perl5/site_perl/5.005/i386-freebsd/auto/DBI -DVERSION="2.0900" -DXS_VERSION="2.0900" -DPIC -fpic -I/usr/libdata/perl/5.00503/mach/CORE dbdimp.c
In file included from dbdimp.c:29:
dbdimp.h:31: mysql.h: No such file or directory
dbdimp.h:32: errmsg.h: No such file or directory
*** Error code 1

Stop in /root/.cpan/build/DBD-mysql-2.0900.
/usr/bin/make – NOT OK
Running make test
Can’t test without successful make
Running make install
make had returned bad status, install seems impossible

Concerning mysql.h and errmsg.h, they exist.

red# find / -name mysql.h -print
/usr/local/mysql/include/mysql/mysql.h

red# find / -name errmsg.h -print
/usr/local/mysql/include/mysql/errmsg.h

Any suggestion on what to fix?


Kazu Kimura kimura@ctc.ad.jp
IP Network tech. dep. CTC
Phone +81-52-740-8101
Fax +81-52-740-8935



rt-users mailing list
rt-users@lists.fsck.com
http://lists.fsck.com/mailman/listinfo/rt-users

jesse reed vincent – root@eruditorum.orgjesse@fsck.com
70EBAC90: 2A07 FC22 7DB4 42C1 9D71 0108 41A3 3FB3 70EB AC90

They’ll take my private key when they pry it from my cold dead fingers!

I did as follows.

red# perl -CPAN -e’install DBD::mysql::Install’
Unrecognized switch: -CPAN (-h will show valid options).
red# perl -MCPAN -e ‘install DBD::mysql::Install’
CPAN: Storable loaded ok
Going to read /root/.cpan/Metadata
(snip)

anifying blib/man1/dbimon.1
/usr/bin/make – OK
Running make test

(snip)
t/00base…install_driver(mysql) failed: Can’t load ‘…/blib/arch/auto/DBD/mysql/mysql.so’ for module DBD::mysql: Shared object “libmysqlclient.so.10” not found at
/usr/libdata/perl/5.00503/DynaLoader.pm line 169.

(snip)
/usr/bin/make test – NOT OK
Running make install
make test had returned bad status, won’t install without force

! Make install failed because make test failed. I forced make install.

red# cd /root/.cpan/build/Msql-Mysql-modules-1.2216
red# /usr/bin/make install
! This seems successful.

! But…
red# cd /opt/rt/bin
red# ./rtq --help
Can’t load ‘/usr/local/lib/perl5/site_perl/5.005/i386-freebsd/auto/DBD/mysql/mys
ql.so’ for module DBD::mysql: Shared object “libmysqlclient.so.10” not found at /usr/libdata/perl/5.00503/DynaLoader.pm line 169.

at /usr/local/lib/perl5/site_perl/5.005/i386-freebsd/Mysql.pm line 13
BEGIN failed–compilation aborted at /opt/rt/lib/rt/database.pm line 8.

! It failed though.

! Sigh…On Tue, 22 May 2001 11:26:03 -0400 Jesse jesse@fsck.com wrote:

The current version of DBD::mysql is a broken beta test.

perl -CPAN -e’install DBD::mysql::Install’ will get you the old
working version.


Kazu Kimura kimura@ctc.ad.jp
IP Network tech. dep. CTC
Phone +81-52-740-8101
Fax +81-52-740-8935


I did as follows.

! Make install failed because make test failed. I forced make install.

nod if make test fails it’s unlikely that rt will work.
How did you install mysql?

red# cd /root/.cpan/build/Msql-Mysql-modules-1.2216
red# /usr/bin/make install
! This seems successful.

! But…
red# cd /opt/rt/bin
red# ./rtq --help
Can’t load ‘/usr/local/lib/perl5/site_perl/5.005/i386-freebsd/auto/DBD/mysql/mys
ql.so’ for module DBD::mysql: Shared object “libmysqlclient.so.10” not found at /usr/libdata/perl/5.00503/DynaLoader.pm line 169.

at /usr/local/lib/perl5/site_perl/5.005/i386-freebsd/Mysql.pm line 13
BEGIN failed–compilation aborted at /opt/rt/lib/rt/database.pm line 8.

! It failed though.

! Sigh…

The current version of DBD::mysql is a broken beta test.

perl -CPAN -e’install DBD::mysql::Install’ will get you the old
working version.


Kazu Kimura kimura@ctc.ad.jp
IP Network tech. dep. CTC
Phone +81-52-740-8101
Fax +81-52-740-8935


jesse reed vincent – root@eruditorum.orgjesse@fsck.com
70EBAC90: 2A07 FC22 7DB4 42C1 9D71 0108 41A3 3FB3 70EB AC90

There are no supercomputer applications that are solvable that cannot be solved
in finite time using a fucking TRS-80 with approprite disk/tape drives. Zero.
-Tanj

Huh. weird. you may need to add /usr/local/mysql/lib/mysql to
the LD_LIBRARY_PATH. or, for example, under linux, add it to
/etc/ld.so.conf and run /sbin/ldconfig -v and then try building
Msql-Mysql-Modules again.On Wed, May 23, 2001 at 01:49:22PM +0900, Kazu Kimura wrote:

I simply installed mysql-3.23.38 with following.

configure --prefix=/usr/local/mysql --with-low-memory
make
make test
make install

This was successful.

Regards,

On Wed, 23 May 2001 00:19:29 -0400 Jesse jesse@fsck.com wrote:

On Wed, May 23, 2001 at 01:15:51PM +0900, Kazu Kimura wrote:

I did as follows.

! Make install failed because make test failed. I forced make install.

nod if make test fails it’s unlikely that rt will work.
How did you install mysql?


Kazu Kimura kimura@ctc.ad.jp
IP Network tech. dep. CTC
Phone +81-52-740-8101
Fax +81-52-740-8935


jesse reed vincent – root@eruditorum.orgjesse@fsck.com
70EBAC90: 2A07 FC22 7DB4 42C1 9D71 0108 41A3 3FB3 70EB AC90

pretty soon we’re going to HAVE to have hypertext mail!
–Tim Berners Lee. (8 Jan 1993 on www-talk)

I simply installed mysql-3.23.38 with following.

configure --prefix=/usr/local/mysql --with-low-memory
make
make test
make install

This was successful.

Regards,On Wed, 23 May 2001 00:19:29 -0400 Jesse jesse@fsck.com wrote:

On Wed, May 23, 2001 at 01:15:51PM +0900, Kazu Kimura wrote:

I did as follows.

! Make install failed because make test failed. I forced make install.

nod if make test fails it’s unlikely that rt will work.
How did you install mysql?


Kazu Kimura kimura@ctc.ad.jp
IP Network tech. dep. CTC
Phone +81-52-740-8101
Fax +81-52-740-8935


Jesse,

Thank you for the follow up.

My OS is FreeBSD4.0 and finally “/sbin/ldconfig -elf -m
/usr/local/mysql/lib/mysql” did fix this. No need to rebuild
Msql-Mysql-Module.

Regards,On Wed, 23 May 2001 00:55:31 -0400 Jesse jesse@fsck.com wrote:

Huh. weird. you may need to add /usr/local/mysql/lib/mysql to
the LD_LIBRARY_PATH. or, for example, under linux, add it to
/etc/ld.so.conf and run /sbin/ldconfig -v and then try building
Msql-Mysql-Modules again.

On Wed, May 23, 2001 at 01:49:22PM +0900, Kazu Kimura wrote:

I simply installed mysql-3.23.38 with following.


Kazu Kimura kimura@ctc.ad.jp
IP Network tech. dep. CTC
Phone +81-52-740-8101
Fax +81-52-740-8935