#Thrift 0.9.3 on ubuntu 14.04
Thrift's official page looks not maitained well. I followed the instruction on the official page but did not work. I hope this page helps a person like me with saving time.
sudo apt-get install libboost-dev libboost-test-dev libboost-program-options-dev libboost-system-dev libboost-filesystem-dev libevent-dev automake libtool flex bison pkg-config g++ libssl-dev ant
Ubuntu 14.04 gets following errors.
E: Unable to locate package libboost-dev
E: Unable to locate package libboost-test-dev
E: Unable to locate package libboost-program-options-dev
E: Unable to locate package libboost-system-dev
E: Unable to locate package libboost-filesystem-dev
E: Unable to locate package libevent-dev
E: Unable to locate package automake
E: Package 'libtool' has no installation candidate
E: Package 'flex' has no installation candidate
E: Package 'bison' has no installation candidate
E: Package 'pkg-config' has no installation candidate
E: Unable to locate package libssl-dev
This is what I did.
sudo apt-get update; sudo apt-get install build-essential
sudo apt-get install libboost-all-dev
Then other error happened when make check
/usr/bin/trial ./test_suite.py
/test_suite
py ... [ERROR]
===============================================================================
[ERROR]
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/twisted/trial/runner.py", line 586, in loadByNames
things.append(self.findByName(name))
File "/usr/lib/python2.7/dist-packages/twisted/trial/runner.py", line 395, in findByName
return filenameToModule(name)
File "/usr/lib/python2.7/dist-packages/twisted/trial/runner.py", line 84, in filenameToModule
ret = reflect.namedAny(reflect.filenameToModuleName(fn))
File "/usr/lib/python2.7/dist-packages/twisted/python/_reflectpy3.py", line 266, in namedAny
topLevelPackage = _importAndCheckStack(trialname)
File "/usr/lib/python2.7/dist-packages/twisted/python/_reflectpy3.py", line 213, in _importAndCheckStack
reraise(excValue, excTraceback)
File "/home/inoue/thrift-0.9.3/test/py.twisted/test_suite.py", line 27, in <module>
from ThriftTest import ThriftTest
File "/home/inoue/thrift-0.9.3/test/py.twisted/gen-py.twisted/ThriftTest/ThriftTest.py", line 22, in <module>
from thrift.transport import TTwisted
File "/home/inoue/thrift-0.9.3/test/py.twisted/../../lib/py/build/lib.linux-x86_64-2.7/thrift/transport/TTwisted.py", line 29, in <module>
from twisted.web import server, resource, http
exceptions.ImportError: No module named web
./test_suite.py
-------------------------------------------------------------------------------
Ran 1 tests in 0.022s
FAILED (errors=1)
make[2]: *** [check] Error 1
make[2]: Leaving directory `/home/inoue/thrift-0.9.3/test/py.twisted'
make[1]: *** [check-recursive] Error 1
make[1]: Leaving directory `/home/inoue/thrift-0.9.3/test'
make: *** [check-recursive] Error 1
This is what I did.
sudo apt-get install python-setuptools
If you use python, run followings as well.
sudo apt-get install python-all python-all-dev python-all-dbg python-pip
sudo pip install pytz logbook thrift
Cheers,