我记得以前好像说过这个错误的解决方法,在我博客里面居然没有找到,重新发一次好了。
错误代码:
0 |
configure: error: Don't know how to define struct flock on this system, set --enable-opcache=no |
解决方法(1):
0 1 2 3 4 5 |
echo "/usr/local/lib" >>/etc/ld.so.conf vim /etc/ld.so.conf # 编辑库文件 /usr/local/lib # 添加该行 :wq # 保存退出 ldconfig -v # 使之生效 |
解决方法(2):
0 |
在./configure 增加--with-libdir=lib64 |
解决方法(3):和解决方法一个意思[软件兼容性问题]
0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
ln -s /usr/local/lib/libmcrypt.la /usr/local/lib64/libmcrypt.la ln -s /usr/local/lib/libmcrypt.so /usr/local/lib64/libmcrypt.so ln -s /usr/local/lib/libmcrypt.so.4 /usr/local/lib64/libmcrypt.so.4 ln -s /usr/local/lib/libmcrypt.so.4.4.8 /usr/local/lib64/libmcrypt.so.4.4.8 ln -s /usr/local/lib/libmhash.a /usr/local/lib64/libmhash.a ln -s /usr/local/lib/libmhash.la /usr/local/lib64/libmhash.la ln -s /usr/local/lib/libmhash.so /usr/local/lib64/libmhash.so ln -s /usr/local/lib/libmhash.so.2 /usr/local/lib64/libmhash.so.2 ln -s /usr/local/lib/libmhash.so.2.0.1 /usr/local/lib64/libmhash.so.2.0.1 ln -s /usr/local/bin/libmcrypt-config /usr/local/lib64/libmcrypt-config ln -s /usr/local/lib64/libmcrypt.la /usr/lib64/libmcrypt.la ln -s /usr/local/lib64/libmcrypt.so /usr/lib64/libmcrypt.so ln -s /usr/local/lib64/libmcrypt.so.4 /usr/lib64/libmcrypt.so.4 ln -s /usr/local/lib64/libmcrypt.so.4.4.8 /usr/lib64/libmcrypt.so.4.4.8 ln -s /usr/local/lib64/libmhash.a /usr/lib64/libmhash.a ln -s /usr/local/lib64/libmhash.la /usr/lib64/libmhash.la ln -s /usr/local/lib64/libmhash.so /usr/lib64/libmhash.so ln -s /usr/local/lib64/libmhash.so.2 /usr/lib64/libmhash.so.2 ln -s /usr/local/lib64/libmhash.so.2.0.1 /usr/lib64/libmhash.so.2.0.1 |
转载于网络:http://lovelace.blog.51cto.com/1028430/1314571SourceByrd's Weblog-https://note.t4x.org/error/configure-error-dont-know-how-to-define-struct-flock-on-this-system/ SourceByrd's Weblog-https://note.t4x.org/error/configure-error-dont-know-how-to-define-struct-flock-on-this-system/
申明:除非注明Byrd's Blog内容均为原创,未经许可禁止转载!详情请阅读版权申明!