Прочитал кучу документации, и взялся за установку SAMS на SUSE 11, но не пошло.
Делал как тут описано http://sams.perm.ru/sams2/doc/RU/install.html#download
[console]suse # # make -f Makefile.cvs
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
[/console]
sh ./configure закончилась так:
config.status: creating src/config.h
[console]config.status: src/config.h is unchanged
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.[/console]
как я понимаю, проблема в этой строчке
[console]WARNING: Regular expressions won't work without pcre or pcrecpp[/console]
PCRE или pcrecpp это какие-то библиотеки? Как их до установить?
ну и наконец make выдала:
[console]rm -f stamp-h1
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
[/console] это окончание
Может кто что подсказать?
Установка SAMS
Я так понимаю, что чего-то у меня не стоит, но чего именно не знаю, и как установить тоже не знаю.
Сергей В.,
Подробнее, какой у Вас дистрибьютив?
на SUSE 11
Точно не Sles или Sled? Если 11, то какая их 4 ревизии было 11.1, 11.2, 11.3, 11.4.
Проблема вот в этом:
[console]Note: If later on, you will use
make install exec_prefix=/foo
or make install DESTDIR=/tmp/package
the locations above would be incorrect[/console]
Перед началом установки, Вы установили в дистрибьютивы пакеты библиотек и компилятор?
Use MySQL API: no
Use PostgreSQL API: no
Use unixODBC API: no
Use LDAP API: yes
Using pcre: none
Use dynamic plugin: yes
Поставь pcre_php + mysql, потом опять configure, make && make install clean или по инструкции.
i2ks,
oO Иван, я этого не писал oO oO
Иван, я этого не писал
ага, движок форума порой такое отливает =)
openSUSE
Поставь pcre_php + mysql,
Прочитал, что prce включён в PHP, значит можно просто поставить последнюю стабильную версию PHP?
Какой mysql? mysql-devil я ставил.
ну вроде встал, но надо ещё настраивать
Поддержка библиотеки сжатия Zlib не установлена
Поддержка библиотеки GD2 не установленанадо PHP пере собирать с ./configure бла, бла?
можно без этого?
какой собирать php? из репозиториев все ставим и потом собираем sams. Не занимайтесь ерундой.
чего? :)
о, ещё
Установки php:
Директива Рекомендуется Установлено
safe_mode on off
какой собирать php? из репозиториев все ставим и потом собираем sams. Не занимайтесь ерундой
А можно по пунктикам? Как для тупых smile Пожалуйста
SAMS уже собран, но не работает пока
SAMS уже собран, но не работает пока
и не будет работать должным образом
А можно по пунктикам? Как для тупых Пожалуйста
этой информации в рунете полным олно. Что либо расскладвать не буду, если только за символическую плату
А можно по пунктикам? Как для тупых Пожалуйста
Вы это серьёзно или как? oO
Вы знаете как устанавливать пакеты в пакетных дистрибьютивах?
Теперь отпрыгнуть на первое Ваше сообщение и смотрим
Прочитал кучу документации, и взялся за установку SAMS на SUSE 11, но не пошло.
Делал как тут описано
Если Вы всё прочитали, то однозначно и читали требования: http://sams.perm.ru/sams2/doc/RU/requirements.html
Что уже само собой подразумевает, то что перед установкой SAMS Вы должны поставить эти пакеты и запустить- логично?
Ну и к сути вопроса, как устанавливать пакеты с помощью пакетного менеджера Yast, я думаю тут объяснять не будем. Создайте другую тему или почитайте как работать с Suse.
Что либо расскладвать не буду, если только за символическую плату
О, точно и мне :P
Ещё до установки SAMS на этом сервере крутился (и пока крутится) сайт, соответственно апач и пхп стояли уже. После первой попытки прочёл что нужные мне библиотеки есть в составе нового апача, его поставил.
за символическую плату
Вот вам и сообщество линуксоидов... есть ещё здесь альтруисты?
Я обращался и с гораздо более тупыми вопросами, и мне помогали, теперь на подобные вопросы научился ответы искать у гугла, или уже сам знаю, но если спрашиваю, значит надеюсь на помощь. Опыт у всех разный всё таки.
Вот вам и сообщество линуксоидов...
не вижу ни какой связи между linux и оказанием платных услуг.
Если сами не можете разобраться, здесь два варианта: 1)ждите пока вам ответят 2)платите деньги =)
Поддержка библиотеки сжатия Zlib не установлена
zypper in php-zlib
zypper in php-zlib
Спасибо огромное. А как с GD2? zypper in php-GD2 не помогает..
и с этим
Установки php:
Директива Рекомендуется Установлено
safe_mode on off
Вот вам и сообщество линуксоидов... есть ещё здесь альтруисты?
Вы бы для начала ответили на мои все выше заданные вопросы, а то Вы хотите альтруиста телепата да ещё и за бесплатно, это фантастика.
Я обращался и с гораздо более тупыми вопросами, и мне помогали
Как правильно задавать вопросы, ну что же Вы не понимаете то, что ну нет, нет людей у которые готовы просто взглянув на слова "не работает", "как?", "почему?" сразу дать ответ.
Поддержка библиотеки сжатия Zlib не установлена
http://software.opensuse.org/search?q=zlib&baseproject=openSUSE%3A11.4&lang=ru Лучше ставьте из standart.