free open-source SQL full-text search engine

Need a hand?
+1-888-333-1345


Sphinx

Community

Services

Misc

 Subscribe in a reader

Tracked by ClickAider

Forums :: Register :: Login :: Forgot your password? :: Search

anonymous user


Installation on Ubuntu 7.10

Common forum | 1 | 2 | 3 | 4 | 5 | ... | 263 | 264 | 265 | 266 | next »» | Create new thread

bluesaga

Name: William Vicary
Posts: 40

2007-11-18 23:08:44 | reply!


Got the following problem while trying to install on my home server:

root@semto-test:/home/william/sphinx-0.9.7# make
Making all in src
make[1]: Entering directory `/home/william/sphinx-0.9.7/src'
g++ -DHAVE_CONFIG_H -I. -I. -I../config -Wall -g -D_FILE_OFFSET_BITS=64 -O3 -DNDEBUG -c
-o sphinx.o sphinx.cpp
/bin/bash: g++: command not found
make[1]: *** [sphinx.o] Error 127
make[1]: Leaving directory `/home/william/sphinx-0.9.7/src'
make: *** [all-recursive] Error 1

Nordic

Posts: 299

to: bluesaga, 2007-11-19 11:55:33 | reply!


Try:

sudo apt-get libc6-dev libc6 gcc g++

bluesaga

Name: William Vicary
Posts: 40

to: Nordic, 2007-11-19 19:17:43 | reply!


> Try:
>
> sudo apt-get libc6-dev libc6 gcc g++

Done the above, and yet more errors:

Note: I used ./configure --prefix="/home/william/sphinx/" --without-mysql

william@semto-test:~/sphinx-install-files/sphinx-0.9.7$ make
Making all in src
make[1]: Entering directory `/home/william/sphinx-install-files/sphinx-0.9.7/src'
g++ -DHAVE_CONFIG_H -I. -I. -I../config -Wall -g -D_FILE_OFFSET_BITS=64 -O3 -DNDEBUG -c
-o sphinx.o sphinx.cpp
sphinx.cpp: In member function ‘virtual const CSphSchema* CSphIndex_VLN::Preload()’:
sphinx.cpp:7901: warning: comparison between signed and unsigned integer expressions
g++ -DHAVE_CONFIG_H -I. -I. -I../config -Wall -g -D_FILE_OFFSET_BITS=64 -O3 -DNDEBUG -c
-o sphinxexcerpt.o sphinxexcerpt.cpp
g++ -DHAVE_CONFIG_H -I. -I. -I../config -Wall -g -D_FILE_OFFSET_BITS=64 -O3 -DNDEBUG -c
-o sphinxquery.o sphinxquery.cpp
g++ -DHAVE_CONFIG_H -I. -I. -I../config -Wall -g -D_FILE_OFFSET_BITS=64 -O3 -DNDEBUG -c
-o sphinxsoundex.o sphinxsoundex.cpp
g++ -DHAVE_CONFIG_H -I. -I. -I../config -Wall -g -D_FILE_OFFSET_BITS=64 -O3 -DNDEBUG -c
-o sphinxstemen.o sphinxstemen.cpp
g++ -DHAVE_CONFIG_H -I. -I. -I../config -Wall -g -D_FILE_OFFSET_BITS=64 -O3 -DNDEBUG -c
-o sphinxstemru.o sphinxstemru.cpp
g++ -DHAVE_CONFIG_H -I. -I. -I../config -Wall -g -D_FILE_OFFSET_BITS=64 -O3 -DNDEBUG -c
-o sphinxutils.o sphinxutils.cpp
g++ -DHAVE_CONFIG_H -I. -I. -I../config -Wall -g -D_FILE_OFFSET_BITS=64 -O3 -DNDEBUG -c
-o md5.o md5.cpp
g++ -DHAVE_CONFIG_H -I. -I. -I../config -Wall -g -D_FILE_OFFSET_BITS=64 -O3 -DNDEBUG -c
-o sphinxstd.o sphinxstd.cpp
rm -f libsphinx.a
ar cru libsphinx.a sphinx.o sphinxexcerpt.o sphinxquery.o sphinxsoundex.o sphinxstemen.o
sphinxstemru.o sphinxutils.o md5.o sphinxstd.o
ranlib libsphinx.a
g++ -DHAVE_CONFIG_H -I. -I. -I../config -Wall -g -D_FILE_OFFSET_BITS=64 -O3 -DNDEBUG -c
-o indexer.o indexer.cpp
g++ -o indexer indexer.o libsphinx.a
g++ -DHAVE_CONFIG_H -I. -I. -I../config -Wall -g -D_FILE_OFFSET_BITS=64 -O3 -DNDEBUG -c
-o searchd.o searchd.cpp
searchd.cpp:51:19: error: zlib.h: No such file or directory
searchd.cpp: In member function ‘bool CSphCache::ReadFromFile(const CSphQuery&, const
char*, const char*, CSphQueryResult*)’:
searchd.cpp:986: error: ‘gzFile’ was not declared in this scope
searchd.cpp:986: error: expected `;' before ‘fgzCache’
searchd.cpp:987: error: ‘fgzCache’ was not declared in this scope
searchd.cpp:987: error: ‘Z_NULL’ was not declared in this scope
searchd.cpp:1003: error: ‘fgzCache’ was not declared in this scope
searchd.cpp:1003: error: ‘gzread’ was not declared in this scope
searchd.cpp:1006: error: ‘gzeof’ was not declared in this scope
searchd.cpp:1014: error: ‘gzclose’ was not declared in this scope
searchd.cpp:1032: error: ‘gzclose’ was not declared in this scope
searchd.cpp:1046: error: ‘fgzCache’ was not declared in this scope
searchd.cpp:1046: error: ‘gzclose’ was not declared in this scope
searchd.cpp: In member function ‘bool CSphCache::StoreResult(const CSphQuery&, const
char*, const CSphQueryResult*)’:
searchd.cpp:1176: error: ‘gzFile’ was not declared in this scope
searchd.cpp:1176: error: expected `;' before ‘fgzCache’
searchd.cpp:1178: error: ‘fgzCache’ was not declared in this scope
searchd.cpp:1178: error: ‘gzdopen’ was not declared in this scope
searchd.cpp:1219: error: ‘fgzCache’ was not declared in this scope
searchd.cpp:1219: error: ‘gzwrite’ was not declared in this scope
searchd.cpp:1224: error: ‘fgzCache’ was not declared in this scope
searchd.cpp:1224: error: ‘gzclose’ was not declared in this scope
searchd.cpp: In function ‘void HandleCommandSearch(int, int, InputBuffer_c&)’:
searchd.cpp:2220: warning: dereferencing type-punned pointer will break strict-aliasing
rules
make[1]: *** [searchd.o] Error 1
make[1]: Leaving directory `/home/william/sphinx-install-files/sphinx-0.9.7/src'
make: *** [all-recursive] Error 1

mArt

Name: Chris Hemmings
Posts: 32

to: bluesaga, 2007-11-19 23:24:54 | reply!


> searchd.cpp:51:19: error: zlib.h: No such file or directory

It can't find zlib... try:

sudo apt-get install zlib1g-dev

Common forum | 1 | 2 | 3 | 4 | 5 | ... | 263 | 264 | 265 | 266 | next »» | Create new thread


Copyright © Sphinx Technologies Inc, 2009