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.

INstalling TCL

General support and discussion of Eggdrop bots.
K
Khilborn
Voice
Posts: 15
Joined: Mon Nov 07, 2011 12:20 pm

INstalling TCL

Post by Khilborn »

It was pretty straight forward installed aggdrop to my shell. The problem I am having is finding a tutorial that will guide me through installing tcl on my server. Can anyone guide me in the right direction on getting TCL installing on my server .
n
nml375
Revered One
Posts: 2860
Joined: Fri Aug 04, 2006 2:09 pm

Post by nml375 »

With most linux and bsd dists these days, it's a mere matter of using a packet manager (such as apt-get, aptitude, yum, or similar) for your dist; and install the tcl and tcl-dev packages.
If you'd rather do it the hard way, have a look here: http://tcl.tk/software/tcltk/8.5.html
NML_375
w
willyw
Revered One
Posts: 1202
Joined: Thu Jan 15, 2009 12:55 am

Post by willyw »

http://www.egghelp.org/faq.htm#042


Edit:
It seems that the link mentioned there, is dead. :(

Would a moderator be able to pass this along to whoever maintains the above link?
Thanks.
n
nml375
Revered One
Posts: 2860
Joined: Fri Aug 04, 2006 2:09 pm

Post by nml375 »

willyw,
I'm afraid that link is not accurate anymore. The eggfaq.com domain linked there has expired and now only hosts a resale/links page.
NML_375
w
willyw
Revered One
Posts: 1202
Joined: Thu Jan 15, 2009 12:55 am

Post by willyw »

nml375 wrote:willyw,
I'm afraid that link is not accurate anymore.
...
Right.
Can you let whoever maintains that page know? Perhaps they would like to edit it.
Thanks
n
nml375
Revered One
Posts: 2860
Joined: Fri Aug 04, 2006 2:09 pm

Post by nml375 »

Well, since the link is on egghelp.org, that would be slennox... Just sent him a PM about it..
NML_375
w
willyw
Revered One
Posts: 1202
Joined: Thu Jan 15, 2009 12:55 am

Post by willyw »

Cool.
Will do.
K
Khilborn
Voice
Posts: 15
Joined: Mon Nov 07, 2011 12:20 pm

Post by Khilborn »

I have tried everything to get TCL on my server with no success. I have uploaded, extracted it but for some reason cant get it compiled and working
n
nml375
Revered One
Posts: 2860
Joined: Fri Aug 04, 2006 2:09 pm

Post by nml375 »

Assuming you've got the needed buildtools (gcc, libc, make, etc); it's generally a matter of ./configure; make; make install
Unfortunately, your current description does'nt give us much more information to work with..

What kind of system (linux, bsd, unix) and distribution?
Can you install the tcl libraries using a packet manager?
If you're compiling, does the ./configure-script give any errors?
Does the actual compiling (make) give any errors?

If you do get any errors, what are they?
NML_375
K
Khilborn
Voice
Posts: 15
Joined: Mon Nov 07, 2011 12:20 pm

Post by Khilborn »

Alright sorry for not being specific. This is what I have done. I have uploaded via FTP Eggdrop, tcl8.5.10, and tk8.5.10. Each one has been extracted via telnet to my server.

When I ran ./configure via telnet for eggdrop everything works fine until the tcl check. This is what I get.

configure: WARNING:

You must specify both --with-tcllib and --with-tclinc for either to work.

configure will now attempt to autodetect both the Tcl library and header.

checking for Tcl library... found /usr/lib/libtcl8.4.so
checking for Tcl header... not found
checking whether the Tcl system has changed... yes
configure: error:

Tcl cannot be found on this system.

Eggdrop requires Tcl and the Tcl development files to compile.
If you already have Tcl installed on this system, make sure you
also have the development files (common package names include
'tcl-dev' and 'tcl-devel'). If I just wasn't looking
in the right place for it, re-run ./configure using the
--with-tcllib='/path/to/libtcl.so' and
--with-tclinc='/path/to/tcl.h' options.


So I followed the instructions via: http://www.tcl.tk/doc/howto/compile.html to comfigure and compile tcl on my server.

./configure --prefix=/home/TCL ----> SUCCESS
make ------->SUCCESS I guess, i did not get errors
make test ------> Run fine until load.test

load.test


==== load-10.1 load from vfs FAILED
==== Contents of test case:
list [catch {load simplefs:/pkgd$ext pkgd} msg] $msg
---- Result was:
1 {couldn't load file "/tmp/tclXgVPg0": /tmp/tclXgVPg0: failed to map segment from shared object: Operation not permitted}
---- Result should have been (exact matching):
0 {}
==== load-10.1 FAILED


Then when I do make install I get the following

-bash-3.2$ make install
Making directory /home/TCL/lib
mkdir: cannot create directory `/home/TCL': Permission denied
chmod: cannot access `/home/TCL/lib': No such file or directory
Making directory /home/TCL/bin
mkdir: cannot create directory `/home/TCL': Permission denied
chmod: cannot access `/home/TCL/bin': No such file or directory
Making directory /home/TCL/lib
mkdir: cannot create directory `/home/TCL': Permission denied
chmod: cannot access `/home/TCL/lib': No such file or directory
make: *** [install-binaries] Error 1


The File permission on the TCL directory is 755.

THis is where I am stuck at this time
K
Khilborn
Voice
Posts: 15
Joined: Mon Nov 07, 2011 12:20 pm

Post by Khilborn »

OS = Linux

My hosting privider in Hostmonster.com
n
nml375
Revered One
Posts: 2860
Joined: Fri Aug 04, 2006 2:09 pm

Post by nml375 »

In this case, you've already got tcl8.4 installed, though you are missing the -dev package for it.
This would be a good point to ask whether you've got root access to this system, or just a shell account. If you do have root access, the brand (or distribution) of Linux would also be quite helpful.

Your build of the tcl libraries worked just fine, however, you do not have write access to the /home/TCL directory, where you are trying to install tcl. Or, more to the point, there is no /home/TCL directory, and you do not have write permissions in /home. Perhaps this should be something along /home/myhome/tcl (where myhome would be your accounts home directory).
NML_375
K
Khilborn
Voice
Posts: 15
Joined: Mon Nov 07, 2011 12:20 pm

Post by Khilborn »

I even tried

-bash-3.2$ make install
Making directory /home/public_html/TCL/lib
mkdir: cannot create directory `/home/public_html': Permission denied
chmod: cannot access `/home/public_html/TCL/lib': No such file or directory
Making directory /home/public_html/TCL/bin
mkdir: cannot create directory `/home/public_html': Permission denied
chmod: cannot access `/home/public_html/TCL/bin': No such file or directory
Making directory /home/public_html/TCL/lib
mkdir: cannot create directory `/home/public_html': Permission denied
chmod: cannot access `/home/public_html/TCL/lib': No such file or directory
make: *** [install-binaries] Error 1
-bash-3.2$


all my websites, etc are in public_html

The TCL Folder now exist in /home/public_html/TCL and I changed permission to 777 but still get the above error
n
nml375
Revered One
Posts: 2860
Joined: Fri Aug 04, 2006 2:09 pm

Post by nml375 »

Please re-check the last part of my previous post.
It is VERY uncommon to have user data directly under /home. It's pretty much standard to create one directory for each user account under /home.
Say my login-name would be test123, then my home directory would be /home/test123, and I would place a private installation of tcl in /home/test123/tcl; I would have my private website in /home/test123/public_html; and so on...

Also, am I safe to assume you do NOT have root access on this server?
NML_375
w
willyw
Revered One
Posts: 1202
Joined: Thu Jan 15, 2009 12:55 am

Post by willyw »

nml375 wrote:Well, since the link is on egghelp.org, that would be slennox... Just sent him a PM about it..
He replied to my PM.
Link has been updated. :)

For anyone else that is reading along, the link that I mentioned above once again leads to information.
Post Reply