Witam Panow.
Prosiłbym o pomoc w instalacji modułów ponieważ już przy wykonaniu komendy make wywala mi sporo błędów których nie potrafię naprawić.
root@ubuntu:/var/www/lms/daemon# make cc -I/usr/local/include -Wall -O2 -fPIC -DGNU -DUSE_MYSQL -DLMS_LIB_DIR="/usr/local/lms/lib" -c -o dbdrivers/mysql/db.o dbdrivers/mysql/db.c In file included from dbdrivers/mysql/db.c:31: dbdrivers/mysql/db.h:6:25: error: mysql/mysql.h: No such file or directory dbdrivers/mysql/db.h:7:32: error: mysql/mysqld_error.h: No such file or directory In file included from dbdrivers/mysql/db.c:31: dbdrivers/mysql/db.h:23: error: expected â=â, â,â, â;â, âasmâ or â__attribute__â before âCONNâ dbdrivers/mysql/db.h:24: error: expected â=â, â,â, â;â, âasmâ or â__attribute__â before âResultHandleâ dbdrivers/mysql/db.h:57: error: expected specifier-qualifier-list before âCONNâ dbdrivers/mysql/db.c:35: error: expected â)â before â*â token dbdrivers/mysql/db.c: In function âdb_connectâ: dbdrivers/mysql/db.c:119: warning: implicit declaration of function âmysql_initâ dbdrivers/mysql/db.c:119: error: âConnHandleâ has no member named âconnâ dbdrivers/mysql/db.c:119: warning: comparison between pointer and integer dbdrivers/mysql/db.c:124: warning: implicit declaration of function âmysql_real_connectâ dbdrivers/mysql/db.c:124: error: âConnHandleâ has no member named âconnâ dbdrivers/mysql/db.c:125: warning: implicit declaration of function âmysql_errorâ dbdrivers/mysql/db.c:125: error: âConnHandleâ has no member named âconnâ dbdrivers/mysql/db.c:125: warning: format â%sâ expects type âchar *â, but argument 3 has type âintâ dbdrivers/mysql/db.c:126: warning: implicit declaration of function âmysql_closeâ dbdrivers/mysql/db.c:126: error: âConnHandleâ has no member named âconnâ dbdrivers/mysql/db.c:132: warning: implicit declaration of function âmysql_set_character_setâ dbdrivers/mysql/db.c:132: error: âConnHandleâ has no member named âconnâ dbdrivers/mysql/db.c: In function âdb_disconnectâ: dbdrivers/mysql/db.c:149: error: âConnHandleâ has no member named âconnâ dbdrivers/mysql/db.c: In function âdb_queryâ: dbdrivers/mysql/db.c:161: error: âResultHandleâ undeclared (first use in this function) dbdrivers/mysql/db.c:161: error: (Each undeclared identifier is reported only once dbdrivers/mysql/db.c:161: error: for each function it appears in.) dbdrivers/mysql/db.c:161: error: âresâ undeclared (first use in this function) dbdrivers/mysql/db.c:176: warning: implicit declaration of function âmysql_queryâ dbdrivers/mysql/db.c:176: error: âConnHandleâ has no member named âconnâ dbdrivers/mysql/db.c:177: error: âConnHandleâ has no member named âconnâ dbdrivers/mysql/db.c:177: warning: format â%sâ expects type âchar *â, but argument 3 has type âintâ dbdrivers/mysql/db.c:182: warning: implicit declaration of function âmysql_store_resultâ dbdrivers/mysql/db.c:182: error: âConnHandleâ has no member named âconnâ dbdrivers/mysql/db.c:183: error: âConnHandleâ has no member named âconnâ dbdrivers/mysql/db.c:183: warning: format â%sâ expects type âchar *â, but argument 3 has type âintâ dbdrivers/mysql/db.c:188: warning: implicit declaration of function âget_query_resultâ dbdrivers/mysql/db.c:188: warning: assignment makes pointer from integer without a cast dbdrivers/mysql/db.c:189: warning: implicit declaration of function âmysql_free_resultâ dbdrivers/mysql/db.c: In function âdb_execâ: dbdrivers/mysql/db.c:249: error: âConnHandleâ has no member named âconnâ dbdrivers/mysql/db.c:250: error: âConnHandleâ has no member named âconnâ dbdrivers/mysql/db.c:250: warning: format â%sâ expects type âchar *â, but argument 3 has type âintâ dbdrivers/mysql/db.c:254: warning: implicit declaration of function âmysql_affected_rowsâ dbdrivers/mysql/db.c:254: error: âConnHandleâ has no member named âconnâ dbdrivers/mysql/db.c: In function âdb_escapeâ: dbdrivers/mysql/db.c:300: warning: implicit declaration of function âmysql_real_escape_stringâ dbdrivers/mysql/db.c:300: error: âConnHandleâ has no member named âconnâ make: *** [dbdrivers/mysql/db.o] Error 1
Wersja MySQL: 5.0.38 Przed kompilacja konfigurowałem go tak
./configure --prefix=/usr/local --with-mysql --lmsbindir=/usr/local/lms/bin --lmslibdir=/usr/local/lms/lib --libdir=/usr/local/lib --incdir=/usr/local/include
Pozdrawiam.
_______________________________________________ lms mailing list lms@lists.lms.org.pl http://lists.lms.org.pl/mailman/listinfo/lms