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

install fbpython errror #40

Open
zhangyingxia opened this issue Dec 4, 2016 · 4 comments
Open

install fbpython errror #40

zhangyingxia opened this issue Dec 4, 2016 · 4 comments

Comments

@zhangyingxia
Copy link

zhangyingxia commented Dec 4, 2016

when i run "luarocks install fbpython",the error happened as follows:

Found Boost components:
thread
-- Found PythonInterp: /search/odin/adur/zhangli/usr/local/python27/bin/python2.7 (found suitable version "2.7.12", minimum required is "2.7")
CMake Error at /usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:108 (message):
Could NOT find PythonLibs (missing: PYTHON_LIBRARIES PYTHON_INCLUDE_DIRS)
(Required is at least version "2.7.12")
Call Stack (most recent call first):
/usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:315 (_FPHSA_FAILURE_MESSAGE)
/usr/share/cmake/Modules/FindPythonLibs.cmake:198 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
CMakeLists.txt:47 (FIND_PACKAGE)

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

could anyone help me?~thanks

@szagoruyko
Copy link
Contributor

I don't know why, maybe @ebetica knows better?

@Sorkanius
Copy link

Hi!

Was someone able to solve this problem?

Thank you!

@ebetica
Copy link

ebetica commented Oct 5, 2017

On Ubuntu, make sure the python-dev package is installed https://askubuntu.com/questions/479260/cmake-can-not-find-pythonlibs

If you're sure you have the libraries and headers, then CMAKE might not be locating the right versions of each. Set the paths in https://cmake.org/cmake/help/v3.0/module/FindPythonLibs.html so that the headers and libraries of the right versions are in the right locations.

@Sorkanius
Copy link

Sorkanius commented Oct 5, 2017

Wow!

Thank you for for quick response. It was a problem with the headers.

For anyone having problems with torch, I highly recommend using docker, makes sense when you have to install so many things. This one is pretty good.

Hope it helps!

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

4 participants