You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@thrift.apache.org by Jean-Nicolas Boulay Desjardins <jn...@gmail.com> on 2011/05/28 08:21:01 UTC

Problem installing Thrift in Ubuntu

I have tried many times over to install Thrift ([
http://thrift.apache.org/][1]) in Ubuntu Server. I tried it on two
machines... And one I had nothing on it before; meaning fresh Ubuntu
installation.

I did: ./configure No problems here.

But then if I do "make", everything stops working:

    creating build/temp.linux-i686-2.6
    creating build/temp.linux-i686-2.6/src
    creating build/temp.linux-i686-2.6/src/protocol
    gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall
-Wstrict-prototypes -fPIC -I/usr/include/python2.6 -c
src/protocol/fastbinary.c -o
build/temp.linux-i686-2.6/src/protocol/fastbinary.o
    src/protocol/fastbinary.c:20: fatal error: Python.h: No such file or
directory
    compilation terminated.
    error: command 'gcc' failed with exit status 1
    make[3]: *** [all-local] Error 1
    make[3]: Leaving directory `/root/thrift-0.6.0/lib/py'
    make[2]: *** [all-recursive] Error 1
    make[2]: Leaving directory `/root/thrift-0.6.0/lib'
    make[1]: *** [all-recursive] Error 1
    make[1]: Leaving directory `/root/thrift-0.6.0'
    make: *** [all] Error 2

If I try to install Python; I get:

    apt-get install python2.6
    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    python2.6 is already the newest version.
    0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

I have been search everywhere for an answer, but nothing. I am I the only
one running into this problem? Is there a solution that exists? I am not
sure I feel my legs anymore :\

Also, I tried to install "php-dev" but I get an error: E: Unable to locate
package php-dev

I was able to install: php5-dev... Is there a difference?

Any help would be great thanks :|

http://askubuntu.com/questions/45609/problem-installing-thrift-apache

Re: Problem installing Thrift in Ubuntu

Posted by Jean-Nicolas Boulay Desjardins <jn...@gmail.com>.
Thanks allot! You cannot imagine how long I have tried to figure this out!
Life saver thanks!

On Sat, May 28, 2011 at 2:50 AM, Matthieu Imbert <
matthieu.imbert@ens-lyon.fr> wrote:

> Hi
> the important line in the error message is:
>
>
>     src/protocol/fastbinary.c:20: fatal error: Python.h: No such file or
>> directory
>>
>
> if you don't have python.h, it means you should probably install package
> python-dev
>
> cheers,
>
> Matthieu
>
>
> On 05/28/2011 08:21 AM, Jean-Nicolas Boulay Desjardins wrote:
>
>> I have tried many times over to install Thrift ([
>> http://thrift.apache.org/][1]) in Ubuntu Server. I tried it on two
>> machines... And one I had nothing on it before; meaning fresh Ubuntu
>> installation.
>>
>> I did: ./configure No problems here.
>>
>> But then if I do "make", everything stops working:
>>
>>     creating build/temp.linux-i686-2.6
>>     creating build/temp.linux-i686-2.6/src
>>     creating build/temp.linux-i686-2.6/src/protocol
>>     gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall
>> -Wstrict-prototypes -fPIC -I/usr/include/python2.6 -c
>> src/protocol/fastbinary.c -o
>> build/temp.linux-i686-2.6/src/protocol/fastbinary.o
>>     src/protocol/fastbinary.c:20: fatal error: Python.h: No such file or
>> directory
>>     compilation terminated.
>>     error: command 'gcc' failed with exit status 1
>>     make[3]: *** [all-local] Error 1
>>     make[3]: Leaving directory `/root/thrift-0.6.0/lib/py'
>>     make[2]: *** [all-recursive] Error 1
>>     make[2]: Leaving directory `/root/thrift-0.6.0/lib'
>>     make[1]: *** [all-recursive] Error 1
>>     make[1]: Leaving directory `/root/thrift-0.6.0'
>>     make: *** [all] Error 2
>>
>> If I try to install Python; I get:
>>
>>     apt-get install python2.6
>>     Reading package lists... Done
>>     Building dependency tree
>>     Reading state information... Done
>>     python2.6 is already the newest version.
>>     0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
>>
>> I have been search everywhere for an answer, but nothing. I am I the only
>> one running into this problem? Is there a solution that exists? I am not
>> sure I feel my legs anymore :\
>>
>> Also, I tried to install "php-dev" but I get an error: E: Unable to locate
>> package php-dev
>>
>> I was able to install: php5-dev... Is there a difference?
>>
>> Any help would be great thanks :|
>>
>> http://askubuntu.com/questions/45609/problem-installing-thrift-apache
>>
>>


-- 
Name / Nom: Boulay Desjardins, Jean-Nicolas
Website / Site Web: www.jeannicolas.com

Re: Problem installing Thrift in Ubuntu

Posted by Matthieu Imbert <ma...@ens-lyon.fr>.
Hi
the important line in the error message is:

>     src/protocol/fastbinary.c:20: fatal error: Python.h: No such file or
> directory

if you don't have python.h, it means you should probably install package 
python-dev

cheers,

Matthieu

On 05/28/2011 08:21 AM, Jean-Nicolas Boulay Desjardins wrote:
> I have tried many times over to install Thrift ([
> http://thrift.apache.org/][1]) in Ubuntu Server. I tried it on two
> machines... And one I had nothing on it before; meaning fresh Ubuntu
> installation.
>
> I did: ./configure No problems here.
>
> But then if I do "make", everything stops working:
>
>      creating build/temp.linux-i686-2.6
>      creating build/temp.linux-i686-2.6/src
>      creating build/temp.linux-i686-2.6/src/protocol
>      gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall
> -Wstrict-prototypes -fPIC -I/usr/include/python2.6 -c
> src/protocol/fastbinary.c -o
> build/temp.linux-i686-2.6/src/protocol/fastbinary.o
>      src/protocol/fastbinary.c:20: fatal error: Python.h: No such file or
> directory
>      compilation terminated.
>      error: command 'gcc' failed with exit status 1
>      make[3]: *** [all-local] Error 1
>      make[3]: Leaving directory `/root/thrift-0.6.0/lib/py'
>      make[2]: *** [all-recursive] Error 1
>      make[2]: Leaving directory `/root/thrift-0.6.0/lib'
>      make[1]: *** [all-recursive] Error 1
>      make[1]: Leaving directory `/root/thrift-0.6.0'
>      make: *** [all] Error 2
>
> If I try to install Python; I get:
>
>      apt-get install python2.6
>      Reading package lists... Done
>      Building dependency tree
>      Reading state information... Done
>      python2.6 is already the newest version.
>      0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
>
> I have been search everywhere for an answer, but nothing. I am I the only
> one running into this problem? Is there a solution that exists? I am not
> sure I feel my legs anymore :\
>
> Also, I tried to install "php-dev" but I get an error: E: Unable to locate
> package php-dev
>
> I was able to install: php5-dev... Is there a difference?
>
> Any help would be great thanks :|
>
> http://askubuntu.com/questions/45609/problem-installing-thrift-apache
>