自己在centos7.3下面装php5.3的时候,报错
checking "whether flock struct is linux ordered"... "no"
checking "whether flock struct is BSD ordered"... "no"
configure: error: Don't know how to define struct flock on this system, set --enable-opcache=no
百度了很多的答案,有/etc/ld.so.conf,有在configure 里面加上 --with-libdir=lib64,etc...
这些答案其实都是因人而异的,别人的东西其实不一定是自己的答案,还是需要自己去找问题的根源。
这个报错其实是在报你我的lib找不到对应的目录,我看了我的libmysqlclient.so.18这个文件其实不在标准usr/lib64,下,而是在/usr/lib64/mysql下,这就尴尬了,看到网上有人也说可以,ln -s so文件到默认lib目录下,于是我就:
ln -s /usr/lib64/mysql/libmysqlclient.so.18.1.0 /usr/lib64/libmysqlclient.so.18,完美解决。
哎,还是需要多学习啊,技术界的知识真是大海之水的.......多+杂。
附上其他技术大拿的文章
https://www.linuxidc.com/Linux/2018-05/152462.htm
http://blog.51cto.com/superpcm/2092800