在debian上安装出错

问答中心分类: PHP在debian上安装出错
zaka asked 6 年 ago
按照命令:
wget -c http://mirrors.linuxeye.com/oneinstack-full.tar.gz && tar xzf oneinstack-full.tar.gz && ./oneinstack/install.sh --nginx_option 1 --php_option 7 --phpcache_option 1 --php_extensions imagick,gmagick,fileinfo,redis,memcached,memcache,xdebug --phpmyadmin --mphp_ver 54 --db_option 2 --dbinstallmethod 1 --dbrootpwd 1234qwer --pureftpd --redis --memcached --reboot
按照错误日志:
checking for PDO includes... (cached) /var/tool/oneinstack/src/php-7.2.16/ext
checking for usleep... (cached) yes
checking for nanosleep... (cached) yes
checking time.h usability... yes
checking time.h presence... yes
checking for time.h... yes
checking for fdatasync in -lrt... yes
checking for PostgreSQL support... no
checking for phar archive support... yes
checking for phar openssl support... no
checking whether to enable POSIX-like functions... yes
checking sys/mkdev.h usability... no
checking sys/mkdev.h presence... no
checking for sys/mkdev.h... no
checking sys/sysmacros.h usability... yes
checking sys/sysmacros.h presence... yes
checking for sys/sysmacros.h... yes
checking for seteuid... yes
checking for setegid... yes
checking for setsid... yes
checking for getsid... yes
checking for setpgid... (cached) yes
checking for getpgid... yes
checking for ctermid... yes
checking for mkfifo... yes
checking for mknod... yes
checking for setrlimit... yes
checking for getrlimit... yes
checking for getlogin... (cached) yes
checking for getgroups... yes
checking for makedev... no
checking for initgroups... yes
checking for getpwuid_r... (cached) yes
checking for getgrgid_r... yes
checking for working ttyname_r() implementation... yes
checking for utsname.domainname... yes
checking for PSPELL support... no
checking for libedit readline replacement... no
checking for readline support... no
checking for recode support... no
checking whether to enable PHP sessions... yes
checking for mm support... no
checking whether pwrite works... yes
checking whether pread works... yes
checking whether to enable shmop support... yes
checking whether to enable SimpleXML support... yes
checking for xml2-config path... (cached) /usr/bin/xml2-config
checking whether libxml build works... (cached) yes
checking for SNMP support... no
checking OpenSSL dir for SNMP... no
checking whether to enable SOAP support... yes
checking for xml2-config path... (cached) /usr/bin/xml2-config
checking whether libxml build works... (cached) yes
checking whether to enable sockets support... yes
checking for struct cmsghdr... yes
checking for hstrerror... yes
checking for socketpair... (cached) yes
checking for if_nametoindex... yes
checking for if_indextoname... yes
checking for netdb.h... (cached) yes
checking netinet/tcp.h usability... yes
checking netinet/tcp.h presence... yes
checking for netinet/tcp.h... yes
checking sys/un.h usability... yes
checking sys/un.h presence... yes
checking for sys/un.h... yes
checking sys/sockio.h usability... no
checking sys/sockio.h presence... no
checking for sys/sockio.h... no
checking for errno.h... (cached) yes
checking for field ss_family in struct sockaddr_storage... yes
checking if getaddrinfo supports AI_V4MAPPED... yes
checking if getaddrinfo supports AI_ALL... yes
checking if getaddrinfo supports AI_IDN... yes
checking for sodium support... yes
checking for pkg-config... (cached) /usr/bin/pkg-config
checking for libsodium... configure: error: Please install libsodium - See https://github.com/jedisct1/libsodium
make: *** No targets specified and no makefile found. Stop.
make: *** No rule to make target 'install'. Stop.
PHP install failed, Please Contact the author!
Killed
root@DESKTOP-L9MKADP:/var/tool# Created symlink /etc/systemd/system/multi-user.target.wants/php-fpm.service -> /lib/systemd/system/php-fpm.service.
php-fpm: unrecognized service

4 Answers
oneinstack answered 6 年 ago

ls -l /usr/local/lib/libsodium.la 这个文件是否存在?如果不存在,执行下面命令安装,之后再重试!

tar xzf libsodium-1.0.17.tar.gz
cd libsodium-1.0.17 > /dev/null
./configure --disable-dependency-tracking --enable-minimal
make && make install

zaka answered 6 年 ago
再次重装就可以了,发现一个问题 oneinstack 按照在debian9或者ubuntu18里时,服务的启动控制都无效,比如 service nginx restart 不能识别 apache 也不能识别

zaka answered 6 年 ago
不知道怎么重启apache和nginx

oneinstack answered 6 年 ago
systemctl restart nginx 或者 service nginx restart
systemctl restart http 或者 service httpd restart