2

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

php化

还行吧:

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

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

4

0 回答 0