You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I need to compile php with mongodb extension and make it statically linked. When I compile on MacOS, if I use Homebrew to install the dynamic link libraries for zstd and Snappy, and my pkg-config does not specify a system directory, it will also check for success during configure. But in the end, when executing the make command, it was prompted that the symbol could not be found.
Is there a way to add a few parameters here, such as --without-mongodb-zstd, --without-mongodb-snappy?
Environment
macOS Ventura, same as GitHub Action macOS Runner, and installed snappy,zstd,zlib.
Test Script
The project static-php-cli can compile a static binary of php, and I just found that mongodb cannot be compiled on macOS. Summary steps below:
extract mongodb source code to php-src/ext/mongodb directory.
@crazywhalecc: #1438 adds configure options for the three compression libraries. If you're able to test that patch out locally and confirm it satisfies your needs that would be much appreciated.
Bug Report
I need to compile php with mongodb extension and make it statically linked. When I compile on MacOS, if I use Homebrew to install the dynamic link libraries for zstd and Snappy, and my pkg-config does not specify a system directory, it will also check for success during configure. But in the end, when executing the make command, it was prompted that the symbol could not be found.
Is there a way to add a few parameters here, such as
--without-mongodb-zstd
,--without-mongodb-snappy
?Environment
macOS Ventura, same as GitHub Action macOS Runner, and installed
snappy,zstd,zlib
.Test Script
The project static-php-cli can compile a static binary of php, and I just found that mongodb cannot be compiled on macOS. Summary steps below:
php-src/ext/mongodb
directory../buildconf --force
./configure --enable-mongodb --with-mongodb-system-libs=no --with-mongodb-sasl=no --with-mongodb-icu=no PKG_CONFIG="/custom/pkg-config" PKG_CONFIG_PATH="/custom/buildroot/lib/pkgconfig/"
make -j8
The text was updated successfully, but these errors were encountered: