PDA

Archiv verlassen und diese Seite im Standarddesign anzeigen : PluginFilterScript wird nicht ausgeführt



Keksdose
05.05.2013, 00:24
Hallo zusammen,

ich habe jetzt auf einem Raspberry Pi monitord zum laufen bekommen und auch das Schreiben in eine MySQL-Datenbank funktioniert.

Was leider nicht klappt ist das Ausführen des PluginFilterScript. Ich habe es per


[...]
<PluginFilterScript> pluginfilter.lua </PluginFilterScript>
[...]

eingefügt, es wird aber nicht geladen. Auf einem Windows-Rechner wird das Script problemlos geladen, was im Log mit


[...]
14:07:25.156 INFO: monitord/PluginThread.cpp(179) Successfully loaded LUA filter: C:/Programme/monitord/pluginfilter.lua
[...]

bestätigt wird. Unter Raspbian fehlt der Eintrag leider völlig.

Compiliert habe ich die aktuelle Version aus dem SVN mit


./configure --enable-plugins --with-mysql
make
make install


Hat einer von euch eine Idee wo ich gerade Tomaten auf den Augen habe?

Vielen Dank schon einmal!

schmodda
06.05.2013, 09:51
Muss ./configure nicht angepasst werden?

Optional Packages:
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
--without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
--with-lua-prefix=DIR Lua files are in DIR
--with-lua-suffix=ARG Lua binary and library files are suffixed with ARG
--with-lua-includes=DIR Lua include files are in DIR
--with-lua-libraries=DIR
Lua library files are in DIR
--with-alsa enable ALSA support (default is yes)
--with-alsa-prefix=PFX Prefix where Alsa library is installed(optional)
--with-alsa-inc-prefix=PFX Prefix where include libraries are (optional)
--with-mysql enable experimental mysql support (default is no)
--with-lame enable experimental mp3 lame support (default is no)
--with-sox enable experimental libsox support (default is no)
--with-libvorbis enable experimental ogg vorbis support (default is
no)
--with-gnu-ld assume the C compiler uses GNU ld [default=no]
--with-pic try to use only PIC/non-PIC objects [default=use
both]
--with-tags[=TAGS] include additional configurations [automatic]

mdi
06.05.2013, 18:00
Hallo,

ich meine mich dunkel zu erinnern, dass "--with-lua" erst den LUA-Kram baut, wundert mich grad ein wenig, dass die Option da nicht zu finden ist (oder habe ich Tomaten auf den Augen?).

Viele Grüße
Martin

Keksdose
06.05.2013, 22:35
Guter Hinweis, danke. Da hätte ich auch selbst drauf kommen können.

Ich habe es jetzt mit Lua 5.2 versucht, leider kommt aber ein neuer Fehler:


g++ -DHAVE_CONFIG_H -I. -Ijthread-1.2.1/src -D_DEBUG -Wall -I/usr/include/lua5.2/ -frtti -DPLUGINS -fPIC -rdynamic -g -O2 -MT monitord/monitord_monitord-SocketServer.o -MD -MP -MF monitord/.deps/monitord_monitord-SocketServer.Tpo -c -o monitord/monitord_monitord-SocketServer.o `test -f 'monitord/SocketServer.cpp' || echo './'`monitord/SocketServer.cpp
monitord/SocketServer.cpp: In constructor ‘SocketServer::SocketServer(MonitorConfiguration*, std::string, int)’:
monitord/SocketServer.cpp:67:18: error: ‘lua_open’ was not declared in this scope
make[1]: *** [monitord/monitord_monitord-SocketServer.o] Fehler 1
make[1]: Leaving directory `/usr/src/trunk'
make: *** [all] Fehler 2


Aufgerufen habe ich das Ganze jetzt mit folgendem Befehl:


./configure --enable-plugins --with-mysql --with-lua --with-lua-includes=/usr/include/lua5.2/ --with-lua-libraries=/usr/lib/arm-linux-gnueabihf/ && make && make install

Mit Lua 5.1 kommen noch viel mehr Fehler, da werde ich gerade irgendwie nicht draus schlau. Morgen mal 5.0 versuchen.

Jockel91
15.10.2013, 15:46
Moin, konntest du dein Problem lösen?
stehe jetzt vor dem selber Problem


Danke und Gruß
Jockel

Keksdose
16.10.2013, 20:59
Sorry, hätte ich jetzt vergessen!

Gebaut habe ich es letztendlich mit folgendem Befehl:


./configure --enable-plugins --with-alsa --with-mysql --with-lua \
--with-lua-includes=/usr/include/lua5.1 \
--with-lua-prefix=/usr/lib/x86_64-linux-gnu/ --with-lua-suffix=5.1


Die für Lua installierten Pakete sind wie folgt:


i A liblua5.1-0
i A liblua5.1-0-dev
i libluabind-dev
i A libluabind0.9.1