level 2
清爽又清新丶板栗0f
楼主
为什么我按照网上的顺序安装老是出错? make 的时候出现
gcc -O2 -Wall -Wmissing-prototypes -Wmissing-declarations -ansi -pedantic -fPIC -I/usr/include/mysql -I/usr/local/lua-5.1.4/include -DLUASQL_VERSION_NUMBER='"2.3.0"' -c -o src/luasql.o src/luasql.c
gcc -O2 -Wall -Wmissing-prototypes -Wmissing-declarations -ansi -pedantic -fPIC -I/usr/include/mysql -I/usr/local/lua-5.1.4/include -DLUASQL_VERSION_NUMBER='"2.3.0"' -c -o src/ls_mysql.o src/ls_mysql.c
In file included from src/ls_mysql.c:19:
/usr/include/mysql/mysql.h:132: 警告:ISO C90 不支持‘long long’
src/ls_mysql.c: 在函数‘cur_nullify’中:
src/ls_mysql.c:193: 警告:在有返回值的函数中未发现 return 语句
export MACOSX_DEPLOYMENT_TARGET="10.3"; gcc -O2 -Wall -Wmissing-prototypes -Wmissing-declarations -ansi -pedantic -fPIC -I/usr/include/mysql -I/usr/local/lua-5.1.4/include -DLUASQL_VERSION_NUMBER='"2.3.0"' -o src/mysql.so -shared src/luasql.o src/ls_mysql.o -L/usr/lib -lmysqlclient -
lz
/usr/bin/ld: cannot find -lmysqlclient
collect2: ld 返回 1
make: *** [src/mysql.so] 错误 1
求救啊
2014年11月28日 03点11分
1
gcc -O2 -Wall -Wmissing-prototypes -Wmissing-declarations -ansi -pedantic -fPIC -I/usr/include/mysql -I/usr/local/lua-5.1.4/include -DLUASQL_VERSION_NUMBER='"2.3.0"' -c -o src/luasql.o src/luasql.c
gcc -O2 -Wall -Wmissing-prototypes -Wmissing-declarations -ansi -pedantic -fPIC -I/usr/include/mysql -I/usr/local/lua-5.1.4/include -DLUASQL_VERSION_NUMBER='"2.3.0"' -c -o src/ls_mysql.o src/ls_mysql.c
In file included from src/ls_mysql.c:19:
/usr/include/mysql/mysql.h:132: 警告:ISO C90 不支持‘long long’
src/ls_mysql.c: 在函数‘cur_nullify’中:
src/ls_mysql.c:193: 警告:在有返回值的函数中未发现 return 语句
export MACOSX_DEPLOYMENT_TARGET="10.3"; gcc -O2 -Wall -Wmissing-prototypes -Wmissing-declarations -ansi -pedantic -fPIC -I/usr/include/mysql -I/usr/local/lua-5.1.4/include -DLUASQL_VERSION_NUMBER='"2.3.0"' -o src/mysql.so -shared src/luasql.o src/ls_mysql.o -L/usr/lib -lmysqlclient -
lz
/usr/bin/ld: cannot find -lmysqlclient
collect2: ld 返回 1
make: *** [src/mysql.so] 错误 1
求救啊