php7.2运行失败怎么解决

本篇内容主要讲解“php7.2运行失败怎么解决”,感兴趣的朋友不妨来看看。本文介绍的方法操作简单快捷,实用性强。下面就让小编来带大家学习“php7.2运行失败怎么解决”吧!

淮安区网站制作公司哪家好,找创新互联!从网页设计、网站建设、微信开发、APP开发、响应式网站建设等网站项目制作,到程序开发,运营维护。创新互联2013年开创至今到现在10年的时间,我们拥有了丰富的建站经验和运维经验,来保证我们的工作的顺利进行。专注于网站建设就选创新互联

php7.2运行失败的解决办法:1、在PHP源码目录下执行“vi Makefile”;2、找到EXTRA_LIBS行;3、在行末添加“-llber”;4、保存退出并再次make即可。

php7.2运行失败怎么解决

本文操作环境:Windows7系统,PHP7.2版,Dell G3电脑。

php7.2运行失败怎么办?

php7.2 编译遇到的坑

checking size of long int... (cached) 8
configure: error: Cannot find ldap libraries in /usr/lib.

解决:

./configure php的时候出现下面错误而退出

configure: error: Cannot find ldap libraries in /usr/lib

解决办法:

cp -frp /usr/lib64/libldap* /usr/lib/

然后再./configure ...即可

/usr/bin/ld: ext/ldap/.libs/ldap.o: undefined reference to symbol 'ber_strdup' 
//usr/lib64/liblber-2.4.so.2: error adding symbols: DSO missing from command line 
collect2: error: ld returned 1 exit status 
make: *** [sapi/cli/php] Error 1

解决办法:遇到这种类似的情况,说明「./configure 」沒抓好一些环境变数值。

解决方法,来自老外的一篇文章:

在PHP源码目录下 vi Makefile 找到 EXTRA_LIBS 行,在行末添加 ‘ -llber ‘ 保存退出再次make即可

/usr/local/src/php-7.2.7/sapi/cli/php: error while loading shared libraries: libiconv.so.2: cannot open shared object file: No such file or directory
make: *** [ext/phar/phar.php] Error 127

解决:

1.先

#vi /etc/ld.so.conf

在里面加上一行 /usr/local/lib

2.然后运行/sbin/ldconfig

 #/sbin/ldconfig

编译make

Generating phar.phar
 
chmod: cannot access ‘ext/phar/phar.phar’: No such file or directory
make: [ext/phar/phar.phar] Error 1 (ignored)

解决:

cd ext/phar/
cp ./phar.php ./phar.phar

到此,相信大家对“php7.2运行失败怎么解决”有了更深的了解,不妨来实际操作一番吧!这里是创新互联网站,更多相关内容可以进入相关频道进行查询,关注我们,继续学习!

本文题目:php7.2运行失败怎么解决
链接地址:https://www.cdcxhl.com/article40/ijgheo.html

成都网站建设公司_创新互联,为您提供Google网站排名App设计标签优化搜索引擎优化网站设计公司

广告

声明:本网站发布的内容(图片、视频和文字)以用户投稿、用户转载内容为主,如果涉及侵权请尽快告知,我们将会在第一时间删除。文章观点不代表本网站立场,如需处理请联系客服。电话:028-86922220;邮箱:631063699@qq.com。内容未经允许不得转载,或转载时需注明来源: 创新互联

外贸网站建设