claritylab / lucida

Speech and Vision Based Intelligent Personal Assistant
Other
4.81k stars 881 forks source link

Unable to install fbthrift #147

Open auonhaidar opened 7 years ago

auonhaidar commented 7 years ago

Earlier I was not able to install Apache thrift, then somehow I managed to do that. Now, when I am running ./install_fbthrift.sh (after running: export LD_LIBRARY_PATH=/usr/local/lib/), it stops, saying 'unable to find folly library' although they are present in /usr/local/lib/ . I tried doing that directly from fbthrift repo following their instructions but did not help. Can you guys help?

KienHuynh commented 7 years ago

Same problem, here is the last part of the log:

checking for folly/folly-config.h in /usr/local... no checking whether compiling and linking against folly works... no configure: Unable to find the folly library. configure: error: Please install the folly library make: No targets specified and no makefile found. Stop. make: No rule to make target 'install'. Stop. /usr/bin/python: No module named thrift_compiler Failed to install Facebook Thrift

I can make a symbolic link to fbthrift/folly/folly from /usr/local/include/folly, so it works out like this:

checking for folly/folly-config.h in /usr/local... yes

but the error still persists because compiling and linking against folly still does not work. Please help.

KamalGalrani commented 7 years ago

Try with current master and let me know if it fails

hassanpasha5630 commented 6 years ago

I am having the same issue , did anyone figure it out ?

KamalGalrani commented 6 years ago

It seems like a dependency issue with linux mint. Will have a look in a week's time.

Kamal

hassanpasha5630 commented 6 years ago

I am running it on Ubuntu 14. Also is this project dead ? I am doing research on it and have not been able to successfully run and study this. If this is not an on going project I can switch it in time for my thesis.

KamalGalrani commented 6 years ago

Currently it seems I am the only one interested in maintaining it. I am busy with a lot of stuff though so don't expect prompt resolution. But I am surely willing to help

Regarding the issue. Can you send me your log? The errors in mygearstationcom's logs seem to be folly and linux mint related. The project installs easily on fresh Ubuntu 14.04 and 16.04

Kamal

hassanpasha5630 commented 6 years ago

This is over all a fantastic project its sad if you're the only one maintaining it. I might not be much help but I am willing to help if needed.

Regrading the issues I have both 14.04 and 16.04 and have not been able to successfully do it on both, the issues that I am getting now is shown below.

CMake Error at CMakeLists.txt:1 (cmake_minimum_required): CMake 3.0.2 or higher is required. You are running version 2.8.12.2

-- Configuring incomplete, errors occurred! Failed to install Facebook Thrift

KamalGalrani commented 6 years ago

Due to some reason cmake isn't installing on your system. Type in the following commands and let me know if they succeed

sudo apt-get install -y software-properties-common
sudo add-apt-repository -y ppa:george-edison55/cmake-3.x
sudo apt-get -y update
sudo apt-get install -y cmake
sudo apt-get -y upgrade

If they suceed cmake --version should return a 3.x version number

On Sun, Oct 15, 2017 at 12:47 PM, hassanpasha5630 notifications@github.com wrote:

This is over all a fantastic project its sad if you're the only one maintaining it. I might not be much help but I am willing to help if needed.

Regrading the issues I have both 14.04 and 16.04 and have not been able to successfully do it on both, the issues that I am getting now is shown below.

CMake Error at CMakeLists.txt:1 (cmake_minimum_required): CMake 3.0.2 or higher is required. You are running version 2.8.12.2

-- Configuring incomplete, errors occurred! Failed to install Facebook Thrift

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/claritylab/lucida/issues/147#issuecomment-336691743, or mute the thread https://github.com/notifications/unsubscribe-auth/ACPIebdXc9a99TSbbx0-yvlKxl1F23lNks5ssbGKgaJpZM4LjgF6 .

hassanpasha5630 commented 6 years ago

