title: Installing thrift and pdo module for cassandra on Fedora 17
body: <p>I have next problem. I am running Fedora 17 as host machine and CentOS 6.3 as guest. I have successfully installed Cassandra <code>apache-cassandra11-1.1.7-1.noarch</code> on CentOS machine. Now i need to install PDO module with Thrift on Fedora 17, so I can access the Cassandra on CentOS machine via my PHP application. </p>
  
  <p>This is my first time "experimenting" with Cassandra and I have found PDO documentation on Google Code <a href="http://code.google.com/a/apache-extras.org/p/cassandra-pdo/" rel="nofollow" title="here">here</a>. I have already installed all repos like boost-devel, php-devel, pcre-devel. Problem is when I go to DataStax <a href="http://rpm.datastax.com/community/x86_64/" rel="nofollow">here</a>, there is thrift only for Python 2.6 version and i have Python 2.7 installed. I have even put in the yum --skip-broken which was successful and i can see thrift here:</p>
  
  <ul>
  <li>/usr/src/debug/thrift-0.7.0</li>
  <li>/usr/lib/debug/usr/lib64/python2.6/site-packages/thrift</li>
  </ul>
  
  <p>Which is not quite as it writes on PDO documentation site (<code>/usr/bin/*</code>)</p>
  
  <p>Now problem is: does python-2.6 even need to be installed, if that means i have to rebuild thrift on my own and what is then with PDO, do I have to rebuild it as well?</p>
  
  <p>If anyone already did this, please provide some steps how you solved this issues.</p>
  
  <p>Thank you in advance.</p>
  
  <p><strong>EDIT 1:</strong></p>
  
  <p>For installing thrift i used this: </p>
  
  <pre><code>tar -xzvf thrift-0.7.0.tar.gz
  sudo mv thrift-0.7.0 /opt/thrift-0.7.0
  chown brian /opt/thrift-0.7.0
  cd /opt/thrift-0.7.0/
  ./configure
  make
  sudo make install
  </code></pre>
  
  <p>Running thrift command outputs options list, so it means that it was installed successfully.</p>
  
  <p>For installing pdo-cassandra, i used this</p>
  
  <pre><code>cd /opt
  sudo git clone https://code.google.com/a/apache-extras.org/p/cassandra-pdo/
  sudo chown -R brian cassandra-pdo
  cd cassandra-pdo/
  phpize
  ./configure
  make
  make test
  </code></pre>
  
  <p>After running make test i get next error:</p>
  
  <pre><code>PHP Warning:  PHP Startup: Unable to load dynamic library '/opt/cassandra-pdo/modules/pdo_cassandra.so' - /opt/cassandra-pdo/modules/pdo_cassandra.so: undefined symbol: php_pdo_unregister_driver in Unknown on line 0
  PHP Warning:  PHP Startup: Unable to load dynamic library '/opt/cassandra-pdo/modules/pdo_cassandra.so' - /opt/cassandra-pdo/modules/pdo_cassandra.so: undefined symbol: php_pdo_unregister_driver in Unknown on line 0
  
  =====================================================================
  PHP         : /usr/bin/php 
  Warning: PHP Startup: Unable to load dynamic library '/opt/cassandra-pdo/modules/pdo_cassandra.so' - /opt/cassandra-pdo/modules/pdo_cassandra.so: undefined symbol: php_pdo_unregister_driver in Unknown on line 0
  
  PHP_SAPI    : cli
  PHP_VERSION : 5.4.10
  ZEND_VERSION: 2.4.0
  PHP_OS      : Linux - Linux &lt;user_name&gt; 3.6.11-1.fc17.x86_64 #1 SMP Mon Dec 17 22:16:35 UTC 2012 x86_64
  INI actual  : /opt/cassandra-pdo/tmp-php.ini
  More .INIs  :  
  CWD         : /opt/cassandra-pdo
  Extra dirs  : 
  VALGRIND    : Not used
  ....
  </code></pre>
  
  <p>Any ideas what could be wrong with loading the module and yes module is there in that folder (<code>/opt/cassandra-pdo/modules/pdo_cassandra.so</code>).</p>