Orange-OpenSource / YACassandraPDO

Cassandra PDO Driver fork
Apache License 2.0
85 stars 32 forks source link

checking thrift installation... configure: error: Unable to find thrift installation #80

Open yuanjiong199 opened 9 years ago

yuanjiong199 commented 9 years ago

OS: CentOS 6.5 64bit Cassandra: 2.1.2 tarball install at /usr/loca/cassandra-2.1.2 Boost:boost-devel-1.41.0-18.el6.x86_64 My install steps:

  1. install thrift tar -zxvf thrift-0.9.2.tar.gz cd thrift-0.9.2 ./configure --prefix=/usr/local/thrift --with-php --with-lua=no --with-java=no make make install ln -s /usr/local/thrift/bin/thrift /usr/bin/thrift 2.install YACassandraPDO tar -zxvf YACassandraPDO-0.6.0.tar.gz cd YACassandraPDO-0.6.0 phpize ./configure ... checking thrift installation... configure: error: Unable to find thrift installation
masterdead commented 9 years ago

Try this, specify path to thrift source cd YACassandraPDO phpize ./configure --with-thrift-dir=/usr/src/thrift-0.9.2

yuanjiong199 commented 9 years ago

Still unsuccessful installation

在 2015年1月21日,下午5:54,masterdead notifications@github.com 写道:

Try this, specify path to thrift source cd YACassandraPDO phpize ./configure --with-thrift-dir=/usr/src/thrift-0.9.2

— Reply to this email directly or view it on GitHub.

samuel4x4 commented 9 years ago

Hi @yuanjiong199,

When you install thrift, you can try disable erlang with "--without-erlang", it worked for me:

./configure --prefix=/usr/local/thrift --with-php --with-lua=no --with-java=no --without-erlang

By the way, I just finished installing it successfully, really great job YACassandraPDO team! I'll keep my eyes on it, I'm working at Orange also ;)

yuanjiong199 commented 9 years ago

still same fail

在 2015年1月22日,下午6:15,Samuel Chiriluta notifications@github.com 写道:

Hi @yuanjiong199,

When you install thrift, you can try disable erlang with "--without-erlang", it worked for me:

./configure --prefix=/usr/local/thrift --with-php --with-lua=no --with-java=no --without-erlang

By the way, I just finished installing it successfully, really great job YACassandraPDO team! I'll keep my eyes on it, I'm working at Orange also ;)

— Reply to this email directly or view it on GitHub.

boussou commented 7 years ago

Hi, old bug, but for the record:

That was because of the command pkg-config thrift --modversion (I debugged the configure script). (I am working on Debian 7.8)

pkg-config looks for a file named thrift.pc but the file now (at least with thift 0.9.3) uses a different name.

I solved it with : ln -s /usr/local/thrift/lib/pkgconfig/thrift_c_glib.pc /usr/local/thrift/lib/pkgconfig/thrift.pc

if you try the above command it shall return a version number.

then configure works without the argument '--with-thrift-dir'

(my command line for thrift was:./configure --prefix=/usr/local/thrift --with-php --with-lua=no --with-java=no)

kais92 commented 6 years ago

Compilation of YACassandraPDO work well until thrift 0.9.1 Compilation of thrift 0.9.1 work well until libssl-dev < 1.1