【发布时间】:2015-07-02 16:08:34
【问题描述】:
在我的 Ubuntu 机器上,安装了 htdig (www.htdig.org)。例如“哪个 htdig”给了我,/usr/bin/htdig
我想在 /var/www/my_web_site 下安装 htdig 即 /var/www/my_web_site/htdig
额外信息:
- gcc 版本 4.9.1 (Ubuntu 4.9.1-16ubuntu6)
- GNU Make 4.0
对于 htdig-3.1.6:
当我运行“./configure”时,我得到了:
配置:错误:要编译 ht://Dig,您需要一个 C++ 库。 尝试安装 libstdc++
"运行 /sbin/ldconfig -p | grep stdc++"
我有:
- libstdc++.so.6 (libc6,x86-64) => /usr/lib/x86_64-linux-gnu/libstdc++.so.6
- libstdc++.so.6 (libc6) => /usr/lib/i386-linux-gnu/libstdc++.so.6
我也试用了htdig-3.2.0b6:
我运行“./configure”,看起来还不错。我得到了类似“现在你必须运行'make',然后运行'make install'”
当我运行“make”时,我遇到了很多错误,例如:
.....
Making all in htsearch
make[1]: Entering directory '/var/www/test/testme/sounddesign/htdig-3.2.0b6/htsearch'
g++ -DHAVE_CONFIG_H -I. -I. -I../include -DDEFAULT_CONFIG_FILE=\"/opt/www/conf/htdig.conf\" -I../include -I../htlib -I../htnet -I../htcommon -I../htword -I../db -I../db -DCONFIG_DIR=\"/opt/www/conf\" -I../htfuzzy -g -O2 -Wall -fno-rtti -fno-exceptions -c -o Display.o `test -f 'Display.cc' || echo './'`Display.cc
In file included from Display.cc:30:0:
Collection.h:39:10: error: extra qualification ‘Collection::’ on member ‘Open’ [-fpermissive]
void Collection::Open();
....
....
....
Display.cc:830:32: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
if (input->exists("endyear"))
^
知道我应该怎么做吗?
【问题讨论】: