Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- brew update
- brew upgrade
- brew install libuv cmake gmp git pcre openssl
- cd ~
- git clone https://github.com/datastax/php-driver.git
- cd php-driver
- git submodule update --init
- cd ext
- OBS! Editera install.sh så att den hittar openssl-libraries:
- Efter ' cmake -DCMAKE_CXX_FLAGS="-fPIC" ' skriv
- -DOPENSSL_INCLUDE_DIR=/usr/local/Cellar/openssl/1.0.2l/include -DOPENSSL_CRYPTO_LIBRARY=/usr/local/Cellar/openssl/1.0.2l/lib/libcrypto.dylib -DOPENSSL_SSL_LIBRARY=/usr/local/Cellar/openssl/1.0.2l/lib/libssl.dylib
- sedan kör ni install.sh:
- ./install.sh
- echo -e "; DataStax PHP Driver\nextension=cassandra.so" >> `php --ini | grep "Loaded Configuration" | sed -e "s|.*:\s*||"`
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement