03 2014 档案
摘要:strtr(string,from,to): 逐个字符开始替换,以from跟to中长度较较短的一个为准,例如:strtr("aidenliu","ai","b") 只替换原始字符串中出现的a 输出:bidenliustrtr("aidenliu","a","bc") 只替换原始字符串中出现的a 输出:bidenliu此函数是大小写敏感的,具如果发生多次替换,每一次替换的蓝本都是最原始的那个字符串,而不是在前一次替换的基础上替换,如strtr("aidenliu&qu
阅读全文
摘要:1)进入apache的安装目录:(视个人安装情况而不同) [root@server ~]# cd /usr/local/apache/conf2)编辑httpd.conf文件,搜索"#ServerName",添加ServerName localhost:80[root@server conf]# lsextra httpd.conf magic mime.types original[root@server conf]# vi httpd.conf#ServerName www.example.com:80ServerName localhost:803)再重新启动apac
阅读全文
摘要:checking for specified location of the MySQL UNIX socket... nochecking for MySQL UNIX socket location... /tmp/mysql.sockconfigure: error: Cannot find MySQL header files under yes.Note that the MySQL client library is not bundled anymore.解法: 如果不知道 header file 在哪,用 「find / -name mysql.h」命令找出其位置; 如...
阅读全文
摘要:首先, 通过错误提示, 我们得知"I cannot run apxs". 我一直以为是apxs安装有问题, 但找了很久仍未得到合理的解释和解决方法.于是我直接运行"/usr/local/apache/bin/apxs"这个脚本, 得到下面的错误提示:bash: ./apxs: /replace/with/path/to/perl/interpreter: bad interpreter: No such file or directory哦, 给人的感觉很像仍然是apxs程序有问题, 但问题在哪里呢? "interpreter"是什么
阅读全文
摘要:问题现象:../depcomp: line 512: exec: g++: not foundmake[2]: *** [my_new.o] Error 127make[2]: Leaving directory `/usr/local/src/mysql-5.0.41/mysys'make[1]: *** [all-recursive] Error 1make[1]: Leaving directory `/usr/local/src/mysql-5.0.41'make: *** [all] Error 2解决办法:安装gcc-c++安装完成之后再次编译make可能会出现如下
阅读全文
摘要:安装mysql,在./configure时出现错误:error: No curses/termcap library found的解决办法mysql版本:5.1.30已经不记得这次是第几次安装mysql了,遇到这个问题倒是第一次。之前在tar,./configure,make,make install 经典四步时,从来没有想过其中的过程,只觉得像例行公事一样,做就是了。不幸的是,这次在./configure后,make时出现以下错误:make: *** No targets specified and no makefile found. stop.本来这次还是想向别人请教的,后来转念一想,前
阅读全文