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 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 |