Changes between Initial Version and Version 1 of FreeBSD Php Compile Issues
- Timestamp:
- 12/17/22 08:34:54 (2 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
FreeBSD Php Compile Issues
v1 v1 1 = FreeBSD Php Compile Issues = 2 3 {{{ 4 FreeBSD includes a modern version of OpenSSL as part of its base system, but doesn't appear to have a pkg-config file, so the PHP configure script can't find the libraries. When compiling PHP on FreeBSD, you should define the OPENSSL_LIBS and OPENSSL_CFLAGS environment variables before running PHP's configure. For FreeBSD 12, the following will work: 5 6 export OPENSSL_LIBS="-L/usr -lssl -lcrypto -lz" && export OPENSSL_CFLAGS="-I/usr/include" && ./configure --with-openssl [...other configure options...] 7 }}}