MySQL-dev wird verlangt 0o

Irgendwelche Probleme mit XAMPP für Linux? Dann ist hier genau der richtige Ort um nachzufragen.

MySQL-dev wird verlangt 0o

Postby raychen » 29. September 2006 11:56

ich komm mal schnell zu sache ;)

also ich hab ein browsergame, welches ich gerne einbinden möchte.
ohne xampp und mit suse packete hab ich das schon geschafft,
nur will ich es unter xampp zum laufen bringen. sieht wie folgt aus:

Code: Select all
linux-z0rk:/opt/lampp/htdocs/uga-agga/ugaagga # ./configure --with-gamedir=/opt/lampp/htdocs/uga-agga/
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking for gawk... gawk
checking for a BSD-compatible install... /usr/bin/install -c
checking for php... php
checking for php-config... php-config
checking for xsltproc... xsltproc
checking for mysql_config... mysql_config
checking for library containing sqrt... -lm
checking for /etc/httpd/conf/httpd.conf... no
checking for /etc/httpd/httpd.conf... no
checking for /etc/apache/httpd.conf... no
configure: installing game in /opt/lampp/htdocs/uga-agga/
configure: web server user is nobody
configure: creating ./config.status
config.status: creating src/Makefile
config.status: creating src/dbs/db-util
config.status: creating src/ticker/ticker.conf
config.status: creating src/utilities/crontab
config.status: creating src/utilities/db_backup.cron
config.status: creating src/utilities/util.inc.php
config.status: creating src/game/include/config.inc.php
config.status: creating src/www/config.inc.php


noch alles toll, passt aber nun:

