Hmm... Im kinda new to tcl scripting (not new to eggdrop stuff, been using em for a few years just never had time to get into scripting )
but... whenever i try to use a script that utilises the http package in some way (package require http) when i try to start the bot up, i get this error:
can't find package http
while executing
"package require http"
This is driving me insane... ive recompiled eggdrop from scratch using 1.6.13, updated tcl to 8.4.1 and tcllib to 1.3, everything else works fine.
Any help appreciated as this is driving me MAD
Tcl itself, comes with the http package. Tcllib and your eggdrop version will not have any affect on if this package is loaded.
First thing to make sure, have you compiled eggdrop, with the correct version of Tcl. If you have compiled and linked to the wrong version of Tcl, where http isn't installed, then it won't load.
Next, has it been installed on the system? Does "locate http.tcl" find it?
If this all fails, a quick workaround is to use "source /path/to/file/http.tcl"
the version of tcl which eggdrop is using i specified as the install of tcl8.4.1, i just checked and the http.tcl file is there..
tcl is installed in /usr/local
libtcl8.4.so is in /usr/local/lib
and the http packages are in /usr/local/lib/tcl8.4/http2.4
and /usr/local/lib/tcl8.4/http1.0
I'll just try doing the 'source' method, see if it works
also... im having problems with the 'missing tcl8.4.so' on trying to start the bot... im currently using a bypass method atm (export LD_LIBRARY_PATH).
There a way to do it properly so i dont have to do that every time i wanna restart the bot? Bear in mind im not actually the serveradmin atm (a guy i know well is, so if theres anything he needs to do he'll do it) and the system runs like... a seperate 'root' for every user (but i cant edit any of the files, he has to do it)
You can do a ldd eggdrop in ~/eggdrop to see exactly what is missing, then go ahead and verify that the libraries are in their proper location. I couldn't get 1.6.13 to compile without a make install for tcl, much to our dismay. I had set TCLLIB and TCLINC, but the make would fail on the linking saying it couldn't locate libtcl8.4.so (which was in the path I exported for TCLLIB).