This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

package http problems

Old posts that have not been replied to for several years.
Locked
M
MaZ

package http problems

Post by MaZ »

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:

Code: Select all

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 :evil:

uhh sorry... must contain frustration :o

MaZ
p
ppslim
Revered One
Posts: 3914
Joined: Sun Sep 23, 2001 8:00 pm
Location: Liverpool, England

Post by ppslim »

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"
M
MaZ

Post by MaZ »

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
M
MaZ

Post by MaZ »

source works, w00t

know how i can get around it properly so it uses package require http again? :D
p
ppslim
Revered One
Posts: 3914
Joined: Sun Sep 23, 2001 8:00 pm
Location: Liverpool, England

Post by ppslim »

I hate Tcl package installation. It bugged me while I was installing Trf the other day, which ended in a manual cp operation.

When you installed Tcl the other day, can you doctate the process you went through (only the commands you typed, in full and in order).

As a normal install, should provide this p[ackage straight off.
M
MaZ

Post by MaZ »

./configure
make
make test
make install

and just found logs from it... turns out in the tests, the http.test worked fine... hmmm :o
M
MaZ

Post by MaZ »

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) :o
t
tainted
Master
Posts: 239
Joined: Sun May 12, 2002 8:00 pm
Location: chicago
Contact:

Post by tainted »

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). :evil:
Locked