更新时间:2022-05-24 18:24:52
看起来CMake找不到htmlcxx库。
It appears that CMake is unable to find the htmlcxx library.
在 whalebot文档,htmlcxx被列为依赖项。
In the whalebot documentation, htmlcxx is listed as a dependency.
您需要下载htmlcxx ,将其解压缩,然后安装:
You need to download htmlcxx, unzip it, then install it:
cd <path to unzipped htmlcxx>
./configure --enable-static=on --enable-shared=off
make
sudo make install
您可能需要在 html / tree的顶部添加
以使其成功构建。默认情况下会安装到 #include< cstddef>
h usr / local /
。
如果您还没有安装 icu :
sudo apt-get install libicu-dev
最后,您现在可以构建和安装whalebot。
Finally, you can now build and install whalebot. Again, making might fail if you have a reasonably up-to-date boost installation.
在的第57行中,webspider / src / webspider_options.cpp $ c>,你需要用
替换
。那么你应该很好的构建和安装: boost :: filesystem :: initial_path()。native_directory_string()
:initial_path()。string()
In line 57 of webspider/src/webspider_options.cpp
, you need to replace boost::filesystem::initial_path().native_directory_string()
with boost::filesystem::initial_path().string()
. Then you should be good to build and install:
cd <path to unzipped whalebot>
mkdir build
cd build
cmake .. -DCMAKE_BUILD_TYPE=Release
make
sudo make install
默认情况下也会安装到 usr / local /
。
This too will install to usr/local/
by default.