linux安装php出现的各种错误解决方案
configure: error: Try adding --with-zlib-dir=<DIR>. Please check config.log for more information.
--------------------------------------------------------------
解决方案:下载zlib 安装解压缩zlib 然后在后面的参数加上 --with-zlib
./configure --prefix=/usr/local/php --with-mysql=/var/lib/mysql --with-libxml-dir=/usr/local/libxml2 --with-apxs2=/usr/local/apache2/bin/apxs --with-zlib
configure: error: mysql configure failed. Please check config.log for more information.
----------------------------------------------------------------------
解决方案:--with-mysql-dir 加了一个dir
./configure --prefix=/usr/local/php --with-mysql-dir=/var/lib/mysql --with-libxml-dir=/usr/local/libxml2 --with-apxs2=/usr/local/apache2/bin/apxs --with-zlib
又出现这个错误
Notice: Following unknown configure options were used:
--with-mysql-dir=/var/lib/mysql
出现错误:
Warning! dlname not found in /usr/local/apache2/modules/libphp5.la.
Assuming installing a .so rather than a libtool archive.
chmod 755 /usr/local/apache2/modules/libphp5.so
chmod: cannot access `/usr/local/apache2/modules/libphp5.so': No such file or directory
apxs:Error: Command failed with rc=65536
------------------------
解决方案:
cp /usr/local/apache2/build/libtool /usr/local/php-5.3.28
make install 成功了
最终语句:
./configure --prefix=/usr/local/php --with-mysql-dir=/var/lib/mysql --with-apxs2=/usr/local/apache2/bin/apxs --with-libxml-dir=/usr/local/libxml2 --with-zlib
下载了
出现 thank use php
然后make
make install
出现
Installing helper programs: /usr/local/php/bin/
program: phpize
program: php-config
Installing man pages:
/usr/local/php/man/man1/
page: phpize.1
page: php-config.1
Installing PEAR environment:
/usr/local/php/lib/php/
[PEAR] Archive_Tar - already installed: 1.3.11
[PEAR] Console_Getopt - already installed: 1.3.1
[PEAR] PEAR
- already installed: 1.9.4
Wrote PEAR system config file at: /usr/local/etc/pear.conf
You may want to add: /usr/local/php/lib/php to your php.ini include_path
[PEAR]
Structures_Graph- already installed: 1.0.4
[PEAR] XML_Util
- already installed: 1.2.1
/usr/local/php-5.3.28/build/shtool install -c ext/phar/phar.phar /usr/local/php/bin
ln -s -f /usr/local/php/bin/phar.phar /usr/local/php/bin/phar
Installing
PDO headers: /usr/local/php/include/php/ext/pdo/
是不是代表成功了。
相关文章
- 利用率Linux操作系统下计算CPU利用率的方法(linux计算cpu)
- Linux服务器查看端口:简明指南(linux服务器查看端口)
- Linux无法检测到硬盘(linux找不到硬盘)
- PHP在Linux系统中的安装与下载(php下载linux)
- 安全征途:Linux服务器安全之路(征途linux服务端)
- Linux命令实现文件权限管理(linux命令文件权限)
- 错误解决Linux系统U盘启动错误(linux修复u盘启动)
- 7.4Linux 发布 PHP 7.4 平台更新(linux发布php)
- 据安装安装Linux:正确的内存条数量(linux内存条数)
- 提示符Linux下修改命令提示符的指南(linux中修改命令)
- 用途Linux分支:不同用途、不同体验(linux的分支)
- VNC实现远程控制Linux系统的简便方法(vnc远程控制linux)
- Linux下如何调试PHP程序(linux调试php)
- Linux系统Too many open files错误解决方法(linux打开文件过多)
- Linux糟糕了?!遇到中止错误?25秒快速解决方案!(linux中止)
- PHP实现在Linux系统中进行文件操作(php写linux文件)
- 学习PHP程序员必会的Linux技术(php程序员linux)
- Linux程序设计:实战篇(linux程序设计实践)
- Linux重定向:解决错误的正确方式(linux重定向错误)
- 重启Linux服务器,以使PHP生效(php重启linux)
- Linux操作系统下的PHP编译器使用技巧(linux php编译器)
- Linux下快速查找文件的技巧(linux下文件查找)
- Linux环境下的PHP脚本开发与应用(linux下php脚本)
- Linux下搭建PHP开发环境的一步步操作(linux配置php环境)
- Linux系统设置:让你的系统运行更加流畅(linux 系统设置)