Code: Select all
linux-z0rk:/opt/lampp/htdocs/uga-agga/ugaagga # make
cd src && make all
make[1]: Entering directory `/opt/lampp/htdocs/uga-agga/ugaagga/src'
gcc -c -Iticker  -g -O2 -Wall ticker/database.c -o ticker/database.o
ticker/database.c:11:26: error: mysql/errmsg.h: Datei oder Verzeichnis nicht gefunden
ticker/database.c:12:25: error: mysql/mysql.h: Datei oder Verzeichnis nicht gefunden
ticker/database.c:13:32: error: mysql/mysqld_error.h: Datei oder Verzeichnis nicht gefunden
ticker/database.c:43: error: expected specifier-qualifier-list before ‘MYSQL’
ticker/database.c:52: error: expected specifier-qualifier-list before ‘MYSQL_RES’
ticker/database.c: In function ‘db_connect’:
ticker/database.c:171: warning: implicit declaration of function ‘mysql_init’
ticker/database.c:171: error: ‘MYSQL’ undeclared (first use in this function)
ticker/database.c:171: error: (Each undeclared identifier is reported only once
ticker/database.c:171: error: for each function it appears in.)
ticker/database.c:171: error: expected expression before ‘)’ token
ticker/database.c:172: error: ‘db_t’ has no member named ‘host’
ticker/database.c:173: error: ‘db_t’ has no member named ‘user’
ticker/database.c:174: error: ‘db_t’ has no member named ‘passwd’
ticker/database.c:175: error: ‘db_t’ has no member named ‘dbname’
ticker/database.c:177: warning: implicit declaration of function ‘mysql_real_connect’
ticker/database.c:178: warning: implicit declaration of function ‘mysql_error’
ticker/database.c:178: error: expected expression before ‘)’ token
ticker/database.c:178: warning: format ‘%s’ expects type ‘char *’, but argument 3 has type ‘int’
ticker/database.c: At top level:
ticker/database.c:195: error: expected ‘)’ before ‘*’ token
ticker/database.c:265: error: expected ‘)’ before ‘*’ token
ticker/database.c: In function ‘db_result_free’:
ticker/database.c:287: error: ‘db_result_t’ has no member named ‘index’
ticker/database.c:288: warning: implicit declaration of function ‘mysql_free_result’
ticker/database.c:288: error: ‘db_result_t’ has no member named ‘result’
ticker/database.c:289: error: ‘db_result_t’ has no member named ‘values’
ticker/database.c: In function ‘db_query’:
ticker/database.c:300: warning: zero-length printf format string
ticker/database.c: In function ‘db_query_dstring’:
ticker/database.c:312: error: ‘MYSQL’ undeclared (first use in this function)
ticker/database.c:312: error: ‘db’ undeclared (first use in this function)
ticker/database.c:312: error: expected expression before ‘)’ token
ticker/database.c:313: error: ‘MYSQL_RES’ undeclared (first use in this function)
ticker/database.c:316: warning: implicit declaration of function ‘mysql_real_query’
ticker/database.c:317: error: ‘result’ undeclared (first use in this function)
ticker/database.c:317: warning: implicit declaration of function ‘mysql_store_result’
ticker/database.c:317: warning: implicit declaration of function ‘mysql_errno’
ticker/database.c:319: warning: implicit declaration of function ‘handle_query_error’
ticker/database.c:324: warning: implicit declaration of function ‘db_result_new’
ticker/database.c:324: warning: assignment makes pointer from integer without a cast
ticker/database.c: In function ‘db_affected_rows’:
ticker/database.c:334: warning: implicit declaration of function ‘mysql_affected_rows’
ticker/database.c:334: error: ‘MYSQL’ undeclared (first use in this function)
ticker/database.c:334: error: expected expression before ‘)’ token
ticker/database.c: In function ‘db_result_num_columns’:
ticker/database.c:351: error: ‘db_result_t’ has no member named ‘columns’
ticker/database.c: In function ‘db_result_num_rows’:
ticker/database.c:356: warning: implicit declaration of function ‘mysql_num_rows’
ticker/database.c:356: error: ‘db_result_t’ has no member named ‘result’
ticker/database.c: In function ‘db_result_next_row’:
ticker/database.c:361: error: ‘db_result_t’ has no member named ‘columns’
ticker/database.c:363: error: ‘db_result_t’ has no member named ‘row_data’
ticker/database.c:363: warning: implicit declaration of function ‘mysql_fetch_row’
ticker/database.c:363: error: ‘db_result_t’ has no member named ‘result’
ticker/database.c:366: error: ‘db_result_t’ has no member named ‘values’
ticker/database.c:366: error: ‘db_result_t’ has no member named ‘row_data’
ticker/database.c: In function ‘db_result_seek_row’:
ticker/database.c:372: warning: implicit declaration of function ‘mysql_data_seek’
ticker/database.c:372: error: ‘db_result_t’ has no member named ‘result’
ticker/database.c: In function ‘db_result_get_string’:
ticker/database.c:414: error: ‘db_result_t’ has no member named ‘row_data’
ticker/database.c:417: error: ‘db_result_t’ has no member named ‘index’
ticker/database.c: In function ‘db_result_get_string_at’:
ticker/database.c:464: error: ‘db_result_t’ has no member named ‘row_data’
ticker/database.c:467: error: ‘db_result_t’ has no member named ‘columns’
ticker/database.c:470: error: ‘db_result_t’ has no member named ‘values’
ticker/database.c:471: warning: control reaches end of non-void function
ticker/database.c: In function ‘db_result_num_columns’:
ticker/database.c:352: warning: control reaches end of non-void function
make[1]: *** [ticker/database.o] Fehler 1
make[1]: Leaving directory `/opt/lampp/htdocs/uga-agga/ugaagga/src'
make: *** [all] Fehler 2


ich lese da raus, dass die header fehlen. also das mysql-dev.
hmmm, ist das hier dabei? nein? dann muss ich es ja nachinstallieren.
hab die version 5.0.18 (von devel) installiert, aber dazu muss ich ja
client und shared und mysql (auch 5.0.18) mit installieren. ich check da
grad was nicht. hab ich dann 2 mysql datenbänke laufen ? 0o

ps..: devel packet runtergeladen und "installiert" wie es in der anleitung steht:

tar xvfz xampp-devel blablabla -C /opt


lg raychen
raychen
 
Posts: 2
Joined: 29. September 2006 11:49

Postby outlow » 03. October 2006 23:27

kann es sein das du die libs noch bekannt machen musst?
outlow
 
Posts: 3
Joined: 28. September 2006 09:46

Postby raychen » 04. October 2006 10:54

outlow wrote:kann es sein das du die libs noch bekannt machen musst?


:?:
raychen
 
Posts: 2
Joined: 29. September 2006 11:49


Return to XAMPP für Linux

Who is online

Users browsing this forum: No registered users and 2 guests