当前位置:论坛首页 > Linux面板 > 讨论

近期Debian/ubuntu安装问题说明

发表在 Linux面板2018-2-5 15:02 [复制链接] 21 21024

近期因主要精力放在centos上,所以debian/ubuntu系统可能会装不上php/Mysql。
若急需使用请将系统更换成Centos,我们主要生产/开发环境都是在Centos。

现阶段会对Debian/Ubuntu进行一轮兼容性测试,会尽快修复目前已知问题(过年前)。

感谢支持。


如果有人有软件装不上
你可以进入ssh 输入这条命令
  1. cat /tmp/panelExec.log
复制代码
将以下报错信息截图发上来,好分析大部分是基于什么原因装不上的
QQ图片20180205145553.png

使用道具 举报 只看该作者 回复
发表于 2019-3-19 14:56:16 | 显示全部楼层
宝塔用户_mmroru 发表于 2019-3-15 10:42
还是不行,我和这位大哥一样的问题

我也一样  装不上
使用道具 举报 回复 支持 1 反对 0
发表于 2018-2-5 16:20:37 | 显示全部楼层
Ubuntu 16.04 64位 LTS
安装 mysql php7.1 php7.2 报错:
---
make: *** 没有指明目标并且找不到 makefile。 停止。
make: *** No rule to make target 'install'。 停止。
---
通过
cat /tmp/panelExec.log
反馈如下信息:
#####
·········
mariadb-10.1.30/COPYING.thirdparty
mariadb-10.1.30/configure.cmake
mariadb-10.1.30/EXCEPTIONS-CLIENT
mysql.sh: 行 1235: cmake: 未找到命令
make: *** 没有指明目标并且找不到 makefile。 停止。
groupadd:“mysql”组已存在
useradd:用户“mysql”已存在
mysql.sh: 行 1324: /www/server/mysql/scripts/mysql_install_db: 没有那个文件或目录
mysql.sh: 行 1325: /www/server/mysql/scripts/mysql_install_db: 没有那个文件或目录
cp: 无法获取'support-files/mysql.server' 的文件状态(stat): 没有那个文件或目录
chmod: 无法访问'/etc/init.d/mysqld': 没有那个文件或目录
sed: 无法读取 /etc/init.d/mysqld: 没有那个文件或目录
mysql.sh: 行 1344: /etc/init.d/mysqld: 没有那个文件或目录
mysql.sh: 行 1351: /www/server/mysql/bin/mysqladmin: 没有那个文件或目录
update-rc.d: error: initscript does not exist: /etc/init.d/mysqld
Failed to start mysqld.service: Unit mysqld.service not found.
mysql.sh: 行 1578: /etc/init.d/mysqld: 没有那个文件或目录
mysql.sh: 行 1579: /www/server/mysql/bin/mysql: 没有那个文件或目录
mysql.sh: 行 1580: /www/server/mysql/bin/mysql: 没有那个文件或目录
mysql.sh: 行 1581: /www/server/mysql/bin/mysql: 没有那个文件或目录
Failed to stop mysqld.service: Unit mysqld.service not loaded.
正在修改密码...
The set password...
mysql_root.sh: 行 6: mysqld_safe: 未找到命令
mysql_root.sh: 行 10: mysql: 未找到命令
mysql_root.sh: 行 11: mysql: 未找到命令
mysql_root.sh: 行 12: mysql: 未找到命令
mysql_root.sh: 行 13: mysql: 未找到命令
mysql_root.sh: 行 14: mysql: 未找到命令
Failed to start mysqld.service: Unit mysqld.service not found.
===========================================
root密码成功修改为: c14d7d84bd37e2c1
The root password set c14d7d84bd37e2c1  successuful
1
Cannot uninstall requirement mysql-python, not installed
Collecting mysql-python
  Using cached MySQL-python-1.2.5.zip
    Complete output from command python setup.py egg_info:
    sh: mysql_config: 未找到命令
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/tmp/pip-build-bbE_kM/mysql-python/setup.py", line 17, in <module>
        metadata, options = get_config()
      File "/tmp/pip-build-bbE_kM/mysql-python/setup_posix.py", line 43, in get_config
        libs = mysql_config("libs_r")
      File "/tmp/pip-build-bbE_kM/mysql-python/setup_posix.py", line 25, in mysql_config
        raise EnvironmentError("%s not found" % (mysql_config.path,))
    EnvironmentError: mysql_config not found
   
    ----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-bbE_kM/mysql-python/
