我想安装php7,
首先,
./configure --prefix=/usr/local/php --with-config-file-path=/etc --enable-fpm --with-fpm-user=nginx --with-fpm-group=nginx --enable-inline-optimization --disable-debug --disable-rpath --enable-shared --enable-soap --with-libxml-dir --with-xmlrpc --with-openssl --with-mcrypt --with-mhash --with-pcre-regex --with-sqlite3 --with-zlib --enable-bcmath --with-iconv --with-bz2 --enable-calendar --with-curl --with-cdb --enable-dom --enable-exif --enable-fileinfo --enable-filter --with-pcre-dir --enable-ftp --with-gd --with-openssl-dir --with-jpeg-dir --with-png-dir --with-zlib-dir --with-freetype-dir --enable-gd-native-ttf --enable-gd-jis-conv --with-gettext --with-gmp --with-mhash --enable-json --enable-mbstring --enable-mbregex --enable-mbregex-backtrack --with-libmbfl --with-onig --enable-pdo --with-mysqli=mysqlnd --with-pdo-mysql=mysqlnd --with-zlib-dir --with-pdo-sqlite --with-readline --enable-session --enable-shmop --enable-simplexml --enable-sockets --enable-sysvmsg --enable-sysvsem --enable-sysvshm --enable-wddx --with-libxml-dir --with-xsl --enable-zip --enable-mysqlnd-compression-support --with-pear --enable-opcache
并且成功了~
然后,输入make
/opt/php7/php-7.1.4/ext/openssl/openssl.c:4103: undefined reference to
DSA_set0_pqg' /opt/php7/php-7.1.4/ext/openssl/openssl.c:4110:未定义对DSA_set0_key' /opt/php7/php-7.1.4/ext/openssl/openssl.c:4122: undefined reference to
DSA_get0_key 的引用' /opt/php7/php-7.1.4/ext/openssl/openssl.c:4123:未定义对BN_is_zero' ext/openssl/.libs/openssl.o: In function
php_openssl_pkey_init_dh' 的引用:/opt/php7/php-7.1.4/ext/openssl/openssl.c:4180:对 php_openssl_dh_pub_from_priv' 的未定义引用DH_set0_pqg' ext/openssl/.libs/openssl.o: In function
:/opt/php7/php-7.1.4/ext/openssl/openssl.c :4157: 未定义对BN_with_flags' ext/openssl/.libs/openssl.o: In function
php_openssl_pkey_init_dh' 的引用:/opt/php7/php-7.1.4/ext/openssl/openssl.c:4194: 未定义对DH_set0_key' /opt/php7/php-7.1.4/ext/openssl/openssl.c:4187: undefined reference to
DH_set0_key' ext/openssl/.libs/xp_ssl.o 的引用:在函数sk_X509_num': /usr/local/include/openssl/x509.h:97: undefined reference to
OPENSSL_sk_num' ext/openssl/.libs/xp_ssl.o: 在函数sk_X509_value': /usr/local/include/openssl/x509.h:97: undefined reference to
OPENSSL_sk_value' ext/openssl/.libs/xp_ssl.o: 在函数sk_X509_num': /usr/local/include/openssl/x509.h:97: undefined reference to
OPENSSL_sk_num' ext/openssl/.libs/xp_ssl.o:在功能enable_server_sni': /opt/php7/php-7.1.4/ext/openssl/xp_ssl.c:1359: undefined reference to
TLS_server_method'ext/openssl/.libs/xp_ssl.o:在函数php_openssl_setup_crypto': /opt/php7/php-7.1.4/ext/openssl/xp_ssl.c:1512: undefined reference to
TLS_client_method'/opt/php7/php-7.1.4/ext/openssl/xp_ssl.c:1579:未定义对 SSL_CTX_set_options'ext /openssl/.libsSSL_CTX_set_alpn_select_cb' /opt/php7/php-7.1.4/ext/openssl/xp_ssl.c:1594: undefined reference to
/的引用xp_ssl.o:在函数SSL_CTX_get_options'/opt/php7/php-7.1.4/ext/opensslset_server_specific_opts': /opt/php7/php-7.1.4/ext/openssl/xp_ssl.c:1241: undefined reference to
/xp_ssl.c:1268:未定义引用SSL_CTX_set_options' ext/openssl/.libs/xp_ssl.o: In function
php_openssl_setup_crypto':/opt/php7/php-7.1.4/ext/openssl/ xp_ssl.c:1512:未定义对SSL_CTX_set_alpn_protos 的 ext/openssl/.libsTLS_server_method' /opt/php7/php-7.1.4/ext/openssl/xp_ssl.c:1574: undefined reference to
/xp_ssl.o 的引用:在函数php_openssl_sockop_set_option': /opt/php7/php-7.1.4/ext/openssl/xp_ssl.c:2296: undefined reference to
SSL_get0_alpn_selected 的 ext/openssl/.libs/xp_ssl.o 中:在函数sk_GENERAL_NAME_num': /usr/local/include/openssl/x509v3.h:165: undefined reference to
OPENSSL_sk_num 的 ext/openssl/.libs/xp_ssl 中。 o:在函数sk_GENERAL_NAME_value': /usr/local/include/openssl/x509v3.h:165: undefined reference to
中 OPENSSL_sk_value' ext/ftp/.libs/php_ftp.o:在函数中zm_startup_ftp': /opt/php7/php-7.1.4/ext/ftp/php_ftp.c:313: undefined reference to
OPENSSL_init_ssl'/opt/php7/php-7.1.4/ext/ftp/php_ftp.c:314:未定义对OPENSSL_init_crypto' /opt/php7/php-7.1.4/ext/ftp/php_ftp.c:315: undefined reference to
OPENSSL_init_crypto'/opt/php7/php-7.1.4/ext/ftp/php_ftp.c:316 的引用:未定义对OPENSSL_init_crypto' /opt/php7/php-7.1.4/ext/ftp/php_ftp.c:318: undefined reference to
OPENSSL_init_ssl' ext/ftp/.libs/ftp.o 的引用:在函数ftp_login': /opt/php7/php-7.1.4/ext/ftp/ftp.c:283: undefined reference to
TLS_client_method'/opt/php7/php-7.1.4/ext/ftp/ftp.c:292:未定义引用SSL_CTX_set_options' ext/phar/.libs/util.o: In function
phar_verify_signature':/opt/php7 /php-7.1.4/ext/phar/util.c:1563:未定义对EVP_MD_CTX_new' /opt/php7/php-7.1.4/ext/phar/util.c:1586: undefined reference to
EVP_MD_CTX_free 的引用' /opt/php7/php-7.1.4/ext/phar/util.c:1595:未定义对EVP_MD_CTX_free' ext/phar/.libs/util.o: In function
phar_create_signature' 的引用:/ opt/php7/php-7.1.4/ext/phar/util.c:1860:未定义对EVP_MD_CTX_new' /opt/php7/php-7.1.4/ext/phar/util.c:1892: undefined reference to
EVP_MD_CTX_free 的引用'collect2:ld 返回 1 退出状态 make:*** [sapi/cli/php] 错误 1 `
所以,我需要你的帮助,谢谢!