Skip to content
This repository has been archived by the owner on Aug 28, 2021. It is now read-only.

Installation Issues #30

Open
knottb opened this issue Nov 9, 2016 · 10 comments
Open

Installation Issues #30

knottb opened this issue Nov 9, 2016 · 10 comments

Comments

@knottb
Copy link

knottb commented Nov 9, 2016

Hi,

I am having trouble installing some of the dependencies for multipathnet. For now, when installing the fbpython package for torch (with luarocks install fbpython), I am getting the following error

CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
THPP_INCLUDE_DIR
   used as include directory in directory /tmp/luarocks_fbpython-0.1-2-9921/fblualib/fblualib/python
THPP_LIBRARY
    linked by target "lua_module" in directory /tmp/luarocks_fbpython-0.1-2-9921/fblualib/fblualib/python

-- Configuring incomplete, errors occurred!
See also "/tmp/luarocks_fbpython-0.1-2-9921/fblualib/fblualib/python/build/CMakeFiles/CMakeOutput.log".

Error: Build error: Failed building.
@BAILOOL
Copy link

BAILOOL commented Nov 16, 2016

Having exactly the same error. Have you figured out how to solve it?

@outgrabe
Copy link

I am currently also having this issue after attempting to switch to torch with Lua 5.1

Testing with 5.2 and switching back to default LuaJIT had identical results.

@knottb
Copy link
Author

knottb commented Nov 16, 2016

It's almost definitely an issue related to failing to install TH++

@desertnaut
Copy link

Suggestion by @outgrabe here resolved the issue for me:

git clone -b v1.0 https://github.com/facebook/thpp
cd thpp
git checkout d358a52  
cd thpp
THPP_NOFB=1 ./build.sh 

@zhangyingxia
Copy link

@desertnaut when i run "THPP_NOFB=1 ./build.sh ", the error happened as follows:
If you don't have folly or thrift installed, try doing
THPP_NOFB=1 ./build.sh
curl: option -JLOk: is unknown
curl: try 'curl --help' or 'curl --manual' for more information

could you help me to fix it~thanks

@mrtortong
Copy link

@zhangyingxia
change CMakeLists.txt
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=gnu++14")

@nico00
Copy link

nico00 commented Mar 18, 2017

@desertnaut
I tried your suggestion and I've installed thpp with success, but which are the following steps to install fbpython ? Launching luarocks install fbpython I get the usual error message because it tries to reinstall thpp.
Thanks for any help.

@Sophia-intel
Copy link

@desertnaut I have installed thpp successed,but when luarocks install fbpython again,i met a new problem,just like this:
-- Build files have been written to: /tmp/luarocks_fbpython-0.1-2-5906/fblualib/fblualib/python/build
Scanning dependencies of target lua_module
[ 12%] Building CXX object CMakeFiles/lua_module.dir/Debug.cpp.o
[ 25%] Building CXX object CMakeFiles/lua_module.dir/Lib.cpp.o
In file included from /tmp/luarocks_fbpython-0.1-2-5906/fblualib/fblualib/python/LuaToPython.h:15:0,
from /tmp/luarocks_fbpython-0.1-2-5906/fblualib/fblualib/python/Lib.cpp:23:
/tmp/luarocks_fbpython-0.1-2-5906/fblualib/fblualib/python/Utils.h:19:19: fatal error: lua.hpp: No such file or directory
#include <lua.hpp>
^
compilation terminated.
make[2]: *** [CMakeFiles/lua_module.dir/Lib.cpp.o] Error 1
make[1]: *** [CMakeFiles/lua_module.dir/all] Error 2
make: *** [all] Error 2

Error: Build error: Failed building.
could you help me to fix it, thanks~~

@outgrabe
Copy link

@nico00 @Sophia-intel
You'll have to install fbpython yourself (not with luarocks). https://github.com/facebook/fblualib/tree/master/fblualib/python

Depending on your lua version, you may have to edit some files (an include and a cmake) to match your version of lua, if you are getting "file not found" errors on your includes.

Please note that I never got training to work successfully. If you just want to run the model, this should work; if you want to train a new model, you may end up having a lot of work to do.

@nico00
Copy link

nico00 commented Mar 29, 2017

Thanks @outgrabe . Finally I installed everything with success, but actually I had to install a huge amount of dependencies, like wangle, mstch, zstd and fbthrift. Now I'm able to run the predefined model but I've not tried to train a new one yet.

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

8 participants