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

ubuntu面板5.6.0安装大部分软件报编译错误

发表在 Linux面板2018-2-8 10:09 [复制链接] 2 1696

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没事...




QQ截图20180208094446.jpg
使用道具 举报 只看该作者 回复
发表于 2018-2-8 11:48:58 | 显示全部楼层
  1. rm -f /www/server/panel/data/bt_lib.lock
  2. rm -rf /usr/local/libiconv
  3. rm -f /www/server/panel/install/lib.sh
  4. wget -O /www/server/panel/install/lib.sh http://download.bt.cn/install/3/lib.sh
  5. sh /www/server/panel/install/lib.sh
复制代码


进ssh 执行以上五条命令
注意用root权限执行
使用道具 举报 回复 支持 反对
发表于 2018-2-9 17:12:13 | 显示全部楼层
河妖 发表于 2018-2-8 11:48
进ssh 执行以上五条命令
注意用root权限执行


之前换centos没问题了,看大神给我回复,我特意又用虚拟机装了一个ubuntu,测试结果Pure-Ftpd还是不行其他可以了,

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... yes
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
========================================================
使用道具 举报 回复 支持 反对
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

普通问题处理

论坛响应时间:72小时

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

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

紧急运维服务

响应时间:3分钟

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

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

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

点击联系技术免费分析

工作时间:09:00至18:30

快速回复 返回顶部 返回列表