我正在尝试安装 fb-python 库 - Lua 和 Python 之间的桥梁: https ://github.com/facebookarchive/fblualib/tree/master/fblualib/python
在我的 Linux 机器上使用命令
cd fblualib/fblualib/python
luarocks make rockspec/fbpython-0.1-1.rockspec
但是我所有的尝试都遇到了以下错误:
cmake -E make_directory build &&
cd build &&
cmake -DROCKS_PREFIX=/home/current_user/torch/install/lib/luarocks/rocks/fbpython/0.1-1 \
-DROCKS_LUADIR=/home/current_user/torch/install/lib/luarocks/rocks/fbpython/0.1-1/lua \
-DROCKS_LIBDIR=/home/current_user/torch/install/lib/luarocks/rocks/fbpython/0.1-1/lib \
.. &&
make
CMake Error at /usr/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:108 (message):
REQUIRED_ARGS (missing: GLOG_INCLUDE_DIR GLOG_LIBRARY)
Call Stack (most recent call first):
/usr/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:315
(_FPHSA_FAILURE_MESSAGE)
cmake/FindGlog.cmake:21 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
CMakeLists.txt:27 (FIND_PACKAGE)
-- Configuring incomplete, errors occurred!
引发错误的文件是这样的:https ://github.com/facebookarchive/fblualib/blob/master/fblualib/cmake/FindGlog.cmake
但是,我已经安装了 Glog 库https://github.com/google/glog/releases:鉴于我没有对机器的 sudo 访问权限,我将 ./configure 设置为我可能需要指定的自定义位置现在用于 GLOG_INCLUDE_DIR 和 GLOG_LIBRARY 标志。这个怎么做?任何建议表示赞赏。谢谢!