Doc Request: Gotcha for OpenBSD RT users

I found a gotcha in RT under OpenBSD.

I installed RT some months ago (and like it very much). Until this
weekend, I hadn’t rebooted my RT server since installation. When it
rebooted, the all of the interfaces started failing with this error:

libmysqlclient.so.6.0: No such file or directory

In the web error log, it was of course followed by our old friend
“Premature end of script headers: /usr/local/rt/bin/cgi/webrt.cgi”

This meant that the dynamic linker wasn’t getting the mysql directory
as one of its directories to search. I fixed it by adding the
proper mysql directory to the shlib_dirs in /etc/rc.conf, e.g.:
shlib_dirs=“/path/to/mysql” # extra directories for ldconfig

This isn’t difficult to debug, but it would be good to have it
mentioned in the install docs. The ports@openbsd.org mailing list
archives shows no sign of an official OpenBSD RT port. Could the
maintain of the FAQ and/or install documentation please add a mention
of this gotcha under OpenBSD?

Thanks.

Jill Lundquist jill@chezns.org
“The first butcher I saw as a child had a wooden leg, and to this
day I have an unreasonable feeling that butchers with two genuine
legs are impostors.” -Robertson Davies

This meant that the dynamic linker wasn’t getting the mysql directory

as one of its directories to search. I fixed it by adding the

proper mysql directory to the shlib_dirs in /etc/rc.conf, e.g.:

shlib_dirs=“/path/to/mysql” # extra directories for ldconfig

This is more a MySQL issue than an RT issue, since MySQL did not
properly adjust this when it was installed.

BTW, if anyone else might ever encounter such a problem, a more general
way would be to add the proper directory (usually PREFIX/lib) to the
/etc/ld.so.conf-file and run ldconfig manually.

Martin

Martin Schapendonk, martin@schapendonk.org, Phone: +31 (0)6 55770237
Student Information Management and Technology at Tilburg University
WEBMaster of the Students-WWW-server stuwww.kub.nl / PGP on request

I found a gotcha in RT under OpenBSD.

I installed RT some months ago (and like it very much). Until this
weekend, I hadn’t rebooted my RT server since installation. When it
rebooted, the all of the interfaces started failing with this error:

libmysqlclient.so.6.0: No such file or directory

This isn’t really an RT problem, but that the MySQL port in
OpenBSD doesn’t make it clear enough that the shlibs_dir should
be updated (although this is a general issue with ${LOCALBASE}/lib)
I’ll have a look (and perhaps convert it to SUBPACKAGES)

This isn’t difficult to debug, but it would be good to have it
mentioned in the install docs. The ports@openbsd.org mailing list
archives shows no sign of an official OpenBSD RT port. Could the
maintain of the FAQ and/or install documentation please add a mention
of this gotcha under OpenBSD?

I’ve actually got an RT port for OpenBSD on my TODO list, but it’s
quite long at the moment and I might not get to it until next
year - perhaps RT2 will be out by then instead :wink:

Anil Madhavapeddy, anil@recoil.org