#####
使用道具 举报 回复 支持 反对
发表于 2018-2-5 16:33:23 | 显示全部楼层
=== configuring in preload (/root/libiconv-1.14/preload)
configure: running /bin/sh ./configure --disable-option-checking '--prefix=/usr/local/libiconv'  '--enable-static' --cache-file=/dev/null --srcdir=.
checking whether make sets $(MAKE)... no
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking how to run the C preprocessor... gcc -E
checking for a BSD-compatible install... /usr/bin/install -c
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking whether to activate relocatable installation... no
checking whether ln -s works... yes
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking minix/config.h usability... no
checking minix/config.h presence... no
checking for minix/config.h... no
checking whether it is safe to define __EXTENSIONS__... yes
checking how to print strings... printf
checking for a sed that does not truncate output... /bin/sed
checking for fgrep... /bin/grep -F
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking the maximum length of command line arguments... 1572864
checking whether the shell understands some XSI constructs... yes
checking whether the shell understands "+="... yes
checking how to convert x86_64-unknown-linux-gnu file names to x86_64-unknown-linux-gnu format... func_convert_file_noop
checking how to convert x86_64-unknown-linux-gnu file names to toolchain format... func_convert_file_noop
checking for /usr/bin/ld option to reload object files... -r
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for dlltool... no
checking how to associate runtime and link libraries... printf %s\n
checking for ar... ar
checking for archiver @FILE support... @
checking for strip... strip
checking for ranlib... ranlib
checking for gawk... gawk
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for sysroot... no
checking for mt... mt
checking if mt is a manifest tool... no
checking for dlfcn.h... yes
checking for objdir... .libs
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC -DPIC
checking if gcc PIC flag -fPIC -DPIC works... yes
checking if gcc static flag -static works... yes
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.o... (cached) yes
checking whether the gcc linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no
checking whether the -Werror option is usable... yes
checking for simple visibility declarations... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: executing libtool commands
lib.sh: line 69: make: command not found
正在选择下载节点...
No Web server installed!
使用道具 举报 回复 支持 反对
发表于 2018-2-5 17:10:48 | 显示全部楼层
Ubuntu 16.04 64位 LTS
PHP7.1:

checking whether to enable bc style precision math functions... yes
checking for BZip2 support... no
checking whether to enable calendar conversion support... no
checking whether to enable ctype functions... yes
checking for cURL support... yes
checking for cURL in default path... not found
checking for cURL in multiarch path... not found
./configure: line 23539: curl-dir: No such file or directory
checking for cURL 7.10.5 or greater... ./configure: line 23554: curl-config: command not found
configure: error: cURL version 7.10.5 or later is required to compile php with cURL support
make: *** 没有指明目标并且找不到 makefile。 停止。
make: *** No rule to make target 'install'。 停止。
========================================================
ERROR: php-7.1 installation failed.
使用道具 举报 回复 支持 反对
发表于 2018-2-5 22:45:19 | 显示全部楼层
Debian8 x64

mysql(5.5) 需先安装cmake和libncurses5-dev才能装上

php(7.1) 需先安装 libicu-dev  (configure: error: Unable to detect ICU prefix)
                         和 libfreetype6-dev  (freetype-config not found)
使用道具 举报 回复 支持 反对
发表于 2018-2-6 09:38:30 | 显示全部楼层
Asuna 发表于 2018-2-5 22:45
Debian8 x64

mysql(5.5) 需先安装cmake和libncurses5-dev才能装上

好的 感谢反馈
使用道具 举报 回复 支持 反对
发表于 2018-2-7 10:43:14 | 显示全部楼层
Debian8 x64


checking for xml2-config path... /usr/bin/xml2-config
checking whether libxml build works... yes
checking for OpenSSL support... yes
checking for Kerberos support... no
checking for DSA_get_default_method in -lssl... no
checking for X509_free in -lcrypto... yes
checking for pkg-config... no
checking for OpenSSL version... >= 0.9.6
checking for CRYPTO_free in -lcrypto... yes
checking for SSL_CTX_set_ssl_version in -lssl... yes
checking for PCRE library to use... bundled
checking whether to enable the SQLite3 extension... yes
checking bundled sqlite3 library... yes
checking for ZLIB support... yes
checking if the location of ZLIB install directory is defined... no
checking for zlib version >= 1.2.0.4... 1.2.8
checking for gzgets in -lz... yes
checking whether to enable bc style precision math functions... yes
checking for BZip2 support... no
checking whether to enable calendar conversion support... no
checking whether to enable ctype functions... yes
checking for cURL support... yes
checking if we should use cURL for url streams... no
checking for cURL in default path... not found
configure: error: Please reinstall the libcurl distribution -
    easy.h should be in <curl-dir>/include/curl/
make: *** No targets specified and no makefile found.  Stop.
make: *** No rule to make target 'install'.  Stop.
========================================================
ERROR: php-5.4 installation failed.
使用道具 举报 回复 支持 反对
发表于 2018-2-7 16:58:29 | 显示全部楼层
Debian 8.10 x64
参考5楼指点,综合Google结果,用如下命令解决了用面板php跟mysql装不上的问题,大致问题就是依赖包安装的不全

