我正在尝试使用 Unix 构建一个 C++ 程序。
我得到了错误
Linking CXX executable ../../bin/ME
/usr/bin/ld: cannot find -lboost_regex-mt
Run Code Online (Sandbox Code Playgroud)
我听说我只需要在我的 LD_LIBRARY_PATH 环境变量中设置 libboost* 的位置,然后像我最初那样调用 make,键入
-L /usr/lib64 -l boost_regex-mt
Run Code Online (Sandbox Code Playgroud)
或者
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/lib64
Run Code Online (Sandbox Code Playgroud)
但是 LD_LIBRARY_PATH 在哪里?如何设置 LD_LIBRARY_PATH 环境变量?
我正在尝试安装 nautilus-dropbox-1.6.2.tar.bz2。我跑了./configure
,但得到了错误
configure: error: Package requirements (libnautilus-extension >= 2.16.0) were not met:
No package 'libnautilus-extension' found
Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.
Alternatively, you may set the environment variables NAUTILUS_CFLAGS
and NAUTILUS_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.
Run Code Online (Sandbox Code Playgroud)
我在谷歌上搜索过这个,发现有人建议需要下载nautilus-devel。但是,我不知道那是什么以及如何下载它。我用谷歌搜索它,发现它适用于 Fedora。我不使用 Fedora。
无论如何,这是我需要做的吗?如果没有,那我还能做什么?