Skip to content
This repository has been archived by the owner on Oct 20, 2022. It is now read-only.

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

Open
yuanjiong199 opened this issue Jan 19, 2015 · 6 comments

Comments

@yuanjiong199
Copy link

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
Copy link

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

@yuanjiong199
Copy link
Author

Still unsuccessful installation

在 2015年1月21日,下午5:54,masterdead [email protected] 写道:

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
Copy link

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
Copy link
Author

still same fail

在 2015年1月22日,下午6:15,Samuel Chiriluta [email protected] 写道:

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
Copy link

boussou commented Nov 19, 2016

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
Copy link

kais92 commented Mar 28, 2018

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants