Jump to content

Сборка stg-2.4.8.6


Recommended Posts

Собирал Старгезер 2.4.8.6

Система Debian 3.1

Сначала нехотел собираться кричал что gmake команды незнает заменил везде на make вроде успокоился.

Но потом ошибка:

g++ -c script_executer.cpp -g3 -Wall -I ../../include -DLINUX
make: *** Нет правила для сборки цели `-lexpat', требуемой для `stargazer'.  Останов.

Я неочень разбираюсь в Скриптах поэтому удалил мешающуюся строчку в Makefile:

 

Было

 

ifeq ($(OS),linux)
DEFS = -DLINUX
LIBS += -lexpat \
           -lpthread \
           -ldl
PLUGINS += ./plugins/capture/ether_linux
endif

 

Стало

 

ifeq ($(OS),linux)
DEFS = -DLINUX
LIBS += -lpthread \
           -ldl
PLUGINS += ./plugins/capture/ether_linux
endif

 

Все скомпилировалось..вроде ок.

 

Теперь вопрос.

Как это повлияет на работоспособность программы?

Что это за строка за что отвечает?

Есть ли др варианты обойти ошыбку?

Link to post
Share on other sites

При запуске Нечего. Выполняеться и все. В процессах не появляется.

В Старгезер Логе

2006-09-14 14:32:32 -- Stg v. Stg 2.4
2006-09-14 14:32:32 -- Timer thread started successfully.
2006-09-14 14:32:32 -- Storage plugin: file_store v.1.01. Loading successfull.
2006-09-14 14:32:32 -- Error: Plugin loading failed. /usr/lib/stg//mod_conf_sg.so: cannot open shared obje
ct file: No such file or directory
2006-09-14 14:32:32 -- Traffcounter: Stop successfull.
2006-09-14 14:32:32 -- Users: Stop successfull.
2006-09-14 14:32:35 -- Queue removed successfully.
2006-09-14 14:32:35 -- StgTimer: Stop successfull.
2006-09-14 14:32:35 -- Stg stopped successfully.
2006-09-14 14:32:35 -- ---------------------------------------------

В Сис логе

Sep 14 14:32:32 new stg: Creating queue with key=5555 ...
Sep 14 14:32:32 new stg: Message queue created successfully. msgID=65536

Link to post
Share on other sites

При попытке скомпилировать отдельно файл которого ненаходит

new:~/star/projects/stargazer/plugins/configuration/sgconfig# make
g++ -c stgconfig.cpp -g3 -Wall -fPIC -I ../../../../../include -DLINUX
In file included from stgconfig.h:5,
                from stgconfig.cpp:5:
configproto.h:30:19: expat.h: No such file or directory
In file included from stgconfig.h:5,
                from stgconfig.cpp:5:
configproto.h:135: error: 'XML_Parser' is used as a type, but is not defined as
  a type.
make: *** [stgconfig.o] Ошибка 1
\
new:~# \new:~/star/projects/stargazer/plugins/configuration/sgconfig# make
g++ -c stgconfig.cpp -g3 -Wall -fPIC -I ../../../../../include -DLINUX
In file included from stgconfig.h:5,
                from stgconfig.cpp:5:
configproto.h:30:19: expat.h: No such file or directory
In file included from stgconfig.h:5,
                from stgconfig.cpp:5:
configproto.h:135: error: 'XML_Parser' is used as a type, but is not defined as
  a type.
make: *** [stgconfig.o] Ошибка 1
\

Link to post
Share on other sites

Нашол поставил перекомпилировал.

Ошыбка в Старгезер лог

2006-09-14 15:06:31 -- Stg v. Stg 2.4
2006-09-14 15:06:31 -- Timer thread started successfully.
2006-09-14 15:06:31 -- Storage plugin: file_store v.1.01. Loading successfull.
2006-09-14 15:06:31 -- Error: Plugin loading failed. /usr/lib/stg//mod_conf_sg.so: undefined symbol: XML_S
etElementHandler
2006-09-14 15:06:31 -- Traffcounter: Stop successfull.
2006-09-14 15:06:31 -- Users: Stop successfull.
2006-09-14 15:06:34 -- Queue removed successfully.
2006-09-14 15:06:34 -- StgTimer: Stop successfull.
2006-09-14 15:06:34 -- Stg stopped successfully.
2006-09-14 15:06:34 -- ---------------------------------------------

Link to post
Share on other sites

Была вроде такая хрень .... толи он компилится отказывался.... толи не запускался...попробуй раскидать сим. ссылки libexpat в /lib, /usr/lib и /usr/local/lib ... он может библиотечки не находить ...

Link to post
Share on other sites
Собирал Старгезер 2.4.8.6

Система Debian 3.1

Сначала нехотел собираться кричал что gmake команды незнает заменил везде на make вроде успокоился.

Но потом ошибка:

Я тоже везде заменил gmake на make

пишу ./build

оно мне выдает

#############################################################################
      Building STG 2.4 for FreeBSD 6
#############################################################################
Makeing stg_logger.lib
"../Makefile.in", line 9: Missing dependency operator
"../Makefile.in", line 11: Need an operator
"../Makefile.in", line 13: Missing dependency operator
"../Makefile.in", line 15: Need an operator
"../Makefile.in", line 17: Missing dependency operator
"../Makefile.in", line 19: Missing dependency operator
"../Makefile.in", line 21: Need an operator
"../Makefile.in", line 23: Need an operator
"../Makefile.in", line 25: Missing dependency operator
"../Makefile.in", line 27: Missing dependency operator
"../Makefile.in", line 29: Need an operator
"../Makefile.in", line 31: Need an operator
"../Makefile.in", line 33: Missing dependency operator
"../Makefile.in", line 35: Need an operator
"../Makefile.in", line 37: Missing dependency operator
"../Makefile.in", line 39: Need an operator
Error expanding embedded variable.

Что это ???Как с ним бороться??

Не думал я что так сложно все будет :)

ПЛЗ!!! где почитать полный РАБОТАЮЩИЙ мануал по установке Старгазера на FreeBSD 6.1 ????? :(

Link to post
Share on other sites
  • 3 weeks later...

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...