Chinaunix首页 | 论坛 | 博客
  • 博客访问: 3333909
  • 博文数量: 815
  • 博客积分: 12898
  • 博客等级: 上将
  • 技术积分: 7883
  • 用 户 组: 普通用户
  • 注册时间: 2006-12-25 09:57
文章分类

全部博文(815)

文章存档

2014年(1)

2011年(46)

2010年(192)

2009年(121)

2008年(70)

2007年(385)

分类: BSD

2009-06-06 14:56:03

# cd -
/opt/sphinx-0.9.9-rc2
# ./configure --prefix=/usr/local/sphinx --with-mysql=/usr/local/mysql/

checking build environment
--------------------------

checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... config/install-sh -c -d
checking for gawk... no
checking for mawk... no
checking for nawk... nawk
checking whether make sets $(MAKE)... yes
checking whether to enable maintainer-specific portions of Makefiles... no

checking for compiler programs
------------------------------

checking whether to compile debug version... no
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
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 for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking dependency style of g++... gcc3
checking for ranlib... ranlib

checking for header files
-------------------------

checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for ANSI C header files... yes
checking for sys/wait.h that is POSIX.1 compatible... 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 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 netdb.h usability... yes
checking netdb.h presence... yes
checking for netdb.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 sys/file.h usability... yes
checking sys/file.h presence... yes
checking for sys/file.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 pthread.h usability... yes
checking pthread.h presence... yes
checking for pthread.h... yes
checking expat.h usability... yes
checking expat.h presence... yes
checking for expat.h... yes
checking iconv.h usability... yes
checking iconv.h presence... yes
checking for iconv.h... yes
checking zlib.h usability... yes
checking zlib.h presence... yes
checking for zlib.h... yes
checking sql.h usability... no
checking sql.h presence... no
checking for sql.h... no

checking for types
------------------

checking for stdbool.h that conforms to C99... yes
checking for _Bool... yes
checking for an ANSI C-conforming const... yes
checking for inline... inline
checking for off_t... yes
checking for size_t... yes
checking whether time.h and sys/time.h may both be included... yes

checking for library functions
------------------------------

checking for pid_t... 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 GNU libc compatible realloc... yes
checking sys/select.h usability... yes
checking sys/select.h presence... yes
checking for sys/select.h... yes
checking for sys/socket.h... (cached) yes
checking types of arguments for select... int,fd_set *,struct timeval *
checking return type of signal handlers... void
checking whether lstat dereferences a symlink specified with a trailing slash... yes
checking whether stat accepts an empty string... no
checking for vprintf... yes
checking for _doprnt... no
checking for library containing setsockopt... none required
checking for library containing gethostbyname... none required
checking for library containing XML_Parse... -lexpat
checking for library containing iconv... no
checking for library containing inflate... -lz
checking for library containing logf... -lm
checking for library containing SQLConnect... no
checking for dup2... yes
checking for gethostbyname... yes
checking for gettimeofday... yes
checking for memmove... yes
checking for memset... yes
checking for select... yes
checking for socket... yes
checking for strcasecmp... yes
checking for strchr... yes
checking for strerror... yes
checking for strncasecmp... yes
checking for strstr... yes
checking for strtol... yes
checking for logf... yes
checking for clock_gettime in -lrt... no
checking for clock_gettime... yes
checking for LOCK_EX in sys/file.h... yes
checking for F_SETLKW in fcntl.h... yes

configuring Sphinx
------------------

checking for CFLAGS needed for pthreads... -pthread
checking for LIBS needed for pthreads... -lpthread
checking for pthreads... found
checking whether to compile with MySQL support... yes
checking for mysql_config... /usr/local/mysql/bin/mysql_config
checking for mysql_real_connect... yes
checking MySQL include files... -I/usr/local/mysql/include/mysql
checking MySQL libraries... -L/usr/local/mysql/lib/mysql -lmysqlclient -lz -lm
checking whether to compile with PostgreSQL support... no
checking whether to use 64-bit document/word IDs... no
checking whether to compile with libstemmer support... no
checking for libexpat... found
checking for libiconv... not found
configure: WARNING: xmlpipe2 will only support default encodings (latin-1, utf-8)
checking for UnixODBC... not found
configure: WARNING: ODBC source support will NOT be available
checking for unaligned RAM access... yes

