|
小弟装的是slackware12.2
编译参数:
[PHP]
./configure --prefix=/app/mysql \
--with-mysqld-user=mysql \
--without-debug \
--with-big-tables \
--with-zlib-dir=bundled \
--with-extra-charsets=all \
--with-pthread \
--enable-static \
--enable-thread-safe-client \
--with-mysqld-ldflags=-all-static \
--with-client-ldflags=-all-static \
--enable-assembler \
--with-ssl
[/PHP]
make 时错误如下:
[PHP]
make[2]: Entering directory `/root/mysql-5.1.34/client'
/bin/sh ../libtool --preserve-dup-deps --tag=CXX --mode=link g++ -O3 -fno-implicit-templates -fno-exceptions -fno-rtti -L/usr/lib -rdynamic -o mysql mysql.o readline.o sql_string.o completion_hash.o ../cmd-line-utils/libedit/libedit.a -lncurses -all-static -lpthread ../libmysql/libmysqlclient.la -lcrypt -lnsl -lm ../zlib/libzlt.la
g++ -O3 -fno-implicit-templates -fno-exceptions -fno-rtti -rdynamic -o mysql mysql.o readline.o sql_string.o completion_hash.o -static -L/usr/lib ../cmd-line-utils/libedit/libedit.a -lncurses -lpthread ../libmysql/.libs/libmysqlclient.a -lm -lpthread -lpthread -lpthread -lpthread -L/usr/i486-slackware-linux/bin -L/usr/i486-slackware-linux/lib -lpthread -lpthread -lpthread -lpthread /usr/lib/libstdc++.a -lm -lm -lm -L/usr/lib/gcc/i486-slackware-linux/4.2.4 -L/usr/lib/gcc/i486-slackware-linux/4.2.4/../../../../i486-slackware-linux/lib -L/usr/lib/gcc/i486-slackware-linux/4.2.4/../../.. -lgcc_s -lc -lgcc_s -lm -lgcc_s -lc -lgcc_s -lm ../zlib/.libs/libzlt.a -lcrypt -lnsl -lm
/usr/lib/gcc/i486-slackware-linux/4.2.4/../../../../i486-slackware-linux/bin/ld: cannot find -lgcc_s
collect2: ld returned 1 exit status
[/PHP]
网上说是找不到libgcc_s.so.1修改参数后:
[PHP]
./configure --prefix=/app/mysql \
--with-mysqld-user=mysql \
--without-debug \
--with-big-tables \
--with-zlib-dir=bundled \
--with-extra-charsets=all \
--with-pthread \
--enable-static \
--enable-thread-safe-client \
--with-mysqld-ldflags=-all-static \
--with-client-ldflags=-all-static \
--enable-assembler \
--with-ssl \
LDFLAGS=-L/usr/lib
[/PHP]
涛声依旧啊。。。。。。 |
|