www.ProFTPD.de

ProFTPD => ProFTPD - Deutsch => Thema gestartet von: RcRaCk2k am 17. August 2004, 10:20:59



Titel: proFTPd 1.2.9 Fehler mit MySQL
Beitrag von: RcRaCk2k am 17. August 2004, 10:20:59
Guten Tag.

Ich habe MySQL 4.1.3 und proFTPd 1.2.9 auf meinem Server Unix Fedora Core 2 selbst kompiliert.

MySQL 4.1.3 befindet sich im Verzeichnis /www/mysql
proFTPd 1.2.9 befindet sich im Verzeichnis /usr/local

Ich habe MySQL so kompiliert:
./configure --prefix=/www/mysql --enable-shared --enable-static --with-named-z-libs=/usr/include --with-unix-socket-path=/www/mysql/mysql.sock --with-tcp-port=3306 --with-mysqld-user=mysql --with-openssl --with-isam

Und proFTP folgendermaßen:
./configure --prefix=/usr/local --sysconfdir=/etc/proftpd --enable-auth-pam --enable-cap --enable-ipv6 --enable-shadow --with-modules=mod_sql:mod_sql_mysql:mod_quotatab:mod_quotatab_file:mod_quotatab_sql --with-includes=/www/mysql/include/mysql --with-libraries=/www/mysql/lib/mysql

Wenn ich jetzt versuche proFTP per ./proftpd zu starten, dann kommt folgende Fehlermeldung:
./proftpd: error while loading shared libraries: libmysqlclient.so.14: cannot open shared object file: No such file or directory

Woran kann das liegen? Mein Directory-Listing von /www/mysql/lib/mysql
-rw-r--r--  1 root root   11770 16. Aug 13:53 libdbug.a
-rw-r--r--  1 root root   41180 16. Aug 13:53 libheap.a
-rw-r--r--  1 root root   14396 16. Aug 13:53 libmerge.a
-rw-r--r--  1 root root  309240 16. Aug 13:53 libmyisam.a
-rw-r--r--  1 root root   26222 16. Aug 13:53 libmyisammrg.a
-rw-r--r--  1 root root  451052 16. Aug 13:53 libmysqlclient.a
-rwxr-xr-x  1 root root     897 16. Aug 13:53 libmysqlclient.la*
lrwxrwxrwx  1 root root      24 16. Aug 13:53 libmysqlclient.so -> libmysqlclient.so.14.0.0*
lrwxrwxrwx  1 root root      24 16. Aug 13:53 libmysqlclient.so.14 -> libmysqlclient.so.14.0.0*
-rwxr-xr-x  1 root root 1390970 16. Aug 13:53 libmysqlclient.so.14.0.0*
-rw-r--r--  1 root root  226012 16. Aug 13:53 libmystrings.a
-rw-r--r--  1 root root  248774 16. Aug 13:53 libmysys.a
-rw-r--r--  1 root root   98884 16. Aug 13:53 libnisam.a
-rw-r--r--  1 root root   15226 16. Aug 13:53 libvio.a


VIELEN DANK IM VORAUS
Michael Rack
http://www.michaelrack.de


Titel: So ein scheiss, aber echt
Beitrag von: RcRaCk2k am 17. August 2004, 11:04:23
Also was soll denn der Blödsinn?

Ich gebe bei --with-libraries extra /www/mysql/lib/mysql an und was bringt das? GARNIX.

Jetzt hab ich unter /usr/lib einen Symlink auf diese File gemacht und man sehe.. proFTP geht.

Also da kann man nurnoch den kopf schütteln.
Muss mir wohl mal die SourceCode Zeile heraussuchen, wo das falsch programmiert worden ist, denn das kann wirklich nicht angehen.

Wenn jemand die SourceCode Zeile kennt, wo die libmysqlclient.so per LoadLibrary implementiert wird, dann bitte sofort mitteilen.

Danke im Voraus.
Michael Rack
http://www.michaelrack.de


Titel: proFTPd 1.2.9 Fehler mit MySQL
Beitrag von: Wörsty am 17. August 2004, 15:42:31
Das with-libraries steht in der configure.in so um Zeile 160 und configure um die Zeile 3179 - sieht ok aus.
Wieso geht das nicht bei dir?


Titel: proFTPd 1.2.9 Fehler mit MySQL
Beitrag von: RcRaCk2k am 17. August 2004, 17:32:07
Gefunden.

Die Codezeile sieht folgendermaßen aus:
handle = LoadLibrary(MYSQL_LIBRARY);

da der Eintrag MYSQL_LIBRARY auf libmysqlcliet.14.so zeigt sucht das System in den Enviroments. Eine Eintragung ind ld.so.conf unter /etc hatte den Effekt erziehlt, dass proFTPd auch in diesem Verzeichnis nach der Datei sucht.

Komisch, dass MySQL das nicht beim Kompelieren automatisch einträgt.

Vielen Dank nochmal.
LG Michi
http://www.michaelrack.de