generating configuration files
------------------------------

configure: creating ./config.status
config.status: creating Makefile
config.status: creating src/Makefile
config.status: creating libstemmer_c/Makefile
config.status: creating sphinx.conf.dist
config.status: creating sphinx-min.conf.dist
config.status: creating config/config.h
config.status: executing depfiles commands

configuration done
------------------

You can now run 'make' to build Sphinx binaries,
and then run 'make install' to install them.

# make
Making all in src
if test -d ../.svn; then svn info .. --xml | perl svnxrev.pl; fi;
make  all-am
g++ -DHAVE_CONFIG_H -I. -I../config   -DSYSCONFDIR="\"/usr/local/sphinx/etc\"" -I/usr/local/include -pthread -I/usr/local/mysql/include/mysql  -Wall -g -D_FILE_OFFSET_BITS=64 -O3 -DNDEBUG -MT sphinx.o -MD -MP -MF .deps/sphinx.Tpo -c -o sphinx.o sphinx.cpp
mv -f .deps/sphinx.Tpo .deps/sphinx.Po
g++ -DHAVE_CONFIG_H -I. -I../config   -DSYSCONFDIR="\"/usr/local/sphinx/etc\"" -I/usr/local/include -pthread -I/usr/local/mysql/include/mysql  -Wall -g -D_FILE_OFFSET_BITS=64 -O3 -DNDEBUG -MT sphinxexcerpt.o -MD -MP -MF .deps/sphinxexcerpt.Tpo -c -o sphinxexcerpt.o sphinxexcerpt.cpp
mv -f .deps/sphinxexcerpt.Tpo .deps/sphinxexcerpt.Po
g++ -DHAVE_CONFIG_H -I. -I../config   -DSYSCONFDIR="\"/usr/local/sphinx/etc\"" -I/usr/local/include -pthread -I/usr/local/mysql/include/mysql  -Wall -g -D_FILE_OFFSET_BITS=64 -O3 -DNDEBUG -MT sphinxquery.o -MD -MP -MF .deps/sphinxquery.Tpo -c -o sphinxquery.o sphinxquery.cpp
mv -f .deps/sphinxquery.Tpo .deps/sphinxquery.Po
g++ -DHAVE_CONFIG_H -I. -I../config   -DSYSCONFDIR="\"/usr/local/sphinx/etc\"" -I/usr/local/include -pthread -I/usr/local/mysql/include/mysql  -Wall -g -D_FILE_OFFSET_BITS=64 -O3 -DNDEBUG -MT sphinxsoundex.o -MD -MP -MF .deps/sphinxsoundex.Tpo -c -o sphinxsoundex.o sphinxsoundex.cpp
mv -f .deps/sphinxsoundex.Tpo .deps/sphinxsoundex.Po
g++ -DHAVE_CONFIG_H -I. -I../config   -DSYSCONFDIR="\"/usr/local/sphinx/etc\"" -I/usr/local/include -pthread -I/usr/local/mysql/include/mysql  -Wall -g -D_FILE_OFFSET_BITS=64 -O3 -DNDEBUG -MT sphinxmetaphone.o -MD -MP -MF .deps/sphinxmetaphone.Tpo -c -o sphinxmetaphone.o sphinxmetaphone.cpp
mv -f .deps/sphinxmetaphone.Tpo .deps/sphinxmetaphone.Po
g++ -DHAVE_CONFIG_H -I. -I../config   -DSYSCONFDIR="\"/usr/local/sphinx/etc\"" -I/usr/local/include -pthread -I/usr/local/mysql/include/mysql  -Wall -g -D_FILE_OFFSET_BITS=64 -O3 -DNDEBUG -MT sphinxstemen.o -MD -MP -MF .deps/sphinxstemen.Tpo -c -o sphinxstemen.o sphinxstemen.cpp
mv -f .deps/sphinxstemen.Tpo .deps/sphinxstemen.Po
g++ -DHAVE_CONFIG_H -I. -I../config   -DSYSCONFDIR="\"/usr/local/sphinx/etc\"" -I/usr/local/include -pthread -I/usr/local/mysql/include/mysql  -Wall -g -D_FILE_OFFSET_BITS=64 -O3 -DNDEBUG -MT sphinxstemru.o -MD -MP -MF .deps/sphinxstemru.Tpo -c -o sphinxstemru.o sphinxstemru.cpp
mv -f .deps/sphinxstemru.Tpo .deps/sphinxstemru.Po
g++ -DHAVE_CONFIG_H -I. -I../config   -DSYSCONFDIR="\"/usr/local/sphinx/etc\"" -I/usr/local/include -pthread -I/usr/local/mysql/include/mysql  -Wall -g -D_FILE_OFFSET_BITS=64 -O3 -DNDEBUG -MT sphinxstemcz.o -MD -MP -MF .deps/sphinxstemcz.Tpo -c -o sphinxstemcz.o sphinxstemcz.cpp
mv -f .deps/sphinxstemcz.Tpo .deps/sphinxstemcz.Po
g++ -DHAVE_CONFIG_H -I. -I../config   -DSYSCONFDIR="\"/usr/local/sphinx/etc\"" -I/usr/local/include -pthread -I/usr/local/mysql/include/mysql  -Wall -g -D_FILE_OFFSET_BITS=64 -O3 -DNDEBUG -MT sphinxutils.o -MD -MP -MF .deps/sphinxutils.Tpo -c -o sphinxutils.o sphinxutils.cpp
mv -f .deps/sphinxutils.Tpo .deps/sphinxutils.Po
g++ -DHAVE_CONFIG_H -I. -I../config   -DSYSCONFDIR="\"/usr/local/sphinx/etc\"" -I/usr/local/include -pthread -I/usr/local/mysql/include/mysql  -Wall -g -D_FILE_OFFSET_BITS=64 -O3 -DNDEBUG -MT md5.o -MD -MP -MF .deps/md5.Tpo -c -o md5.o md5.cpp
mv -f .deps/md5.Tpo .deps/md5.Po
g++ -DHAVE_CONFIG_H -I. -I../config   -DSYSCONFDIR="\"/usr/local/sphinx/etc\"" -I/usr/local/include -pthread -I/usr/local/mysql/include/mysql  -Wall -g -D_FILE_OFFSET_BITS=64 -O3 -DNDEBUG -MT sphinxstd.o -MD -MP -MF .deps/sphinxstd.Tpo -c -o sphinxstd.o sphinxstd.cpp
sphinxstd.cpp: In constructor `CSphProcessSharedMutex::CSphProcessSharedMutex()
   ':
sphinxstd.cpp:395: error: `pthread_mutexattr_setpshared' undeclared (first use
   this function)
sphinxstd.cpp:395: error: (Each undeclared identifier is reported only once for
   each function it appears in.)
*** Error code 1

Stop in /opt/sphinx-0.9.9-rc2/src (line 340 of Makefile).
*** Error code 1

Stop in /opt/sphinx-0.9.9-rc2/src (line 227 of Makefile).
*** Error code 1

Stop in /opt/sphinx-0.9.9-rc2 (line 288 of Makefile).

阅读(1666) | 评论(2) | 转发(0) |
给主人留下些什么吧!~~

chinaunix网友2010-05-20 01:51:28

pkg_add sphinx 即可

chinaunix网友2010-05-19 16:15:53

怎么解决?