0
如何在Apache PHP的CentOS 6.5中安裝擴展pdo_cassandra。我需要這個PHP可以與Cassandra DB一起工作。如何在Apache PHP的CentsOS 6.5中安裝擴展pdo_cassandra?
如何在Apache PHP的CentOS 6.5中安裝擴展pdo_cassandra。我需要這個PHP可以與Cassandra DB一起工作。如何在Apache PHP的CentsOS 6.5中安裝擴展pdo_cassandra?
即時猜測這9個月後,你要麼找到一個解決方案或者對這個放棄,但我只是得到了一個PHP驅動程序卡桑德拉工作在CentOS 7
代替pdo_cassandra擴展我使用的datastax卡桑德拉延伸,這裏是我做過什麼來得到它的工作:
安裝Apache節儉
> git clone https://github.com/apache/thrift.git
> cd thrift
> ./bootstrap.sh
> ./configure --with-lua=no
> make
> make install
安裝C++驅動程序(卡桑德拉)
> rpm --import http://apt.sw.be/RPM-GPG-KEY.dag.txt
> sudo yum install automake cmake gcc-c++ git libtool openssl-devel wget
> wget http://dist.libuv.org/dist/v1.4.2/libuv-v1.4.2.tar.gz
> tar xzf libuv-v1.4.2.tar.gz
> cd libuv-v1.4.2.tar.gz
> sh autogen.sh
> ./configure
> make install
> wget https://github.com/datastax/cpp-driver/archive/2.0.zip
> unzip 2.0.zip
> cd cpp-driver-2.0
> mkdir build
> cd build
> cmake ..
> make
> make install
> ln -s /usr/local/lib64/libcassandra.so.2 /usr/lib64/libcassandra.so.2
安裝PHP驅動程序(卡桑德拉)
> yum -y install gmp-devel
> git clone https://github.com/datastax/php-driver.git
> cd php-driver/ext
> pecl install package.xml
> echo extension=cassandra.so > /etc/php.d/cassandra.ini
> systemctl restart httpd