Advertisement
Guest User

OSX: Cassandra PHP extension installation

a guest
Jun 27th, 2017
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.69 KB | None | 0 0
  1. brew update
  2.  
  3. brew upgrade
  4.  
  5. brew install libuv cmake gmp git pcre openssl
  6.  
  7. cd ~
  8.  
  9. git clone https://github.com/datastax/php-driver.git
  10.  
  11. cd php-driver
  12.  
  13. git submodule update --init
  14.  
  15. cd ext
  16.  
  17. OBS! Editera install.sh så att den hittar openssl-libraries:
  18.  
  19. Efter ' cmake -DCMAKE_CXX_FLAGS="-fPIC" ' skriv
  20.  
  21. -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
  22.  
  23. sedan kör ni install.sh:
  24.  
  25.  
  26. ./install.sh
  27. 


  28. 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