重新开放
发布

错误信息如下:

......
checking for OpenSSL library... using openssl from /usr/local/openssl/lib and /usr/local/openssl/include
checking OpenSSL library version >= 1.0.2...

Found OPENSSL_VERSION_NUMBER 0x1000105f (OpenSSL 1.0.1e 11 Feb 2013)
Require OPENSSL_VERSION_NUMBER 0x1000200f or greater (1.0.2)

configure: error: Your version of OpenSSL is not compatible with this version of tcnative
make: *** No targets specified and no makefile found. Stop.
/usr/local/tomcat/bin /tmp/oneinstack/src /tmp/oneinstack
/tmp/oneinstack/src /tmp/oneinstack
Tomcat install failed, Please contact the author!
Redirecting to /bin/systemctl start tomcat.service
Failed to start tomcat.service: Unit not found.
/tmp/oneinstack

如果升级OpenSSL为1.0.2就会导致PHP编译错误安装失败!

ext/openssl/.libs/xp_ssl.o: In function `php_openssl_setup_crypto':
/tmp/oneinstack/src/php-7.0.15/ext/openssl/xp_ssl.c:1605: undefined reference to `SSL_CTX_set_alpn_select_cb'
/tmp/oneinstack/src/php-7.0.15/ext/openssl/xp_ssl.c:1600: undefined reference to `SSL_CTX_set_alpn_protos'
ext/openssl/.libs/xp_ssl.o: In function `php_openssl_sockop_set_option':
/tmp/oneinstack/src/php-7.0.15/ext/openssl/xp_ssl.c:2321: undefined reference to `SSL_get0_alpn_selected'
collect2: error: ld returned 1 exit status
make: *** [sapi/cli/php] Error 1
make: *** Waiting for unfinished jobs....
ext/openssl/.libs/xp_ssl.o: In function `php_openssl_setup_crypto':
/tmp/oneinstack/src/php-7.0.15/ext/openssl/xp_ssl.c:1605: undefined reference to `SSL_CTX_set_alpn_select_cb'
/tmp/oneinstack/src/php-7.0.15/ext/openssl/xp_ssl.c:1600: undefined reference to `SSL_CTX_set_alpn_protos'
ext/openssl/.libs/xp_ssl.o: In function `php_openssl_sockop_set_option':
/tmp/oneinstack/src/php-7.0.15/ext/openssl/xp_ssl.c:2321: undefined reference to `SSL_get0_alpn_selected'
collect2: error: ld returned 1 exit status
make: *** [sapi/fpm/php-fpm] Error 1
/bin/sh /tmp/oneinstack/src/php-7.0.15/libtool --silent --preserve-dup-deps --mode=install cp ext/opcache/opcache.la /tmp/oneinstack/src/php-7.0.15/modules

......

ext/openssl/.libs/xp_ssl.o: In function `php_openssl_setup_crypto':
/tmp/oneinstack/src/php-7.0.15/ext/openssl/xp_ssl.c:1605: undefined reference to `SSL_CTX_set_alpn_select_cb'
/tmp/oneinstack/src/php-7.0.15/ext/openssl/xp_ssl.c:1600: undefined reference to `SSL_CTX_set_alpn_protos'
ext/openssl/.libs/xp_ssl.o: In function `php_openssl_sockop_set_option':
/tmp/oneinstack/src/php-7.0.15/ext/openssl/xp_ssl.c:2321: undefined reference to `SSL_get0_alpn_selected'
ext/gd/libgd/.libs/gdkanji.o: In function `do_convert':
/tmp/oneinstack/src/php-7.0.15/ext/gd/libgd/gdkanji.c:349: undefined reference to `libiconv_open'
/tmp/oneinstack/src/php-7.0.15/ext/gd/libgd/gdkanji.c:364: undefined reference to `libiconv'
/tmp/oneinstack/src/php-7.0.15/ext/gd/libgd/gdkanji.c:380: undefined reference to `libiconv_close'
ext/iconv/.libs/iconv.o: In function `php_iconv_stream_filter_dtor':
/tmp/oneinstack/src/php-7.0.15/ext/iconv/iconv.c:2557: undefined reference to `libiconv_close'
ext/iconv/.libs/iconv.o: In function `php_iconv_stream_filter_ctor':
/tmp/oneinstack/src/php-7.0.15/ext/iconv/iconv.c:2583: undefined reference to `libiconv_open'
ext/iconv/.libs/iconv.o: In function `_php_iconv_strlen':
/tmp/oneinstack/src/php-7.0.15/ext/iconv/iconv.c:755: undefined reference to `libiconv_open'
/tmp/oneinstack/src/php-7.0.15/ext/iconv/iconv.c:779: undefined reference to `libiconv'
/tmp/oneinstack/src/php-7.0.15/ext/iconv/iconv.c:813: undefined reference to `libiconv_close'
ext/iconv/.libs/iconv.o: In function `_php_iconv_appendl':
/tmp/oneinstack/src/php-7.0.15/ext/iconv/iconv.c:474: undefined reference to `libiconv'
/tmp/oneinstack/src/php-7.0.15/ext/iconv/iconv.c:508: undefined reference to `libiconv'
ext/iconv/.libs/iconv.o: In function `_php_iconv_mime_decode':
/tmp/oneinstack/src/php-7.0.15/ext/iconv/iconv.c:1505: undefined reference to `libiconv_open'
/tmp/oneinstack/src/php-7.0.15/ext/iconv/iconv.c:1998: undefined reference to `libiconv_close'
/tmp/oneinstack/src/php-7.0.15/ext/iconv/iconv.c:2001: undefined reference to `libiconv_close'
/tmp/oneinstack/src/php-7.0.15/ext/iconv/iconv.c:1616: undefined reference to `libiconv_close'
/tmp/oneinstack/src/php-7.0.15/ext/iconv/iconv.c:1619: undefined reference to `libiconv_open'
ext/iconv/.libs/iconv.o: In function `_php_iconv_substr':
/tmp/oneinstack/src/php-7.0.15/ext/iconv/iconv.c:876: undefined reference to `libiconv_open'
/tmp/oneinstack/src/php-7.0.15/ext/iconv/iconv.c:900: undefined reference to `libiconv'
/tmp/oneinstack/src/php-7.0.15/ext/iconv/iconv.c:955: undefined reference to `libiconv_close'
/tmp/oneinstack/src/php-7.0.15/ext/iconv/iconv.c:959: undefined reference to `libiconv_close'
/tmp/oneinstack/src/php-7.0.15/ext/iconv/iconv.c:908: undefined reference to `libiconv_open'
ext/iconv/.libs/iconv.o: In function `_php_iconv_mime_encode':
/tmp/oneinstack/src/php-7.0.15/ext/iconv/iconv.c:1194: undefined reference to `libiconv_open'
/tmp/oneinstack/src/php-7.0.15/ext/iconv/iconv.c:1208: undefined reference to `libiconv_open'
/tmp/oneinstack/src/php-7.0.15/ext/iconv/iconv.c:1379: undefined reference to `libiconv'
/tmp/oneinstack/src/php-7.0.15/ext/iconv/iconv.c:1411: undefined reference to `libiconv'
/tmp/oneinstack/src/php-7.0.15/ext/iconv/iconv.c:1467: undefined reference to `libiconv_close'
/tmp/oneinstack/src/php-7.0.15/ext/iconv/iconv.c:1470: undefined reference to `libiconv_close'
/tmp/oneinstack/src/php-7.0.15/ext/iconv/iconv.c:1326: undefined reference to `libiconv'
/tmp/oneinstack/src/php-7.0.15/ext/iconv/iconv.c:1278: undefined reference to `libiconv'
/tmp/oneinstack/src/php-7.0.15/ext/iconv/iconv.c:1310: undefined reference to `libiconv'
/tmp/oneinstack/src/php-7.0.15/ext/iconv/iconv.c:1454: undefined reference to `libiconv'
ext/iconv/.libs/iconv.o: In function `php_iconv_stream_filter_append_bucket':
/tmp/oneinstack/src/php-7.0.15/ext/iconv/iconv.c:2708: undefined reference to `libiconv'
ext/iconv/.libs/iconv.o:/tmp/oneinstack/src/php-7.0.15/ext/iconv/iconv.c:2629: more undefined references to `libiconv' f
ollow
ext/iconv/.libs/iconv.o: In function `php_iconv_string':
/tmp/oneinstack/src/php-7.0.15/ext/iconv/iconv.c:578: undefined reference to `libiconv_open'
/tmp/oneinstack/src/php-7.0.15/ext/iconv/iconv.c:590: undefined reference to `libiconv'
/tmp/oneinstack/src/php-7.0.15/ext/iconv/iconv.c:608: undefined reference to `libiconv'
/tmp/oneinstack/src/php-7.0.15/ext/iconv/iconv.c:618: undefined reference to `libiconv_close'
ext/iconv/.libs/iconv.o: In function `_php_iconv_strpos':
/tmp/oneinstack/src/php-7.0.15/ext/iconv/iconv.c:1003: undefined reference to `libiconv_open'
/tmp/oneinstack/src/php-7.0.15/ext/iconv/iconv.c:1031: undefined reference to `libiconv'
/tmp/oneinstack/src/php-7.0.15/ext/iconv/iconv.c:1145: undefined reference to `libiconv_close'
ext/xmlrpc/libxmlrpc/.libs/encodings.o: In function `convert':
/tmp/oneinstack/src/php-7.0.15/ext/xmlrpc/libxmlrpc/encodings.c:74: undefined reference to `libiconv_open'
/tmp/oneinstack/src/php-7.0.15/ext/xmlrpc/libxmlrpc/encodings.c:82: undefined reference to `libiconv'
/tmp/oneinstack/src/php-7.0.15/ext/xmlrpc/libxmlrpc/encodings.c:102: undefined reference to `libiconv_close'
/tmp/oneinstack/src/php-7.0.15/ext/xmlrpc/libxmlrpc/encodings.c:102: undefined reference to `libiconv_close'
collect2: error: ld returned 1 exit status
make: *** [sapi/cli/php] Error 1
PHP install failed, Please Contact the author!
Starting php-fpm /etc/init.d/php-fpm: line 57: /usr/local/php/sbin/php-fpm: No such file or directory
failed
/tmp/oneinstack/src /tmp/oneinstack
/tmp/oneinstack

7 答案

发布
管理员 2017-02-08

重新下载oneinstack 试下,如有问题,如果方便 私信服务器ip,密码。谢谢!

#1
发布

运行环境腾讯云主机CentOS 7.2,两台云主机都这样,可以申请一台15天云主机测试一下。先yum -y update,然后下载安装oneinstack。

#2
发布
管理员 2017-02-09

可否私信 一台测试机?

#3
发布
管理员 2017-02-11

重新再试下

#4
发布

请问是不是先安装了OpenSSL 1.0.2?如果不先安装OpenSSL 1.0.2就会在编译Tomcat APR时中断吧?
请问能否把过程说一下,谢谢!

#5
发布
管理员 2017-02-11

先安装openssl 在安装apr

#6
发布

安装OpenSSL 1.0.2后不用ln到/usr/bin/openssl吧?

#7

请登录或者 注册 来提交答案