cjlaity 0 Posted 2008-03-27 10:41:33 Share Posted 2008-03-27 10:41:33 Собрал новый сервер для сети, решил поставить новый STG с MySQL. Без особых проблем установил stg 2.404.9.7 отредактировал stargazer.conf но STG не запустить. в stargazer.log такая картина: 2008-03-27 12:32:38 -- Stg v. Stg 2.404 2008-03-27 12:32:38 -- Message queue created successfully. msgKey=5555 msgID=0 2008-03-27 12:32:38 -- Timer thread started successfully. 2008-03-27 12:32:38 -- Storage plugin loading failed: /usr/lib/stg/mod_store_mysql.so: undefined symbol: mysql_select_db 2008-03-27 12:32:38 -- Load StoragePlugin error. 2008-03-27 12:32:39 -- Queue removed successfully. 2008-03-27 12:32:39 -- StgTimer: Stop successfull. 2008-03-27 12:32:39 -- Stg stopped successfully. Что делать? Link to post Share on other sites
Neelix 33 Posted 2008-03-27 11:15:35 Share Posted 2008-03-27 11:15:35 посмотри внимательно в конфиге, в место где выбирается БД Link to post Share on other sites
S_ergey 21 Posted 2008-03-27 12:41:27 Share Posted 2008-03-27 12:41:27 2008-03-27 12:32:38 -- Storage plugin loading failed: /usr/lib/stg/mod_store_mysql.so: undefined symbol: mysql_select_db проблема в этом модуле он незагружается или собран с ошибкой. Link to post Share on other sites
cjlaity 0 Posted 2008-03-27 12:47:04 Author Share Posted 2008-03-27 12:47:04 stargazer.conf LogFile = /var/log/stargazer.log Rules = /etc/stargazer/rules DetailStatWritePeriod=1/6 StatWritePeriod = 10 DayFee = 1 DayFeeIsLastDay = yes DayResetTraff = 1 SpreadFee = no FreeMbAllowInet = no WriteFreeMbTraffCost = no <DirNames> DirName0 = INET DirName1 = DirName2 = DirName3 = DirName4 = DirName5 = DirName6 = DirName7 = DirName8 = DirName9 = </DirNames> ExecutersNum = 1 ModulesPath = /usr/lib/stg <StoreModule store_mysql> dbuser = my_user_here rootdbpass = my_pass_here dbname = stg dbhost = localhost </StoreModule> <Modules> <Module auth_ao> </Module> <Module auth_ia> Port = 9999 UserDelay = 5 UserTimeout = 15 FreeMb = cash </Module> <Module conf_sg> Port = 7865 </Module> <Module cap_ether> </Module> <Module ping> PingDelay = 10 </Module> </Modules> Link to post Share on other sites
cjlaity 0 Posted 2008-03-27 12:58:58 Author Share Posted 2008-03-27 12:58:58 Пытался собирать плагин mod_mysql_store при таком makefile include ../../../../../Makefile.conf PROG = mod_store_mysql.so SRCS = ./mysql_store.cpp #LIBS = -lconffiles -lstg_common LIBS = -lmysqlclient include ../../Makefile.in Не собирался- Ошибка 2. Нет параметров для выполнения -lmysqlclient Изменил: include ../../../../../Makefile.conf PROG = mod_store_mysql.so SRCS = ./mysql_store.cpp LIBS = -lconffiles -lstg_common #LIBS = -lmysqlclient include ../../Makefile.in Собрался. Возможно в этом проблема, но что тогда делать? Link to post Share on other sites
Neelix 33 Posted 2008-03-27 12:59:38 Share Posted 2008-03-27 12:59:38 1.проверь есть ли доступ на localhost 3306 2. если нет, то скорее всего да, неккоректно собрался модуль sql, здесь впринципе косяков может немеряно. логи компиляции ничего особенного не говорили? Link to post Share on other sites
cjlaity 0 Posted 2008-03-27 13:19:00 Author Share Posted 2008-03-27 13:19:00 1. к localhost 3306 доступ есть 2. при таком makefile include ../../../../../Makefile.conf PROG = mod_store_mysql.so SRCS = ./mysql_store.cpp #LIBS = -lconffiles -lstg_common LIBS = -lmysqlclient include ../../Makefile.in Единственное что писал: Ошибка 2. Нет параметров для выполнения -lmysqlclient изменил LIBS = -lconffiles -lstg_common #LIBS = -lmysqlclient никаких проблем Link to post Share on other sites
den68 0 Posted 2008-03-27 22:31:11 Share Posted 2008-03-27 22:31:11 Makefile: include ../../../../../Makefile.conf PROG = mod_store_mysql.so SRCS = ./mysql_store.cpp LIBS = -lstg_locker -lstg_common -lconffiles SEARCH_DIRS += -I /usr/include/mysql LDFLAGS += -lmysqlclient -L /usr/lib/mysql include ../../Makefile.in Link to post Share on other sites
Alferov 0 Posted 2008-03-28 06:24:16 Share Posted 2008-03-28 06:24:16 Если при запуске пишет такое: Storage plugin loading failed: /usr/lib/stg/mod_store_mysql.so: undefined symbol: mysql_select_db то непонятно, как модуль вообще смог скомпилироваться. Налицо явное отсутствие клиента mysql. Не видит модуль его, вот и ругается. решение: пересобрать модуль с makefile, указанным выше den68. Link to post Share on other sites
cjlaity 0 Posted 2008-03-28 07:09:27 Author Share Posted 2008-03-28 07:09:27 Спасибо, den68, с указанным Makefile модуль учпешно собрался и заработал. Теперь перекину клиентов со старой базы и буду запускать сервер в сеть. Link to post Share on other sites
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now