g++: internal compiler error: Killed (program cc1plus) Please submit a full bug report, with preprocessed source if appropriate. See file:///usr/share/doc/gcc-4.8/README.Bugs for instructions. make[4]: [frontend_la-compiler.lo] Error 1 make[4]: Leaving directory `/home/linux14/Desktop/lucida-master/tools/fbthrift/thrift/compiler/py' make[3]: [all-recursive] Error 1 make[3]: Leaving directory /home/linux14/Desktop/lucida-master/tools/fbthrift/thrift/compiler' make[2]: *** [all] Error 2 make[2]: Leaving directory/home/linux14/Desktop/lucida-master/tools/fbthrift/thrift/compiler' make[1]: [all-recursive] Error 1 make[1]: Leaving directory `/home/linux14/Desktop/lucida-master/tools/fbthrift/thrift' make: [all] Error 2 Failed to install Facebook Thrift

KamalGalrani commented 6 years ago

Can you send me a complete log

On Sun, Oct 15, 2017 at 1:20 PM, hassanpasha5630 notifications@github.com wrote:

g++: internal compiler error: Killed (program cc1plus) Please submit a full bug report, with preprocessed source if appropriate. See file:///usr/share/doc/gcc-4.8/README.Bugs for instructions. make[4]: [frontend_la-compiler.lo] Error 1 make[4]: Leaving directory /home/linux14/Desktop/lucida- master/tools/fbthrift/thrift/compiler/py' make[3]: [all-recursive] Error 1 make[3]: Leaving directory/home/linux14/ Desktop/lucida-master/tools/fbthrift/thrift/compiler' make[2]: [all] Error 2 make[2]: Leaving directory /home/linux14/Desktop/lucida- master/tools/fbthrift/thrift/compiler' make[1]: [all-recursive] Error 1 make[1]: Leaving directory/home/linux14/Desktop/lucida-master/tools/ fbthrift/thrift' make: *** [all] Error 2 Failed to install Facebook Thrift

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/claritylab/lucida/issues/147#issuecomment-336693084, or mute the thread https://github.com/notifications/unsubscribe-auth/ACPIeWXF3M3243FKUBHtTSR3scS6fWiTks5ssblWgaJpZM4LjgF6 .

hassanpasha5630 commented 6 years ago

Where can I find the log you are referring to. I went into cd log/var is that the correct place to find the log that you are requesting ?

KamalGalrani commented 6 years ago

I mean the complete output of the make command. That is the log

On Sun, Oct 15, 2017 at 1:29 PM, hassanpasha5630 notifications@github.com wrote:

Where can I find the log you are referring to. I went into cd log/var is that the correct place to find the log that you are requesting ?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/claritylab/lucida/issues/147#issuecomment-336693470, or mute the thread https://github.com/notifications/unsubscribe-auth/ACPIebdP6ZY_d2IFmWUgVOx354QhdK20ks5ssbtLgaJpZM4LjgF6 .

hassanpasha5630 commented 6 years ago

So you would like to see everything that is outputted after I make the call , "make all" in the tool directory ?

KamalGalrani commented 6 years ago

yep

hassanpasha5630 commented 6 years ago

