lnmp1.5安装php失败
2018-12-09 本文已影响0人
theache
今天自己的联想笔记装了ubuntu18.04。安装lnmp的时候发现php安装失败了。查看日志发现下面一段话
checking for ssize_t... yes
checking size of short... (cached) 2
checking size of int... (cached) 4
checking size of long... (cached) 8
checking size of long long... (cached) 8
checking size of off_t... 0
configure: error: off_t undefined; check your library configuration
make: *** No targets specified and no makefile found. Stop.
make: *** No targets specified and no makefile found. Stop.
make: *** No rule to make target `install'. Stop.
Copy new php configure file...
Modify php.ini......
include/php.sh: line 78: pear: command not found
include/php.sh: line 79: pecl: command not found
include/php.sh: line 84: php: command not found
curl: (23) Failed writing body (0 != 16133)
Install ZendGuardLoader for PHP 7.2...
unavailable now.
Creating new php-fpm configure file...
Copy php-fpm init.d file...
cp: cannot stat ‘/home/install/lnmp1.5-full/lnmp1.5-full/src/php-7.2.6/sapi/fpm/init.d.php-fpm’: No such file or directory
chmod: cannot access ‘/etc/init.d/php-fpm’: No such file or directory
查了一下因为是因为在新版的系统中一freetype这个库更新了。修改脚本中对应的版本即可。在lnmp/include/version.sh中
#Freetype_Ver='freetype-2.7' //注释用下面
Freetype_Ver='freetype-2.9'
这样重新安装即可。