Прочитал кучу документации, и взялся за установку SAMS на SUSE 11, но не пошло.
Делал как тут описано http://sams.perm.ru/sams2/doc/RU/install.html#download
aclocal
echo "" >> aclocal.m4
echo "m4_include([m4/acinclude.m4])" >> aclocal.m4
autoheader
libtoolize --copy --force
libtoolize: putting auxiliary files in `.'.
libtoolize: copying file `./ltmain.sh'
libtoolize: Consider adding `AC_CONFIG_MACRO_DIR([m4])' to configure.in and
libtoolize: rerunning libtoolize, to keep the correct libtool macros in-tree.
libtoolize: Consider adding `-I m4' to ACLOCAL_AMFLAGS in Makefile.am.
automake -a -c --foreign
autoconf
sh ./configure закончилась так:
config.status: creating src/config.h
config.status: executing depfiles commands
config.status: executing libtool commands
Use MySQL API: no
Use PostgreSQL API: no
Use unixODBC API: no
Use LDAP API: yes
Using pcre: none
Use dynamic plugin: yes
Locations:
config file: /usr/local/etc/sams2.conf
daemons: /usr/local/bin
web interface: /usr/local/share/sams2
documentation: /usr/local/share/doc/sams2-2.0.0
httpd server: /usr/sbin/httpd2
Note: If later on, you will use
make install exec_prefix=/foo
or make install DESTDIR=/tmp/package
the locations above would be incorrect
WARNING: Regular expressions won't work without pcre or pcrecpp
Neither MySQL nor PostgreSQL nor unixODBC API detected.
Install at least one of them and run configure again.
Aborted.
как я понимаю, проблема в этой строчке
PCRE или pcrecpp это какие-то библиотеки? Как их до установить?
ну и наконец make выдала:
touch config.h.in
cd .. && /bin/sh ./config.status src/config.h
config.status: creating src/config.h
config.status: src/config.h is unchanged
make all-am
make[2]: Entering directory `/home/TULA/sams-2.0.0-rc1/src'
g++ -DHAVE_CONFIG_H -I. -Wall -g -O2 -MT samsparser.o -MD -MP -MF .deps/samsparser.Tpo -c -o samsparser.o samsparser.cpp
mv -f .deps/samsparser.Tpo .deps/samsparser.Po
g++ -DHAVE_CONFIG_H -I. -Wall -g -O2 -MT samsconfig.o -MD -MP -MF .deps/samsconfig.Tpo -c -o samsconfig.o samsconfig.cpp
samsconfig.cpp: In static member function ‘static bool SamsConfig::readDB()’:
samsconfig.cpp:229: error: invalid use of incomplete type ‘struct DBQuery’
dbconn.h:25: error: forward declaration of ‘struct DBQuery’
samsconfig.cpp:229: error: incomplete type ‘DBQuery’ used in nested name specifier
samsconfig.cpp:232: warning: possible problem detected in invocation of delete operator:
samsconfig.cpp:209: warning: ‘query’ has incomplete type
dbconn.h:25: warning: forward declaration of ‘struct DBQuery’
samsconfig.cpp:232: note: neither the destructor nor the class-specific operator delete will be called, even if they are declared when the class is defined.
samsconfig.cpp:236: error: invalid use of incomplete type ‘struct DBQuery’
dbconn.h:25: error: forward declaration of ‘struct DBQuery’
samsconfig.cpp:236: error: incomplete type ‘DBQuery’ used in nested name specifier
samsconfig.cpp:239: warning: possible problem detected in invocation of delete operator:
samsconfig.cpp:209: warning: ‘query’ has incomplete type
dbconn.h:25: warning: forward declaration of ‘struct DBQuery’
samsconfig.cpp:239: note: neither the destructor nor the class-specific operator delete will be called, even if they are declared when the class is defined.
samsconfig.cpp:243: error: invalid use of incomplete type ‘struct DBQuery’
dbconn.h:25: error: forward declaration of ‘struct DBQuery’
samsconfig.cpp:243: error: incomplete type ‘DBQuery’ used in nested name specifier
samsconfig.cpp:246: warning: possible problem detected in invocation of delete operator:
samsconfig.cpp:209: warning: ‘query’ has incomplete type
dbconn.h:25: warning: forward declaration of ‘struct DBQuery’
samsconfig.cpp:246: note: neither the destructor nor the class-specific operator delete will be called, even if they are declared when the class is defined.
samsconfig.cpp:251: error: invalid use of incomplete type ‘struct DBQuery’
dbconn.h:25: error: forward declaration of ‘struct DBQuery’
samsconfig.cpp:254: warning: possible problem detected in invocation of delete operator:
samsconfig.cpp:209: warning: ‘query’ has incomplete type
dbconn.h:25: warning: forward declaration of ‘struct DBQuery’
samsconfig.cpp:254: note: neither the destructor nor the class-specific operator delete will be called, even if they are declared when the class is defined.
samsconfig.cpp:259: error: invalid use of incomplete type ‘struct DBQuery’
dbconn.h:25: error: forward declaration of ‘struct DBQuery’
samsconfig.cpp:263: warning: possible problem detected in invocation of delete operator:
samsconfig.cpp:209: warning: ‘query’ has incomplete type
dbconn.h:25: warning: forward declaration of ‘struct DBQuery’
samsconfig.cpp:263: note: neither the destructor nor the class-specific operator delete will be called, even if they are declared when the class is defined.
samsconfig.cpp:272: warning: possible problem detected in invocation of delete operator:
samsconfig.cpp:209: warning: ‘query’ has incomplete type
dbconn.h:25: warning: forward declaration of ‘struct DBQuery’
samsconfig.cpp:272: note: neither the destructor nor the class-specific operator delete will be called, even if they are declared when the class is defined.
samsconfig.cpp:289: error: invalid use of incomplete type ‘struct DBQuery’
dbconn.h:25: error: forward declaration of ‘struct DBQuery’
samsconfig.cpp:289: error: incomplete type ‘DBQuery’ used in nested name specifier
samsconfig.cpp:292: warning: possible problem detected in invocation of delete operator:
samsconfig.cpp:274: warning: ‘query2’ has incomplete type
dbconn.h:25: warning: forward declaration of ‘struct DBQuery’
samsconfig.cpp:292: note: neither the destructor nor the class-specific operator delete will be called, even if they are declared when the class is defined.
samsconfig.cpp:296: error: invalid use of incomplete type ‘struct DBQuery’
dbconn.h:25: error: forward declaration of ‘struct DBQuery’
samsconfig.cpp:299: warning: possible problem detected in invocation of delete operator:
samsconfig.cpp:274: warning: ‘query2’ has incomplete type
dbconn.h:25: warning: forward declaration of ‘struct DBQuery’
samsconfig.cpp:299: note: neither the destructor nor the class-specific operator delete will be called, even if they are declared when the class is defined.
samsconfig.cpp:303: error: invalid use of incomplete type ‘struct DBQuery’
dbconn.h:25: error: forward declaration of ‘struct DBQuery’
samsconfig.cpp:306: warning: possible problem detected in invocation of delete operator:
samsconfig.cpp:274: warning: ‘query2’ has incomplete type
dbconn.h:25: warning: forward declaration of ‘struct DBQuery’
samsconfig.cpp:306: note: neither the destructor nor the class-specific operator delete will be called, even if they are declared when the class is defined.
samsconfig.cpp:313: warning: possible problem detected in invocation of delete operator:
samsconfig.cpp:274: warning: ‘query2’ has incomplete type
dbconn.h:25: warning: forward declaration of ‘struct DBQuery’
samsconfig.cpp:313: note: neither the destructor nor the class-specific operator delete will be called, even if they are declared when the class is defined.
samsconfig.cpp:332: error: invalid use of incomplete type ‘struct DBQuery’
dbconn.h:25: error: forward declaration of ‘struct DBQuery’
samsconfig.cpp:332: error: incomplete type ‘DBQuery’ used in nested name specifier
samsconfig.cpp:335: warning: possible problem detected in invocation of delete operator:
samsconfig.cpp:317: warning: ‘query3’ has incomplete type
dbconn.h:25: warning: forward declaration of ‘struct DBQuery’
samsconfig.cpp:335: note: neither the destructor nor the class-specific operator delete will be called, even if they are declared when the class is defined.
samsconfig.cpp:339: error: invalid use of incomplete type ‘struct DBQuery’
dbconn.h:25: error: forward declaration of ‘struct DBQuery’
samsconfig.cpp:339: error: incomplete type ‘DBQuery’ used in nested name specifier
samsconfig.cpp:342: warning: possible problem detected in invocation of delete operator:
samsconfig.cpp:317: warning: ‘query3’ has incomplete type
dbconn.h:25: warning: forward declaration of ‘struct DBQuery’
samsconfig.cpp:342: note: neither the destructor nor the class-specific operator delete will be called, even if they are declared when the class is defined.
samsconfig.cpp:346: error: invalid use of incomplete type ‘struct DBQuery’
dbconn.h:25: error: forward declaration of ‘struct DBQuery’
samsconfig.cpp:349: warning: possible problem detected in invocation of delete operator:
samsconfig.cpp:317: warning: ‘query3’ has incomplete type
dbconn.h:25: warning: forward declaration of ‘struct DBQuery’
samsconfig.cpp:349: note: neither the destructor nor the class-specific operator delete will be called, even if they are declared when the class is defined.
samsconfig.cpp:353: error: invalid use of incomplete type ‘struct DBQuery’
dbconn.h:25: error: forward declaration of ‘struct DBQuery’
samsconfig.cpp:370: warning: possible problem detected in invocation of delete operator:
samsconfig.cpp:317: warning: ‘query3’ has incomplete type
dbconn.h:25: warning: forward declaration of ‘struct DBQuery’
samsconfig.cpp:370: note: neither the destructor nor the class-specific operator delete will be called, even if they are declared when the class is defined.
make[2]: *** [samsconfig.o] Ошибка 1
make[2]: Leaving directory `/home/TULA/sams-2.0.0-rc1/src'
make[1]: *** [all] Ошибка 2
make[1]: Leaving directory `/home/TULA/sams-2.0.0-rc1/src'
make: *** [all-recursive] Ошибка 1
Может кто что подсказать?