-- Up-to-date: /usr/local/include/wangle/acceptor/AcceptorHandshakeManager.h -- Up-to-date: /usr/local/include/wangle/acceptor/TransportInfo.h -- Up-to-date: /usr/local/include/wangle/acceptor/ConnectionManager.h -- Up-to-date: /usr/local/include/wangle/acceptor/PeekingAcceptorHandshakeHelper.h -- Up-to-date: /usr/local/include/wangle/acceptor/ServerSocketConfig.h -- Up-to-date: /usr/local/include/wangle/acceptor/SecurityProtocolContextManager.h -- Up-to-date: /usr/local/include/wangle/acceptor/SocketOptions.h -- Up-to-date: /usr/local/include/wangle/acceptor/SecureTransportType.h -- Up-to-date: /usr/local/include/wangle/acceptor/ConnectionCounter.h -- Up-to-date: /usr/local/include/wangle/acceptor/LoadShedConfiguration.h -- Up-to-date: /usr/local/include/wangle/acceptor/SocketPeeker.h -- Up-to-date: /usr/local/include/wangle/acceptor/SSLContextSelectionMisc.h -- Up-to-date: /usr/local/include/wangle/acceptor/NetworkAddress.h -- Up-to-date: /usr/local/include/wangle/acceptor/TLSPlaintextPeekingCallback.h -- Up-to-date: /usr/local/include/wangle/bootstrap -- Up-to-date: /usr/local/include/wangle/bootstrap/RoutingDataHandler-inl.h -- Up-to-date: /usr/local/include/wangle/bootstrap/AcceptRoutingHandler.h -- Up-to-date: /usr/local/include/wangle/bootstrap/ServerBootstrap.h -- Up-to-date: /usr/local/include/wangle/bootstrap/ServerSocketFactory.h -- Up-to-date: /usr/local/include/wangle/bootstrap/AcceptRoutingHandler-inl.h -- Up-to-date: /usr/local/include/wangle/bootstrap/RoutingDataHandler.h -- Up-to-date: /usr/local/include/wangle/bootstrap/ClientBootstrap.h -- Up-to-date: /usr/local/include/wangle/bootstrap/BaseClientBootstrap.h -- Up-to-date: /usr/local/include/wangle/bootstrap/ServerBootstrap-inl.h -- Up-to-date: /usr/local/include/wangle/channel -- Up-to-date: /usr/local/include/wangle/channel/FileRegion.h -- Up-to-date: /usr/local/include/wangle/channel/test -- Up-to-date: /usr/local/include/wangle/channel/test/MockHandler.h -- Up-to-date: /usr/local/include/wangle/channel/test/MockPipeline.h -- Up-to-date: /usr/local/include/wangle/channel/AsyncSocketHandler.h -- Up-to-date: /usr/local/include/wangle/channel/broadcast -- Up-to-date: /usr/local/include/wangle/channel/broadcast/Subscriber.h -- Up-to-date: /usr/local/include/wangle/channel/broadcast/BroadcastHandler.h -- Up-to-date: /usr/local/include/wangle/channel/broadcast/test -- Up-to-date: /usr/local/include/wangle/channel/broadcast/test/Mocks.h -- Up-to-date: /usr/local/include/wangle/channel/broadcast/ObservingHandler-inl.h -- Up-to-date: /usr/local/include/wangle/channel/broadcast/BroadcastHandler-inl.h -- Up-to-date: /usr/local/include/wangle/channel/broadcast/BroadcastPool-inl.h -- Up-to-date: /usr/local/include/wangle/channel/broadcast/BroadcastPool.h -- Up-to-date: /usr/local/include/wangle/channel/broadcast/ObservingHandler.h -- Up-to-date: /usr/local/include/wangle/channel/OutputBufferingHandler.h -- Up-to-date: /usr/local/include/wangle/channel/HandlerContext-inl.h -- Up-to-date: /usr/local/include/wangle/channel/Handler.h -- Up-to-date: /usr/local/include/wangle/channel/Pipeline-inl.h -- Up-to-date: /usr/local/include/wangle/channel/Pipeline.h -- Up-to-date: /usr/local/include/wangle/channel/HandlerContext.h -- Up-to-date: /usr/local/include/wangle/channel/EventBaseHandler.h -- Up-to-date: /usr/local/include/wangle/channel/StaticPipeline.h -- Up-to-date: /usr/local/include/wangle/client -- Up-to-date: /usr/local/include/wangle/client/persistence -- Up-to-date: /usr/local/include/wangle/client/persistence/test -- Up-to-date: /usr/local/include/wangle/client/persistence/test/Mocks.h -- Up-to-date: /usr/local/include/wangle/client/persistence/test/TestUtil.h -- Up-to-date: /usr/local/include/wangle/client/persistence/PersistentCache.h -- Up-to-date: /usr/local/include/wangle/client/persistence/LRUInMemoryCache-inl.h -- Up-to-date: /usr/local/include/wangle/client/persistence/LRUPersistentCache.h -- Up-to-date: /usr/local/include/wangle/client/persistence/FilePersistentCache-inl.h -- Up-to-date: /usr/local/include/wangle/client/persistence/LRUPersistentCache-inl.h -- Up-to-date: /usr/local/include/wangle/client/persistence/FilePersistentCache.h -- Up-to-date: /usr/local/include/wangle/client/persistence/SharedMutexCacheLockGuard.h -- Up-to-date: /usr/local/include/wangle/client/persistence/LRUInMemoryCache.h -- Up-to-date: /usr/local/include/wangle/client/persistence/PersistentCacheCommon.h -- Up-to-date: /usr/local/include/wangle/client/ssl -- Up-to-date: /usr/local/include/wangle/client/ssl/SSLSessionPersistentCache-inl.h -- Up-to-date: /usr/local/include/wangle/client/ssl/test -- Up-to-date: /usr/local/include/wangle/client/ssl/test/Mocks.h -- Up-to-date: /usr/local/include/wangle/client/ssl/test/TestUtil.h -- Up-to-date: /usr/local/include/wangle/client/ssl/SSLSessionCallbacks.h -- Up-to-date: /usr/local/include/wangle/client/ssl/ThreadSafeSSLSessionCache.h -- Up-to-date: /usr/local/include/wangle/client/ssl/SSLSession.h -- Up-to-date: /usr/local/include/wangle/client/ssl/SSLSessionCacheUtils.h -- Up-to-date: /usr/local/include/wangle/client/ssl/SSLSessionPersistentCache.h -- Up-to-date: /usr/local/include/wangle/client/ssl/SSLSessionCacheData.h -- Up-to-date: /usr/local/include/wangle/codec -- Up-to-date: /usr/local/include/wangle/codec/LengthFieldPrepender.h -- Up-to-date: /usr/local/include/wangle/codec/FixedLengthFrameDecoder.h -- Up-to-date: /usr/local/include/wangle/codec/ByteToMessageDecoder.h -- Up-to-date: /usr/local/include/wangle/codec/LineBasedFrameDecoder.h -- Up-to-date: /usr/local/include/wangle/codec/LengthFieldBasedFrameDecoder.h -- Up-to-date: /usr/local/include/wangle/codec/StringCodec.h -- Up-to-date: /usr/local/include/wangle/codec/MessageToByteEncoder.h -- Up-to-date: /usr/local/include/wangle/concurrent -- Up-to-date: /usr/local/include/wangle/concurrent/IOThreadPoolExecutor.h -- Up-to-date: /usr/local/include/wangle/concurrent/FutureExecutor.h -- Up-to-date: /usr/local/include/wangle/concurrent/IOExecutor.h -- Up-to-date: /usr/local/include/wangle/concurrent/PriorityThreadFactory.h -- Up-to-date: /usr/local/include/wangle/concurrent/IOObjectCache.h -- Up-to-date: /usr/local/include/wangle/concurrent/test -- Up-to-date: /usr/local/include/wangle/concurrent/ThreadFactory.h -- Up-to-date: /usr/local/include/wangle/concurrent/BlockingQueue.h -- Up-to-date: /usr/local/include/wangle/concurrent/Codel.h -- Up-to-date: /usr/local/include/wangle/concurrent/Async.h -- Up-to-date: /usr/local/include/wangle/concurrent/ThreadPoolExecutor.h -- Up-to-date: /usr/local/include/wangle/concurrent/FiberIOExecutor.h -- Up-to-date: /usr/local/include/wangle/concurrent/PriorityLifoSemMPMCQueue.h -- Up-to-date: /usr/local/include/wangle/concurrent/CPUThreadPoolExecutor.h -- Up-to-date: /usr/local/include/wangle/concurrent/NamedThreadFactory.h -- Up-to-date: /usr/local/include/wangle/concurrent/SerialExecutor.h -- Up-to-date: /usr/local/include/wangle/concurrent/GlobalExecutor.h -- Up-to-date: /usr/local/include/wangle/concurrent/ThreadedExecutor.h -- Up-to-date: /usr/local/include/wangle/concurrent/LifoSemMPMCQueue.h -- Up-to-date: /usr/local/include/wangle/deprecated -- Up-to-date: /usr/local/include/wangle/deprecated/rx -- Up-to-date: /usr/local/include/wangle/deprecated/rx/test -- Up-to-date: /usr/local/include/wangle/deprecated/rx/Subscription.h -- Up-to-date: /usr/local/include/wangle/deprecated/rx/types.h -- Up-to-date: /usr/local/include/wangle/deprecated/rx/Observable.h -- Up-to-date: /usr/local/include/wangle/deprecated/rx/Observer.h -- Up-to-date: /usr/local/include/wangle/deprecated/rx/Subject.h -- Up-to-date: /usr/local/include/wangle/service -- Up-to-date: /usr/local/include/wangle/service/CloseOnReleaseFilter.h -- Up-to-date: /usr/local/include/wangle/service/Service.h -- Up-to-date: /usr/local/include/wangle/service/ExpiringFilter.h -- Up-to-date: /usr/local/include/wangle/service/ClientDispatcher.h -- Up-to-date: /usr/local/include/wangle/service/ServerDispatcher.h -- Up-to-date: /usr/local/include/wangle/service/ExecutorFilter.h -- Up-to-date: /usr/local/include/wangle/ssl -- Up-to-date: /usr/local/include/wangle/ssl/SSLContextManager.h -- Up-to-date: /usr/local/include/wangle/ssl/TLSTicketKeyManager.h -- Up-to-date: /usr/local/include/wangle/ssl/ClientHelloExtStats.h -- Up-to-date: /usr/local/include/wangle/ssl/SSLContextConfig.h -- Up-to-date: /usr/local/include/wangle/ssl/ServerSSLContext.h -- Up-to-date: /usr/local/include/wangle/ssl/test -- Up-to-date: /usr/local/include/wangle/ssl/test/certs -- Up-to-date: /usr/local/include/wangle/ssl/test/TicketUtil.h -- Up-to-date: /usr/local/include/wangle/ssl/SSLCacheOptions.h -- Up-to-date: /usr/local/include/wangle/ssl/SSLCacheProvider.h -- Up-to-date: /usr/local/include/wangle/ssl/SSLUtil.h -- Up-to-date: /usr/local/include/wangle/ssl/SSLStats.h -- Up-to-date: /usr/local/include/wangle/ssl/TLSCredProcessor.h -- Up-to-date: /usr/local/include/wangle/ssl/SSLSessionCacheManager.h -- Up-to-date: /usr/local/include/wangle/ssl/TLSTicketKeySeeds.h -- Up-to-date: /usr/local/include/wangle/ssl/DHParam.h -- Up-to-date: /usr/local/include/wangle/ssl/PasswordInFile.h -- Up-to-date: /usr/local/include/wangle/util -- Up-to-date: /usr/local/include/wangle/util/test -- Up-to-date: /usr/local/include/wangle/util/FilePoller.h

