Unabl使用phpize在OS X上安装PHP扩展OpenSSL

时间:2016-11-10 10:18:03

标签: php macos openssl magento2 phpize

我一直在尝试为Magento2安装PHP版本5.5.34扩展OpenSSL,因为如果我没有OpenSSL扩展,它将无法通过Magento进程安装。我没有看到能够使用phpize安装或从源代码编译PHP。

phpize

没关系:

sudo phpize

这失败了:

sudo ./configure` fail with error `configure: error: Cannot find < evp.h >

从来源

进行编译

没关系:

sudo ./configure --prefix=/usr/local --mandir=/usr/share/man --infodir=/usr/shar
e/info --sysconfdir=/private/etc --with-libdir=lib --enable-cli --with-config-fi
le-path=/etc --with-config-file-scan-dir=/Library/Server/Web/Config/php --with-l
ibxml-dir=/usr/local/opt/libxml2 --with-mssql --with-pdo-dblib --with-apxs2 --wi
th-openssl=/usr/local/opt/openssl

这失败了:

sudo make fail with error **Undefined symbols for architecture x86_64:
  "_PKCS5_PBKDF2_HMAC", referenced from:
      _zif_openssl_pbkdf2 in openssl.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [libs/libphp5.bundle] Error 1

有没有人知道发生了什么以及如何解决?

0 个答案:

没有答案