egghelp.org community Forum Index
[ egghelp.org home | forum home ]
egghelp.org community
Discussion of eggdrop bots, shell accounts and tcl scripts.
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

package require tdom
Goto page 1, 2  Next
 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Scripting Help
View previous topic :: View next topic  
Author Message
falco
Voice


Joined: 14 Apr 2013
Posts: 7
Location: Belgium

PostPosted: Sun Apr 14, 2013 4:35 am    Post subject: package require tdom Reply with quote

Hi, I succesfull installed an eggdrop-bot on an ubuntu server.

I'm trying to install a tcl-script, but it gives me the error:

Code:
[08:26:46] can't find package tdom
    while executing
"package require tdom"
    (file "scripts/omertaPrices.tcl" line 42)
    invoked from within
"source scripts/omertaPrices.tcl"
    (file "eggdrop.conf" line 1422)


I installed tdom package (as root) :
Code:
apt-get install tdom
make
make install
make tcldomsh
make install


Now I got the same error, did I do something wrong?

Thanks for the advice!
Back to top
View user's profile Send private message
falco
Voice


Joined: 14 Apr 2013
Posts: 7
Location: Belgium

PostPosted: Wed May 08, 2013 1:47 pm    Post subject: Reply with quote

nobody? Crying or Very sad
Back to top
View user's profile Send private message
caesar
Mint Rubber


Joined: 14 Oct 2001
Posts: 3741
Location: Mint Factory

PostPosted: Thu May 09, 2013 12:52 am    Post subject: Reply with quote

As a regular user (not as root, and hopefully you haven't installed the eggdrop as one) get on the shell and enter tclsh then run package require tdom and see if that works. if it doesn't then the library didn't install correctly or it's library path isn't known/recognized.

have you tried to install the library with apt-get install tdom (or with aptitude)?
_________________
Once the game is over, the king and the pawn go back in the same box.
Back to top
View user's profile Send private message
falco
Voice


Joined: 14 Apr 2013
Posts: 7
Location: Belgium

PostPosted: Mon May 13, 2013 9:51 am    Post subject: Reply with quote

when I run tclsh as a regular user, I get: command not found

when i run that command with root: I get : 0.8.3

I installed tdom library with apt-get install tdom (as root)

How can I give my regular user access to that command and library?
P.s.: eggdrop is installed as regular user
Back to top
View user's profile Send private message
caesar
Mint Rubber


Joined: 14 Oct 2001
Posts: 3741
Location: Mint Factory

PostPosted: Mon May 13, 2013 12:44 pm    Post subject: Reply with quote

I find that very interesting that command not found on a tclsh command, not to mention the reply when you do it as root. Rolling Eyes

What linux distribution are you using?
_________________
Once the game is over, the king and the pawn go back in the same box.
Back to top
View user's profile Send private message
falco
Voice


Joined: 14 Apr 2013
Posts: 7
Location: Belgium

PostPosted: Mon May 13, 2013 1:28 pm    Post subject: Reply with quote

I'm using ubuntu (on a vhost).
Back to top
View user's profile Send private message
willyw
Revered One


Joined: 15 Jan 2009
Posts: 1175

PostPosted: Mon May 13, 2013 3:00 pm    Post subject: Reply with quote

falco wrote:
when I run tclsh as a regular user, I get: command not found
...



Just for fun:

There is some command to list what you have installed. (I can't remember it/them, I'd have to google it).
Find out what version(s) of TCL are actually installed. Perhaps one is found by one kind of user, and another is not.

And once you know the version(s) numbers, try:
tclsh8.5
or tclsh_8.5
something like that, that corresponds.
I've had shells where tclsh returned 'command not found', but tclsh8.5 brought it right up.

Perhaps some of this will gain you some more clues as to what is going on.
Back to top
View user's profile Send private message
caesar
Mint Rubber


Joined: 14 Oct 2001
Posts: 3741
Location: Mint Factory

PostPosted: Mon May 13, 2013 3:10 pm    Post subject: Reply with quote

You meant dpkg -l tcl* ? Smile
_________________
Once the game is over, the king and the pawn go back in the same box.
Back to top
View user's profile Send private message
willyw
Revered One


Joined: 15 Jan 2009
Posts: 1175

PostPosted: Mon May 13, 2013 3:45 pm    Post subject: Reply with quote

caesar wrote:
You meant dpkg -l tcl* ? Smile


That certainly looks familiar. Smile
Back to top
View user's profile Send private message
falco
Voice


Joined: 14 Apr 2013
Posts: 7
Location: Belgium

PostPosted: Tue May 14, 2013 6:57 am    Post subject: Reply with quote

dpkg -l tcl* (as root) gives me:


I think there might be a permissions problem on my system, because all the commands I do as default user gives me: command not found.

I'm not a linux-goeroe, so I'm not sure... Embarassed
Back to top
View user's profile Send private message
caesar
Mint Rubber


Joined: 14 Oct 2001
Posts: 3741
Location: Mint Factory

PostPosted: Tue May 14, 2013 2:49 pm    Post subject: Reply with quote

I see the tclsh on the list, so I don't get it why isn't working. Is this your server or a shell your purchased an account on?

In terminal type: lsb_release -a
_________________
Once the game is over, the king and the pawn go back in the same box.
Back to top
View user's profile Send private message
falco
Voice


Joined: 14 Apr 2013
Posts: 7
Location: Belgium

PostPosted: Wed May 15, 2013 7:41 am    Post subject: Reply with quote

its a VPS I rent.

I installed a webserver and host a few small websites on it.



In my controll-panel (ispconfig) I created a user with ssh-permissions and thats the one I use for my eggdrop.
Back to top
View user's profile Send private message
caesar
Mint Rubber


Joined: 14 Oct 2001
Posts: 3741
Location: Mint Factory

PostPosted: Wed May 15, 2013 9:59 am    Post subject: Reply with quote

You got some misconfiguration or some other glitch I can't put my finger on, so contact support about this issue cos you paid for this service, no?
_________________
Once the game is over, the king and the pawn go back in the same box.
Back to top
View user's profile Send private message
falco
Voice


Joined: 14 Apr 2013
Posts: 7
Location: Belgium

PostPosted: Wed May 15, 2013 2:49 pm    Post subject: Reply with quote

I pay for the VPS yes, but I need it for my websites, so thats not a problem.

Thanks for the input, I will try to figure things out and I will join the IRC-channel if I need further assistance.

Thanks!
Back to top
View user's profile Send private message
Johannes13
Halfop


Joined: 10 Oct 2010
Posts: 46

PostPosted: Sun Jun 09, 2013 5:27 pm    Post subject: Reply with quote

Do you use a local Tcl installation? Then installing stuff is not that easy.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    egghelp.org community Forum Index -> Scripting Help All times are GMT - 4 Hours
Goto page 1, 2  Next
Page 1 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Forum hosting provided by Reverse.net

Powered by phpBB © 2001, 2005 phpBB Group
subGreen style by ktauber