thrift 32.0

Building C++ Library ......... : yes

If something is missing that you think should be present, please skim the output of configure to find the missing component. Details are present in config.log. make all-recursive make[1]: Entering directory /home/linux14/Desktop/lucida-master/tools/fbthrift/thrift' Making all in compiler make[2]: Entering directory/home/linux14/Desktop/lucida-master/tools/fbthrift/thrift/compiler' make all-recursive make[3]: Entering directory /home/linux14/Desktop/lucida-master/tools/fbthrift/thrift/compiler' Making all in . make[4]: Entering directory/home/linux14/Desktop/lucida-master/tools/fbthrift/thrift/compiler' make[4]: Nothing to be done for all-am'. make[4]: Leaving directory/home/linux14/Desktop/lucida-master/tools/fbthrift/thrift/compiler' Making all in py make[4]: Entering directory /home/linux14/Desktop/lucida-master/tools/fbthrift/thrift/compiler/py' /bin/sh ../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I../../.. -pthread -I/usr/include -I/usr/include/python2.7 -I/usr/local/include -std=gnu++1y -MT frontend_la-compiler.lo -MD -MP -MF .deps/frontend_la-compiler.Tpo -c -o frontend_la-compiler.lotest -f 'compiler.cc' || echo './'compiler.cc libtool: compile: g++ -DHAVE_CONFIG_H -I../../.. -pthread -I/usr/include -I/usr/include/python2.7 -I/usr/local/include -std=gnu++1y -MT frontend_la-compiler.lo -MD -MP -MF .deps/frontend_la-compiler.Tpo -c compiler.cc -fPIC -DPIC -o .libs/frontend_la-compiler.o g++: internal compiler error: Killed (program cc1plus) Please submit a full bug report, with preprocessed source if appropriate. See <file:///usr/share/doc/gcc-4.8/README.Bugs> for instructions. make[4]: *** [frontend_la-compiler.lo] Error 1 make[4]: Leaving directory/home/linux14/Desktop/lucida-master/tools/fbthrift/thrift/compiler/py' make[3]: [all-recursive] Error 1 make[3]: Leaving directory `/home/linux14/Desktop/lucida-master/tools/fbthrift/thrift/compiler' make[2]: [all] Error 2 make[2]: Leaving directory /home/linux14/Desktop/lucida-master/tools/fbthrift/thrift/compiler' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory/home/linux14/Desktop/lucida-master/tools/fbthrift/thrift' make: [all] Error 2 Failed to install Facebook Thrift make: [all] Error 1

KamalGalrani commented 6 years ago

Weird. I tried to install it on a fresh Ubuntu 14.04 and it worked. Anyway try the following and let me know.

Option 1: Install it on a fresh installation of Ubuntu (preferably 14.04 or 16.04)

Option 2:

  sudo apt-get purge thrift-compiler*
  sudo apt-get autoremove*
  sudo rm -rf /usr/include/thrift*
  sudo rm -rf /usr/local/include/thrift*
  sudo rm -rf /usr/lib/python2.7/site-packages/thrift*
  sudo rm -rf /usr/lib/python2.7/dist-packages/thrift*
  sudo rm -rf /usr/lib/python/site-packages/thrift*
  sudo rm -rf /usr/lib/python/dist-packages/thrift*
  sudo rm -rf /usr/local/lib/python2.7/site-packages/thrift*
  sudo rm -rf /usr/local/lib/python2.7/dist-packages/thrift*
  sudo rm -rf /usr/local/lib/python/site-packages/thrift*
  sudo rm -rf /usr/local/lib/python/dist-packages/thrift*
  sudo rm -rf /usr/lib/libthrift*
  sudo rm -rf /usr/local/lib/libthrift*
  sudo rm -rf /usr/local/bin/thrift*
  sudo rm -rf /usr/bin/thrift*
  sudo rm -rf /usr/share/thrift*
  sudo rm -rf /usr/local/share/thrift*

Delete the lucida repository

  sudo rm -rf /home/linux14/Desktop/lucida-master

The following command will locate traces of fbthrift if present. Remvoe those files/folders using sudo rm -rf

  sudo updatedb
  sudo updatedb.mlocate
  locate fbthrift

Clone the repository and run make all again

Kamal

hassanpasha5630 commented 6 years ago

tried both ways, not successful at all

KamalGalrani commented 6 years ago

I’ll try it on a fresh 14.04 to check if something is broken. Give me some time for that. If it installs fine I can’t be of any further help as this seems to be a system specific issue -- Kamal Galrani IIT Bombay