apt-get install cmake libncurses5-dev libssl-dev libcurl4-openssl-dev pkg-config libicu-dev libfreetype6-dev
使用道具 举报 回复 支持 反对
发表于 2018-2-7 17:20:38 | 显示全部楼层
valianliu 发表于 2018-2-7 16:58
Debian 8.10 x64
参考5楼指点,综合Google结果,用如下命令解决了用面板php跟mysql装不上的问题,大致问题 ...

之前改了一个地方导致debian/ubuntu的依赖安装脚本是centos的,导致大量依赖没安装,现已修复
使用道具 举报 回复 支持 反对
发表于 2018-2-7 18:00:29 | 显示全部楼层
ubuntu16.0.4 LTS

checking for setlocale... (cached) yes
checking for timegm... yes
checking for tzset... yes
checking for utime... yes
checking for utimes... yes
checking for mknod... yes
checking for mkfifo... yes
checking for random... yes
checking for srandomdev... no
checking for arc4random... no
checking for arc4random_stir... no
checking for arc4random_addrandom... no
checking for closefrom... no
checking for explicit_bzero... no
checking for getpwnam_shadow... no
checking whether statvfs64() is defined... yes
checking whether snprintf is C99 conformant... done
checking whether getgroups 0 is sane... no
checking whether realpath likes unreadable directories... yes
checking whether you already have a standard MD5 implementation... no
checking whether you already have a standard SHA1 implementation... no
checking whether we are inside a Virtuozzo virtual host... no
checking default TCP send buffer size... 16384
checking default TCP receive buffer size... 87380
checking for DH_new in -lcrypto... yes
checking for SSL_accept in -lssl... yes
checking for DH_get_2048_256... yes
checking for iconv_open in -liconv... no
checking for libiconv_open in -liconv... no
configure: You have /dev/urandom - Great
configure: You have /dev/random - Great
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile
config.status: creating src/Makefile
config.status: creating pam/Makefile
config.status: creating man/Makefile
config.status: creating gui/Makefile
config.status: creating m4/Makefile
config.status: creating pure-ftpd.conf
config.status: creating puredb/Makefile
config.status: creating puredb/src/Makefile
config.status: creating man/pure-ftpd.8
config.status: creating man/pure-ftpwho.8
config.status: creating man/pure-mrtginfo.8
config.status: creating man/pure-uploadscript.8
config.status: creating man/pure-statsdecode.8
config.status: creating man/pure-quotacheck.8
config.status: creating man/pure-pw.8
config.status: creating man/pure-pwconvert.8
config.status: creating man/pure-authd.8
config.status: creating config.h
config.status: config.h is unchanged
config.status: executing depfiles commands
configure: +--------------------------------------------------------+
configure: | You can subscribe to the Pure-FTPd users mailing-list  |
configure: | to ask for help and to stay informed of new releases.  |
configure: | Go to http://www.pureftpd.org/ml/ now!                 |
configure: +--------------------------------------------------------+
make  all-recursive
make[1]: Entering directory '/root/pure-ftpd-1.0.47'
Making all in puredb
make[2]: Entering directory '/root/pure-ftpd-1.0.47/puredb'
Making all in src
make[3]: Entering directory '/root/pure-ftpd-1.0.47/puredb/src'
make[3]: Nothing to be done for 'all'.
make[3]: Leaving directory '/root/pure-ftpd-1.0.47/puredb/src'
make[3]: Entering directory '/root/pure-ftpd-1.0.47/puredb'
make[3]: Nothing to be done for 'all-am'.
make[3]: Leaving directory '/root/pure-ftpd-1.0.47/puredb'
make[2]: Leaving directory '/root/pure-ftpd-1.0.47/puredb'
Making all in src
make[2]: Entering directory '/root/pure-ftpd-1.0.47/src'
gcc  -O2 -fPIC -fPIE -fwrapv -fno-strict-aliasing -fno-strict-overflow -fstack-protector-all -Winit-self -Wwrite-strings -Wdiv-by-zero  -pie -Wl,-z,relro -Wl,-z,now -Wl,-z,noexecstack -L/usr/local/lib -o pure-ftpd main.o libpureftpd.a ../puredb/src/libpuredb_read.a  -lssl -lcrypto -lcrypt -lcap
libpureftpd.a(libpureftpd_a-ftpd.o): In function `charset_fs2client':
ftpd.c.text+0x1b93): undefined reference to `libiconv'
ftpd.c.text+0x1bdc): undefined reference to `libiconv'
libpureftpd.a(libpureftpd_a-ftpd.o): In function `pureftpd_start':
ftpd.c.text+0xbdeb): undefined reference to `libiconv_close'
ftpd.c.text+0xbdfd): undefined reference to `libiconv_close'
ftpd.c.text+0xbe0f): undefined reference to `libiconv_close'
ftpd.c.text+0xbe21): undefined reference to `libiconv_close'
ftpd.c.text+0xbfbd): undefined reference to `libiconv_open'
ftpd.c.text+0xbfe1): undefined reference to `libiconv_open'
ftpd.c.text+0xc02a): undefined reference to `libiconv_open'
ftpd.c.text+0xc04e): undefined reference to `libiconv_open'
libpureftpd.a(libpureftpd_a-ftp_parser.o): In function `parser':
ftp_parser.c:(.text+0x67f): undefined reference to `libiconv'
ftp_parser.c:(.text+0x724): undefined reference to `libiconv'
collect2: error: ld returned 1 exit status
Makefile:743: recipe for target 'pure-ftpd' failed
make[2]: *** [pure-ftpd] Error 1
make[2]: Leaving directory '/root/pure-ftpd-1.0.47/src'
Makefile:451: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/root/pure-ftpd-1.0.47'
Makefile:369: recipe for target 'all' failed
make: *** [all] Error 2
========================================================
已经升级到最新版本也已执行apt-get install cmake libncurses5-dev libssl-dev libcurl4-openssl-dev pkg-config libicu-dev libfreetype6-dev
但是安装apache Pure-Ftpd php时报错,但是安装mysql没事...
使用道具 举报 回复 支持 反对
发表于 2018-2-7 19:55:10 | 显示全部楼层
现在Dibian已经可以正常使用了吗?
使用道具 举报 回复 支持 反对
发表于 2018-2-8 09:47:45 | 显示全部楼层
john213 发表于 2018-2-7 18:00
ubuntu16.0.4 LTS

checking for setlocale... (cached) yes

补充截图
QQ截图20180208094446.jpg
使用道具 举报 回复 支持 反对
发表于 2018-2-8 10:38:11 | 显示全部楼层

更新内测版 5.7.3,问题依旧,手动安装libiconv-1.13.1,问题依旧。不要拦着我, 我要下载CentOS
使用道具 举报 回复 支持 反对
发表于 2018-3-15 22:40:08 | 显示全部楼层
Debian 9.0 X64
cc: internal compiler error: Killed (program cc1)
Please submit a full bug report,
with preprocessed source if appropriate.
See <file:///usr/share/doc/gcc-6/README.Bugs> for instructions.
Makefile:2277: recipe for target 'Zend/zend_execute.lo' failed
make: *** [Zend/zend_execute.lo] Error 1
/bin/sh /www/server/php/72/src/libtool --silent --preserve-dup-deps --mode=compile cc -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1 -IZend/ -I/www/server/php/72/src/Zend/ -DPHP_ATOM_INC -I/www/server/php/72/src/include -I/www/server/php/72/src/main -I/www/server/php/72/src -I/www/server/php/72/src/ext/date/lib -I/usr/include/libxml2 -I/usr/local/openssl/include -I/usr/local/curl/include -I/usr/local/freetype/include/freetype2 -I/usr/local/freetype/include -I/www/server/php/72/src/ext/mbstring/oniguruma -I/www/server/php/72/src/ext/mbstring/libmbfl -I/www/server/php/72/src/ext/mbstring/libmbfl/mbfl -I/www/server/php/72/src/ext/sqlite3/libsqlite -I/www/server/php/72/src/ext/zip/lib -I/www/server/php/72/src/TSRM -I/www/server/php/72/src/Zend    -I/usr/include -g -O2 -fvisibility=hidden -DZEND_SIGNALS   -c /www/server/php/72/src/Zend/zend_execute.c -o Zend/zend_execute.lo
cc: internal compiler error: Killed (program cc1)
Please submit a full bug report,
with preprocessed source if appropriate.
See <file:///usr/share/doc/gcc-6/README.Bugs> for instructions.
Makefile:2277: recipe for target 'Zend/zend_execute.lo' failed
make: *** [Zend/zend_execute.lo] Error 1
========================================================
ERROR: php-7.2 installation failed.
TIM截图20180315223156.png
使用道具 举报 回复 支持 反对
发表于 2018-3-16 09:38:13 | 显示全部楼层
ijevin 发表于 2018-3-15 22:40
Debian 9.0 X64
cc: internal compiler error: Killed (program cc1)
Please submit a full bug report,

你内存多大 512MB内存?
看起来是编译的时候内存不足导致被杀掉进程了
使用道具 举报 回复 支持 反对
12下一页
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

普通问题处理

论坛响应时间:72小时

问题处理方式:排队(仅解答)

工作时间:白班:9:00 - 18:00

紧急运维服务

响应时间:3分钟

问题处理方式:宝塔专家1对1服务

工作时间:工作日:9:00 - 18:30

宝塔专业团队为您解决服务器疑难问题

点击联系技术免费分析
快速回复 返回顶部 返回列表