我编译php7如下
./configure --enable-bcmath --with-bz2 --enable-calendar --enable-exif --enable-dba --enable-ftp --with-gettext --enable-mbstring --with-mcrypt --with-mhash --enable-pcntl --with-pspell --enable-shmop --enable-soap --enable-sockets --enable-sysvmsg --enable-sysvsem --enable-sysvshm --enable-wddx --enable-zip --with-readline --with-curl --enable-debug --enable-maintainer-zts --enable-pthreads --prefix=/usr --with-config-file-path=/etc --prefix=/usr
# sudo make
sudo make throws error error
/ usr / bin / ld:ext / curl / .libs / interface.o:未定义的符号引用' CRYPTO_set_id_callback @@ OPENSSL_1.0.0' //lib/x86_64-linux-gnu/libcrypto.so.1.0.0:添加符号时出错:命令行中缺少DSO collect2:错误:ld返回1退出状态 make:*** [sapi / cli / php]错误1
make:*** [sapi / cli / php]错误1
答案 0 :(得分:3)
您似乎缺少配置标记--with-openssl=/path/to
http://php.net/manual/en/openssl.installation.php
它不需要PHP,但它需要卷曲,我想
<强>校正强>
作者得到了它
./configure --with-readline --with-openssl --with-openssl-dir=/usr/local/bin --with-curl=/usr/local --enable-debug --enable-maintainer-zts --enable-pthreads --prefix=/usr --with-config-file-path=/etc --prefix=/usr