make: *** [ext/mysqli/mysqli.lo] Error 1

本文涉及的产品
云数据库 RDS MySQL Serverless,0.5-2RCU 50GB
简介: <p style="margin-top:0px; margin-bottom:5px; padding-top:0px; padding-bottom:0px; border:0px; list-style:none; word-wrap:normal; word-break:normal; line-height:21px; font-family:simsun; font-size:

编译安装php 的时候, 执行make报错误

错误:make: *** [ext/mysqli/mysqli.lo] Error 1

[root@localhost php-5.4.9]# mkdir /usr/local/webserver/mysql/include/mysql

 [root@localhost php-5.4.9]# ln -s /usr/local/webserver/mysql/include/* /usr/local/webserver/mysql/include/mysql
 [root@localhost php-5.4.9]# make ZEND_EXTRA_LIBS='-liconv'

抛错:

Generating phar.phar
/usr/local/src/php-5.4.9/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

解决的方法如下:

#vi /etc/ld.so.conf

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

2.然后运行/sbin/ldconfig

#/sbin/ldconfig

编译make

#make ZEND_EXTRA_LIBS='-liconv'

抛错:

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

Build complete.
Don't forget to run 'make test'.
此处可以忽略 不过解决办法如下

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

然后到php5.4文件夹

#make ZEND_EXTRA_LIBS='-liconv'

#make test

#make install


相关实践学习
基于CentOS快速搭建LAMP环境
本教程介绍如何搭建LAMP环境,其中LAMP分别代表Linux、Apache、MySQL和PHP。
全面了解阿里云能为你做什么
阿里云在全球各地部署高效节能的绿色数据中心,利用清洁计算为万物互联的新世界提供源源不断的能源动力,目前开服的区域包括中国(华北、华东、华南、香港)、新加坡、美国(美东、美西)、欧洲、中东、澳大利亚、日本。目前阿里云的产品涵盖弹性计算、数据库、存储与CDN、分析与搜索、云通信、网络、管理与监控、应用服务、互联网中间件、移动服务、视频服务等。通过本课程,来了解阿里云能够为你的业务带来哪些帮助 &nbsp; &nbsp; 相关的阿里云产品:云服务器ECS 云服务器 ECS(Elastic Compute Service)是一种弹性可伸缩的计算服务,助您降低 IT 成本,提升运维效率,使您更专注于核心业务创新。产品详情: https://www.aliyun.com/product/ecs
目录
相关文章
configure: error: Could not find cups!
configure: error: Could not find cups!
383 0
|
4月前
|
关系型数据库 MySQL 数据库
Mysql-错误处理: Found option without preceding group in config file
Mysql-错误处理: Found option without preceding group in config file
149 0
configure: error: Can‘t find ext2fs library
configure: error: Can‘t find ext2fs library
178 0
|
关系型数据库 MySQL 应用服务中间件
linux篇-Parse error: syntax error, unexpected ‘new’ (T_NEW) in /usr/local/nginx/html/cacti/lib/adodb
linux篇-Parse error: syntax error, unexpected ‘new’ (T_NEW) in /usr/local/nginx/html/cacti/lib/adodb
134 0
linux篇-Parse error: syntax error, unexpected ‘new’ (T_NEW) in /usr/local/nginx/html/cacti/lib/adodb
|
关系型数据库 MySQL PHP
configure: error: Cannot find libmysqlclient under /usr/local/mysql.
<p><br></p> <p><span style="color:#3333ff">执行下面语句:</span></p> <p>./configure --prefix=/usr/local/php --with-config-file-path=/usr/local/php/etc --with-mysql=/usr/local/mysql  --with-mysqli=/usr/
3347 0
|
关系型数据库 MySQL Linux
Error message file '/usr/share/mysql/english/errmsg.sys'
之前无意间遇到了一个数据库启动问题,说一下自己的解决办法
Error message file '/usr/share/mysql/english/errmsg.sys'
|
关系型数据库 MySQL
MySQL 启动错误: [ERROR] Can't find messagefile '/usr/share/errmsg.sys'(转载)
110623 21:49:41 mysqld_safe Starting mysqld daemon with databases from /var/lib/mysql 110623 21:49:41 [ERROR] Can't find messagefile '/usr/share/errmsg.
4823 0
|
PHP 数据库 关系型数据库