Makefile:172: recipe for target 'libphp7.la' failed

Web、Mail、Ftp、DNS、Proxy、VPN、Samba、LDAP 等基础网络服务
回复
jonnyshao
帖子: 7
注册时间: 2018-01-05 21:50
系统: ubuntu16.04
送出感谢: 0
接收感谢: 0

Makefile:172: recipe for target 'libphp7.la' failed

#1

帖子 jonnyshao » 2018-01-13 1:39

求教各位朋友,这是什么问题,安装php的时候,非常感谢
附件
选区_002.png
头像
九天星
帖子: 1372
注册时间: 2007-07-14 20:45
送出感谢: 67 次
接收感谢: 39 次

Re: Makefile:172: recipe for target 'libphp7.la' failed

#2

帖子 九天星 » 2018-01-13 10:26

希望你将完成的安装记录切图上来,然后再一起分析失败原因。


406941848.jpg
jonnyshao
帖子: 7
注册时间: 2018-01-05 21:50
系统: ubuntu16.04
送出感谢: 0
接收感谢: 0

Re: Makefile:172: recipe for target 'libphp7.la' failed

#3

帖子 jonnyshao » 2018-01-13 12:36

九天星 写了:希望你将完成的安装记录切图上来,然后再一起分析失败原因。


406941848.jpg
Zend/zend_objects_API.lo Zend/zend_default_classes.lo Zend/zend_inheritance.lo Zend/zend_smart_str.lo Zend/zend_execute.lo main/internal_functions_cli.lo main/fastcgi.lo sapi/cgi/cgi_main.lo -lcrypt -lc-client -lz -lexslt -ltidy -lresolv -lcrypt -lreadline -lncurses -laspell -lpspell -lrt -lmcrypt -lltdl -lldap -llber -lstdc++ -lcrypt -lpam -lgmp -lX11 -lXpm -lpng -lz -ljpeg -lwebp -lenchant -lcurl -lbz2 -lz -lrt -lm -ldl -lnsl -lpthread -lxml2 -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err -lssl -lcrypto -lcurl -lxml2 -lssl -lcrypto -lfreetype -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err -lssl -lcrypto -licui18n -licuuc -licudata -licuio -lodbc -lxml2 -lnetsnmp -lcrypto -lm -lxml2 -lcrypt -lxml2 -lxml2 -lxml2 -lxml2 -lxml2 -lxslt -lxml2 -lssl -lcrypto -lcrypt '-liconv' -o sapi/cgi/php-cgi
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/5/../../../../lib/libmcrypt.a(mcrypt_extra.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC
/usr/lib/gcc/x86_64-linux-gnu/5/../../../../lib/libmcrypt.a: error adding symbols: Bad value
collect2: error: ld returned 1 exit status
Makefile:172: recipe for target 'libphp7.la' failed
make: *** [libphp7.la] Error 1
make: *** 正在等待未完成的任务....

+------------------+
| ERROR DETECTED |
+------------------+
Installation php-7.1.13 failed.
The Full Log is available at /home/jonny/lamp/lamp.log
Please visit website: https://lamp.sh/faq.html for help
6ubuntu1~16.04.5)) #29~16.04.2-Ubuntu SMP Tue Jan 9 22:00:44 UTC 2018
Memery:
total used free shared buff/cache available
Mem: 7558 2337 792 401 4428 4464
Swap: 7766 0 7766
Disk:
文件系统 容量 已用 可用 已用% 挂载点
sysfs 0 0 0 - /sys
proc 0 0 0 - /proc
udev 3.7G 0 3.7G 0% /dev
devpts 0 0 0 - /dev/pts
tmpfs 756M 9.5M 747M 2% /run
/dev/sda5 48G 22G 24G 48% /
securityfs 0 0 0 - /sys/kernel/security
tmpfs 3.7G 182M 3.6G 5% /dev/shm
tmpfs 5.0M 4.0K 5.0M 1% /run/lock
tmpfs 3.7G 0 3.7G 0% /sys/fs/cgroup
cgroup 0 0 0 - /sys/fs/cgroup/systemd
pstore 0 0 0 - /sys/fs/pstore
cgroup 0 0 0 - /sys/fs/cgroup/perf_event
cgroup 0 0 0 - /sys/fs/cgroup/hugetlb
cgroup 0 0 0 - /sys/fs/cgroup/rdma
cgroup 0 0 0 - /sys/fs/cgroup/memory
cgroup 0 0 0 - /sys/fs/cgroup/cpu,cpuacct
cgroup 0 0 0 - /sys/fs/cgroup/devices
cgroup 0 0 0 - /sys/fs/cgroup/freezer
cgroup 0 0 0 - /sys/fs/cgroup/blkio
cgroup 0 0 0 - /sys/fs/cgroup/pids
cgroup 0 0 0 - /sys/fs/cgroup/net_cls,net_prio
cgroup 0 0 0 - /sys/fs/cgroup/cpuset
systemd-1 0 0 0 - /proc/sys/fs/binfmt_misc
mqueue 0 0 0 - /dev/mqueue
debugfs 0 0 0 - /sys/kernel/debug
hugetlbfs 0 0 0 - /dev/hugepages
fusectl 0 0 0 - /sys/fs/fuse/connections
configfs 0 0 0 - /sys/kernel/config
tmpfs 756M 104K 756M 1% /run/user/1000
gvfsd-fuse 0.0K 0.0K 0.0K - /run/user/1000/gvfs
jetbrains-toolbox 0.0K 0.0K 0.0K - /tmp/.mount_JlSdCd
/dev/sdb7 1.5T 1.5T 23G 99% /media/jonny/corus
PHP Version: php-7.1.13
PHP compile parameter: --prefix=/usr/local/php --with-apxs2=/usr/local/apache/bin/apxs --with-config-file-path=/usr/local/php/etc --with-config-file-scan-dir=/usr/local/php/php.d --with-pcre-dir=/usr/local/pcre --with-imap --with-kerberos --with-imap-ssl --with-libxml-dir --with-openssl --with-snmp --with-libdir=lib64 --enable-mysqlnd --with-mysqli=mysqlnd --with-mysql-sock=/tmp/mysql.sock --with-pdo-mysql=mysqlnd --with-gd --with-webp-dir --with-jpeg-dir --with-png-dir --with-xpm-dir --with-freetype-dir --with-zlib --with-bz2 --with-curl=/usr --with-gettext --with-gmp --with-mhash --with-icu-dir=/usr --with-ldap --with-ldap-sasl --with-libmbfl --with-onig --with-unixODBC --with-pspell=/usr --with-enchant=/usr --with-readline --with-tidy=/usr --with-xmlrpc --with-xsl --without-pear --with-mcrypt --enable-gd-native-ttf --enable-bcmath --enable-calendar --enable-dba --enable-exif --enable-ftp --enable-gd-jis-conv --enable-intl --enable-mbstring --enable-pcntl --enable-shmop --enable-soap --enable-sockets --enable-wddx --enable-zip
Issue:failed to install php-7.1.13

log很长,是这些吗
回复

回到 “服务器基础应用”