hightman / xunsearch

免费开源的中文搜索引擎,采用 C/C++ 编写 (基于 xapian 和 scws),提供 PHP 的开发接口和丰富文档
http://www.xunsearch.com
Other
1.64k stars 391 forks source link

centos 5.8 安装失败 #9

Closed kaizhuQin closed 9 years ago

kaizhuQin commented 10 years ago

直接上安装日志:

mv -f .deps/regress-regress_minheap.Tpo .deps/regress-regress_minheap.Po
gcc -DHAVE_CONFIG_H -I. -I..  -I.. -I../compat -I../include -I../include -DTINYTEST_LOCAL     -O2 -Wall -fno-strict-aliasing  -MT regress-regress_thread.o -MD -MP -MF .deps/regress-regress_thread.Tpo -c -o regress-regress_thread.o `test -f 'regress_thread.c' || echo './'`regress_thread.c
mv -f .deps/regress-regress_thread.Tpo .deps/regress-regress_thread.Po
gcc -DHAVE_CONFIG_H -I. -I..  -I.. -I../compat -I../include -I../include -DTINYTEST_LOCAL     -O2 -Wall -fno-strict-aliasing  -MT regress-regress_zlib.o -MD -MP -MF .deps/regress-regress_zlib.Tpo -c -o regress-regress_zlib.o `test -f 'regress_zlib.c' || echo './'`regress_zlib.c
mv -f .deps/regress-regress_zlib.Tpo .deps/regress-regress_zlib.Po
/bin/sh ../libtool --tag=CC   --mode=link gcc  -O2 -Wall -fno-strict-aliasing    -o regress regress-regress.o regress-regress_buffer.o regress-regress_http.o regress-regress_dns.o regress-regress_testutils.o regress-regress_rpc.o regress-regress.gen.o regress-regress_et.o regress-regress_bufferevent.o regress-regress_listener.o regress-regress_util.o regress-tinytest.o regress-regress_main.o regress-regress_minheap.o regress-regress_thread.o regress-regress_zlib.o    ../libevent.la ../libevent_pthreads.la -lz   -lrt 
libtool: link: gcc -O2 -Wall -fno-strict-aliasing -o .libs/regress regress-regress.o regress-regress_buffer.o regress-regress_http.o regress-regress_dns.o regress-regress_testutils.o regress-regress_rpc.o regress-regress.gen.o regress-regress_et.o regress-regress_bufferevent.o regress-regress_listener.o regress-regress_util.o regress-tinytest.o regress-regress_main.o regress-regress_minheap.o regress-regress_thread.o regress-regress_zlib.o  ../.libs/libevent.so ../.libs/libevent_pthreads.so -lz -lrt -Wl,-rpath -Wl,/var/www/websearch/lib
make[4]: Entering directory `/var/www/xunso/xunsearch-full-1.4.8/libevent-2.0.21-stable/test'
make[4]: Nothing to be done for `install-exec-am'.
make[4]: Nothing to be done for `install-data-am'.
make[4]: Leaving directory `/var/www/xunso/xunsearch-full-1.4.8/libevent-2.0.21-stable/test'
make[3]: Leaving directory `/var/www/xunso/xunsearch-full-1.4.8/libevent-2.0.21-stable/test'
make[2]: Leaving directory `/var/www/xunso/xunsearch-full-1.4.8/libevent-2.0.21-stable/test'
make[1]: Leaving directory `/var/www/xunso/xunsearch-full-1.4.8/libevent-2.0.21-stable'
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for gawk... (cached) gawk
checking for g++... g++
checking whether the C++ compiler works... yes
checking for C++ compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking for style of include used by make... GNU
checking dependency style of g++... gcc3
checking for gcc... gcc
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking dependency style of gcc... gcc3
checking for a sed that does not truncate output... /bin/sed
checking whether ln -s works... yes
checking whether make sets $(MAKE)... (cached) yes
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for special C compiler options needed for large files... no
checking for _FILE_OFFSET_BITS value needed for large files... no
checking union semun for semaphore...... no
checking for sun_len in sys/un.h... no
checking for event2/event.h of libevent... yes: /var/www/websearch/
checking for correct libevent version... ok
checking for event_base_new in -levent_core... yes
checking for scws.h of scws... yes: /var/www/websearch/
checking for scws_new in -lscws... yes
checking for xapian.h of xapian-core... yes: /var/www/websearch/
checking for correct xapian version... ok
checking for library of xapian-core... ok
checking for pthread_mutex_init in -lpthread... yes
checking how to run the C++ preprocessor... g++ -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking arpa/inet.h usability... yes
checking arpa/inet.h presence... yes
checking for arpa/inet.h... yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking limits.h usability... yes
checking limits.h presence... yes
checking for limits.h... yes
checking netinet/in.h usability... yes
checking netinet/in.h presence... yes
checking for netinet/in.h... yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking for strings.h... (cached) yes
checking sys/param.h usability... yes
checking sys/param.h presence... yes
checking for sys/param.h... yes
checking sys/socket.h usability... yes
checking sys/socket.h presence... yes
checking for sys/socket.h... yes
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking for unistd.h... (cached) yes
checking for stdbool.h that conforms to C99... yes
checking for _Bool... no
checking for inline... inline
checking for off_t... yes
checking for pid_t... yes
checking for size_t... yes
checking size of off_t... 8
checking for error_at_line... yes
checking vfork.h usability... no
checking vfork.h presence... no
checking for vfork.h... no
checking for fork... yes
checking for vfork... yes
checking for working fork... yes
checking for working vfork... (cached) yes
checking for stdlib.h... (cached) yes
checking for GNU libc compatible malloc... yes
checking for stdlib.h... (cached) yes
checking for unistd.h... (cached) yes
checking for sys/param.h... (cached) yes
checking for getpagesize... yes
checking for working mmap... yes
checking for working strtod... yes
checking for setproctitle... no
configure: creating ./config.status
config.status: creating Makefile
config.status: creating src/Makefile
config.status: creating sdk/Makefile
config.status: creating src/xs-ctl.sh
config.status: creating src/xs-optimize.sh
config.status: creating config.h
config.status: executing depfiles commands
Making clean in sdk
make[1]: Entering directory `/var/www/xunso/xunsearch-full-1.4.8/xunsearch-1.4.8/sdk'
make[1]: Nothing to be done for `clean'.
make[1]: Leaving directory `/var/www/xunso/xunsearch-full-1.4.8/xunsearch-1.4.8/sdk'
Making clean in src
make[1]: Entering directory `/var/www/xunso/xunsearch-full-1.4.8/xunsearch-1.4.8/src'
test -z "xs-import xs-indexd xs-logging xs-searchd" || rm -f xs-import xs-indexd xs-logging xs-searchd
rm -f user_mm.c
rm -f *.o
make[1]: Leaving directory `/var/www/xunso/xunsearch-full-1.4.8/xunsearch-1.4.8/src'
Making clean in .
make[1]: Entering directory `/var/www/xunso/xunsearch-full-1.4.8/xunsearch-1.4.8'
make[1]: Nothing to be done for `clean-am'.
make[1]: Leaving directory `/var/www/xunso/xunsearch-full-1.4.8/xunsearch-1.4.8'
Making install in .
make[1]: Entering directory `/var/www/xunso/xunsearch-full-1.4.8/xunsearch-1.4.8'
make[2]: Entering directory `/var/www/xunso/xunsearch-full-1.4.8/xunsearch-1.4.8'
test -z "/var/www/websearch/etc" || /bin/mkdir -p "/var/www/websearch/etc"
 /usr/bin/install -c -m 644 'etc/py.xdb' '/var/www/websearch/etc/py.xdb'
test -z "/var/www/websearch/etc" || /bin/mkdir -p "/var/www/websearch/etc"
 /usr/bin/install -c -m 644 'etc/dict_user.txt' '/var/www/websearch/etc/dict_user.txt'
 /usr/bin/install -c -m 644 'etc/stopwords.txt' '/var/www/websearch/etc/stopwords.txt'
make[2]: *** [install-customDATA] 错误 1
make[2]: Leaving directory `/var/www/xunso/xunsearch-full-1.4.8/xunsearch-1.4.8'
make[1]: *** [install-am] 错误 2
make[1]: Leaving directory `/var/www/xunso/xunsearch-full-1.4.8/xunsearch-1.4.8'
make: *** [install-recursive] 错误 1

希望能解决下。

hightman commented 10 years ago

安装 etc 下的文件时发重错误,你检查一下 /var/www/websearch/etc  这个目录是否存在,以及下面有哪些文件。多半是权限问题?

redbearder commented 7 years ago

我也遇到了这个问题,初步判断是server没有联网的关系,但的确不允许联网 我查了代码发现了在xunsearc Makefile查到

install-customDATA:
        @$(NORMAL_INSTALL)
        test -z "$(customdir)" || $(MKDIR_P) "$(DESTDIR)$(customdir)"
        @list='$(custom_DATA)'; for p in $$list; do \
          if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
          $(am__strip_dir) \
          if test -f "$(DESTDIR)$(customdir)/$$f"; then \
            echo " Ignore exists custom data file '$$p'"; else \
            echo " $(sysconfDATA_INSTALL) '$$d$$p' '$(DESTDIR)$(customdir)/$$f'"; \
            $(sysconfDATA_INSTALL) "$$d$$p" "$(DESTDIR)$(customdir)/$$f"; \
          fi; \
        done
        @sh notify-sh $(prefix)

@sh notify-sh $(prefix) 我把这句话注释掉了装上了 虽然我并没有深入读这句话的意思,不过貌似这句话像是想xunsearch发送了什么统计信息?我猜也许没啥用把 O(∩_∩)O哈哈~