Unoffical empeg BBS

Quick Links: Empeg FAQ | RioCar.Org | Hijack | BigDisk Builder | jEmplode | emphatic
Repairs: Repairs

Topic Options
#188834 - 10/11/2003 11:31 installing tclsh on an empeg
Anonymous
Unregistered


I'm guessing this wouldn't work on the empeg - http://aspn.activestate.com/ASPN/Downloads/ActiveTcl
It says it's for IX-86. Will this work or not?

Top
#188835 - 10/11/2003 11:38 Re: installing tclsh on an empeg [Re: ]
wfaulk
carpal tunnel

Registered: 25/12/2000
Posts: 16706
Loc: Raleigh, NC US
Nope, although it ought to be possible to build Tcl from source with a cross-compiler. What were you looking to use it for?
_________________________
Bitt Faulk

Top
#188836 - 10/11/2003 11:53 Re: installing tclsh on an empeg [Re: wfaulk]
Anonymous
Unregistered


I wanted to start messing around on the empeg, and I know tcl very well so I figured I would start with that.

Top
#188837 - 10/11/2003 12:03 Re: installing tclsh on an empeg [Re: wfaulk]
Anonymous
Unregistered


What are the chances of a compatible version already existing and what exactly should I be looking for? There are a few various ports listed here: http://resource.tcl.tk/resource/software/ports/, but I'm guessing I need something compiled for the ARM processor?

Top
#188838 - 10/11/2003 12:30 Re: installing tclsh on an empeg [Re: ]
peter
carpal tunnel

Registered: 13/07/2000
Posts: 4181
Loc: Cambridge, England
What are the chances of a compatible version already existing and what exactly should I be looking for?
You should be looking for this page of Roger's to explain how to unpack Debian packages, plus a Debian ARM binary package (arm.deb) of tcl. (I haven't actually done this, but it should just work.)

Peter

Top
#188839 - 10/11/2003 14:44 Re: installing tclsh on an empeg [Re: peter]
Anonymous
Unregistered


thanks, that was easy. It looks like it installed fine, but I can't seem to get tclsh to run. It put tclsh8.4 in /usr/bin. I tried typing tclsh and tclsh8.4, but it just says command not found. I'm still trying to figure linux out so this may be a dumb question, but is there anything I'm doing wrong here?

Top
#188840 - 10/11/2003 15:31 Re: installing tclsh on an empeg [Re: ]
Roger
carpal tunnel

Registered: 18/01/2000
Posts: 5683
Loc: London, UK
One thing you need to be aware of is that it might have run out of disk space -- did you see any errors when unpacking it?

Can you do the following steps and post the output?

df /
echo $PATH
ls -ld /usr/bin
ls -l /usr/bin

The first tells us whether you ran out of disk space on the root partition. The second tells us where it'll be looking for executables. The third tells us about your /usr/bin directory itself. The fourth tells us about what's in your /usr/bin directory.
_________________________
-- roger

Top
#188841 - 10/11/2003 15:48 Re: installing tclsh on an empeg [Re: Roger]
Anonymous
Unregistered


I didn't get any errors when unpacking it. I think I may see the problem. I had mistakenly put data.tar.gz in /usr and ran the tar command from there, so there's actually a /usr/usr/bin instead of /usr/bin. I'm not sure if that makes a difference or not. Anyhow, here are the results from those commands.

empeg:/empeg/bin# df /

df: Warning: cannot read table of mounted filesystems: No such file or directory

Filesystem 1k-blocks Used Available Use% Mounted on
- 15863 13949 1914 88% /
empeg:/empeg/bin# echo $PATH
/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin:/empeg/bin
empeg:/empeg/bin# ls -ld /usr/bin
ls: /usr/bin: No such file or directory
empeg:/empeg/bin# ls -ld /usr/usr/bin
drwxr-xr-x 2 0 0 1024 Jul 31 11:01 /usr/usr/bin
empeg:/empeg/bin# ls -l /usr/usr/bin
total 4
-rwxr-xr-x 1 0 0 3448 Jul 31 11:01 tclsh8.4


If that is the problem, should I just try it again from the root directory?

Top
#188842 - 10/11/2003 15:52 Re: installing tclsh on an empeg [Re: ]
Roger
carpal tunnel

Registered: 18/01/2000
Posts: 5683
Loc: London, UK
Yeah. .deb packages expect to be installed from the root directory.

Remove the (broken) installation by:

rm -r /usr/usr.

Alternatively, you can fix it by mv /usr/usr/* /usr, which should sort it out.


Edited by Roger (10/11/2003 15:54)
_________________________
-- roger

Top
#188843 - 10/11/2003 15:53 Re: installing tclsh on an empeg [Re: ]
wfaulk
carpal tunnel

Registered: 25/12/2000
Posts: 16706
Loc: Raleigh, NC US
3.5k for tclsh? Is that right?

For now, try running "/usr/usr/bin/tclsh8.4" and see if it works. If so, do a "rm -rf /usr/usr" and then re-extract the tar file as you suggested.
_________________________
Bitt Faulk

Top
#188844 - 10/11/2003 16:11 Re: installing tclsh on an empeg [Re: ]
Anonymous
Unregistered


Alright, so now it is at least running it, but...

empeg:/usr/bin# tclsh8.4

tclsh8.4: error in loading shared libraries: libgcc_s.so.1: cannot open shared object file: No such file or directory


I suppose I will need to download another package?


Edited by d33zY (10/11/2003 16:25)

Top
#188845 - 10/11/2003 16:19 Re: installing tclsh on an empeg [Re: ]
Anonymous
Unregistered



Top
#188846 - 10/11/2003 16:23 Re: installing tclsh on an empeg [Re: ]
Anonymous
Unregistered


or maybe t/tcllib? What the hell, I'll just put them both in.

Top