64位Linux系统无法链接libmysqlclient库
[ 2007/06/23 21:47 | by ipaddr ]
64位Linux系统下,源码编译时,有时会无法链接libmysqlclient库:
/usr/bin/ld: skipping incompatible /usr/lib/mysql/libmysqlclient.so when searching for -lmysqlclient
/usr/bin/ld: skipping incompatible /usr/lib/mysql/libmysqlclient.a when searching for -lmysqlclient
请将Makefile里面的
-L/usr/lib/mysql
改为
-L/usr/lib64/mysql
---------------
或者:
----------------
# cd /usr/lib
# mv lib lib.bak
# ln -s /usr/lib64/mysql /usr/lib/mysql
>>>>>>>>>>>>>>>>
/usr/bin/ld: skipping incompatible /usr/lib/mysql/libmysqlclient.so when searching for -lmysqlclient
/usr/bin/ld: skipping incompatible /usr/lib/mysql/libmysqlclient.a when searching for -lmysqlclient
请将Makefile里面的
-L/usr/lib/mysql
改为
-L/usr/lib64/mysql
---------------
或者:
----------------
# cd /usr/lib
# mv lib lib.bak
# ln -s /usr/lib64/mysql /usr/lib/mysql
>>>>>>>>>>>>>>>>
在FC6-X86-64 操作系统下编译和安装Apache2.2.3
[ 2007/06/23 21:46 | by ipaddr ]
# tar -jxvf httpd-2.2.3.tar.bz2
# cd httpd-2.2.3
# ./configure LDFLAGS="-L/usr/lib64 -L/lib64" --enable-so --enable-rewrite --enable-cgi
# vi ./srclib/apr-util/Makefile
将
APRUTIL_LIBS = -lsqlite3 /usr/lib/libexpat.la /root/tar/httpd-2.2.3/srclib/apr/libapr-1.la -luuid -lrt -lcrypt -lpthread -ldl
改为
APRUTIL_LIBS = -lsqlite3 /usr/lib64/libexpat.la /root/tar/httpd-2.2.3/srclib/apr/libapr-1.la -luuid -lrt -lcrypt -lpthread -ldl
# make
# make install
# cd /usr/local/apache2/
# ./bin/apachectl -k start
在浏览器中输入
http://127.0.0.1/
如果能够看到
It works!
则表示安装成功>>>>>>>>>>>>>>>>>>>
# cd httpd-2.2.3
# ./configure LDFLAGS="-L/usr/lib64 -L/lib64" --enable-so --enable-rewrite --enable-cgi
# vi ./srclib/apr-util/Makefile
将
APRUTIL_LIBS = -lsqlite3 /usr/lib/libexpat.la /root/tar/httpd-2.2.3/srclib/apr/libapr-1.la -luuid -lrt -lcrypt -lpthread -ldl
改为
APRUTIL_LIBS = -lsqlite3 /usr/lib64/libexpat.la /root/tar/httpd-2.2.3/srclib/apr/libapr-1.la -luuid -lrt -lcrypt -lpthread -ldl
# make
# make install
# cd /usr/local/apache2/
# ./bin/apachectl -k start
在浏览器中输入
http://127.0.0.1/
如果能够看到
It works!
则表示安装成功>>>>>>>>>>>>>>>>>>>
如何在64位Linux系统上删除RPM包
[ 2007/06/23 21:46 | by ipaddr ]
如果是在64位Linux系统上,很多RPM包会有x86_64和i386两个,使用rpm -qa|grep ipaddrxxx类似的命令会查询出两个包:
rpm -qa|grep ipaddr
如果要删除,不可以直接使用:
rpm -e ipaddr
而必须使用:
rpm -e ipaddr.version.arch>>>>>>>
rpm -qa|grep ipaddr
如果要删除,不可以直接使用:
rpm -e ipaddr
而必须使用:
rpm -e ipaddr.version.arch>>>>>>>
[mysql]Table tblName is marked as crashed and should be repaired
[ 2007/06/23 21:44 | by ipaddr ]
[mysql]Table tblName is marked as crashed and should be repaired
Mysql提示tblName表格已损坏,需要修复:
进入到对应的数据库目录:
cd /var/lib/mysql/dbname
使用myisamchk修复:
shell> myisamchk -r tblName
>>>>>>>
Mysql提示tblName表格已损坏,需要修复:
进入到对应的数据库目录:
cd /var/lib/mysql/dbname
使用myisamchk修复:
shell> myisamchk -r tblName
>>>>>>>