swarm-support
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: tcl help.


From: Ken Cline
Subject: Re: tcl help.
Date: Tue, 10 Jun 1997 12:22:28 -0400 (EDT)

On Thu, 5 Jun 1997, Nasty Ace wrote:

> hi!
> 
> downloaded swarm onto redhat linux 4.1 a week or two back.
> 
> while trying to run the swarm tutorials i ran into some problems. 
> 
> after compiling fine, when i tried to run the executables "Bug" it gave 
> me an error message telling me that it could not find a usable init.tcl 
> in a list of 4 directories it spewed at me.  
> 
> but looking in the first of the four, i found a copy of init.tcl.  
> thinking that it needed to find it in all four (unlikely, but i was 
> desperate), i created the three other directories it was looking for and 
> dumped a copy of the init.tcl in all of them.
> 
> it still gives me the same error. 
> 
> can anyone help?  thankz in advance.

===============================================================

I think you'll describing a problem other people have had...

I had sent the following email to mailing list last week but
have yet to see it appear.  (It is sort of a history of
the init.tcl problem with suggested solutions type of
thing.)

I hope this helps...

      - Ken


---------- Forwarded message ----------
Date: Fri, 6 Jun 1997 21:58:34 -0400 (EDT)
From: Ken Cline <address@hidden>
To: swarm-support <address@hidden>
Subject: Re: Swarm tcl error on solaris


On Wed, 28 May 1997, Robert Hargraves Kewley Jr. wrote:

> Help!
> 
> I am a new user at Rensselaer Polytechnic Institute.  I
> have successfully succeeded in installing Swarm and
> running applications on my Linux system.
>
> However, when I installed it on a solaris system, it
> compiled correctly, and I was able to compile demo
> applications, but when I ran either "heatbugs" or 
> "template" I got the following error:
> 
> error: TkExtra (instance)
> Can't find a usable init.tcl in the following directories:
>     /usr/local/lib/tcl7.5 ./lib/tcl7.5 ./tcl7.5/library ./library
> This probably means that Tcl wasn't installed properly.
> 
>     while executing
> "error $msg"
>     (procedure "init" line 30)
>     invoked from within
> "init"
> Abort (core dumped)
> 
> I found a file called init.tcl in my swarm-1.0.1/lib directory, but I do not
> know how to tell the procedure init to look there.  I am actively seeking
> experts here to solve the problem, but any help would be greatly appreciated.
> 
> Thanks.
> 
> Rob Kewley

====================================

Deja vu...

(I was hunting thru the mailing list archive for a solution
to my own install problems and I happened upon you post...
Hmmmm.... I said to myself "Boy! I know I've seen another
post with this very same problem?"  And so I had...)

The following are excerpts from other swarm-support posts
that (to me) seemed related to your problem...  I hope they
help...

      - Ken.


----------
1.
http://www.santafe.edu/projects/swarm/archive/list-archive.9702/0322.html

run time error

Peter Liang (address@hidden)
Wed, 26 Feb 1997 10:31:11 -0800 

Hi, all

I have problem running program examples with the following
error messages:

Cannot find a usable init.tcl in the following directories:
/usr2/opt/apps/lib/tcl7.6 ...
this probably means that Tcl wasn't install properly

while executing
"error $msg"
(procedure "tclInit" line 30)
invoked from within
tclInit
IOT trap (core dumped)

Peter

----------
2.
http://www.santafe.edu/projects/swarm/archive/list-archive.9702/0324.html

run time error

glen e. p. ropella (address@hidden)
Wed, 26 Feb 1997 11:48:31 -0700 

liang> Hi, all I have problem running program examples with
liang> the following error messages:

liang> Cannot find a usable init.tcl in the following
liang> directories: /usr2/opt/apps/lib/tcl7.6 ... this
liang> probably means that Tcl wasn't install properly

This is because tcl can't find the libraries. Supposedly,
someone told Tcl, during compilation probably, that it 
would find its library files in /usr2/opt/apps/lib/tcl7.6 or
somesuch.

You can fix this by first finding those libraries (a 
find / -name init.tcl -print should do the trick), then
setting the environment variable TCL_LIBRARY equal to the
path where you found that file. The same should probably
be done for Tk.

glen

----------
3.
http://www.santafe.edu/projects/swarm/archive/list-archive.9702/0329.html

Re: run time error

Pietro Terna (address@hidden)
Wed, 26 Feb 1997 23:10:08 +0100 

Dear Peter,

I hade exactly the same problem (using swarm in a Linux box,
with bash shell).  You have to put .profile file in your
home directory (it will be excuted at login time).

The contents of the file are (useful only for the bash
shell):

TK_LIBRARY=/home/your_name/the_dir_where_you_have_swarm/lib
export TK_LIBRARY
TCL_LIBRARY=/home/your_name/the_dir_where_you_have_swarm/lib
export TCL_LIBRARY

In my liux box, this is

TK_LIBRARY=/home/terna/swarm/swarm/lib
export TK_LIBRARY
TCL_LIBRARY=/home/terna/swarm/swarm/lib
export TCL_LIBRARY

I hope this help will be useful. Pietro

At 10..31 26/02/97 -0800, you wrote:
> Hi, all
>
> I have problem running program examples with the following
> error messages:
>
> Cannot find a usable init.tcl in the following
> directories: /usr2/opt/apps/lib/tcl7.6 ...
> this probably means that Tcl wasn't install properly
>
> while executing
> "error $msg"
> (procedure "tclInit" line 30)
> invoked from within
> tclInit
> IOT trap (core dumped)
>
> Peter


----------
4.
http://www.santafe.edu/projects/swarm/archive/list-archive.9702/0331.html

Re: run time error

Peter Liang (address@hidden)
Wed, 26 Feb 1997 15:26:19 -0800 

glen e. p. ropella wrote:
> 
> liang> Hi, all I have problem running program examples
> liang> with the following error messages:
> 
> liang> Cannot find a usable init.tcl in the following
> liang> directories: /usr2/opt/apps/lib/tcl7.6 ... this
> liang> probably means that Tcl wasn't install properly
> 
> This is because tcl can't find the libraries. Supposedly,
> someone told Tcl, during compilation probably, that it
> would find its library files in /usr2/opt/apps/lib/tcl7..6
> or somesuch.
> 
> You can fix this by first finding those libraries (a
> find / -name init.tcl -print should do the trick), then
> setting the environment variable TCL_LIBRARY equal to the
> path where you found that file. The same should probably
> be done for Tk.
> 
> glen

Thanks Glen,

After I set TCL_LIBRARY and TK_LIBRARY paths, the examples
ran.

Thanks for other's responses as well.

Peter

----------
5.
http://www.santafe.edu/projects/swarm/archive/list-archive.9704/0142.html

Long suffering of Redhat 4.1 user with tcl7.6/tk4.2

Paul Johnson (address@hidden)
Wed, 16 Apr 1997 21:56:20 -0500 ()

[ Ken: This post is quite long so I didn't include it here,
however Mr. Johnson did encounter a similar while trying to
get Swarm up and going... ]

error: TkExtra (instance)
Can't find a usable init.tcl in the following directories: 
/usr/local/lib/tcl7.5 ./lib/tcl7.5 //tcl7.5/library
/swarmapps/library
This probably means that Tcl wasn't installed properly.

while executing
"error $msg"
(procedure "init" line 29)
invoked from within
"init"

-----------
6.
http://www.santafe.edu/projects/swarm/archive/list-archive.9704/0143.html

Re: Long suffering of Redhat 4.1 user with tcl7.6/tk4.2

Mattias V. Bertelsen (address@hidden)
Thu, 17 Apr 1997 00:09:02 -0500 (CDT) 

On Wed, 16 Apr 1997, Paul Johnson wrote:

> error: TkExtra (instance)
> Can't find a usable init.tcl in the following directories: 
> /usr/local/lib/tcl7.5 ./lib/tcl7.5 //tcl7.5/library
/swarmapps/library
> This probably means that Tcl wasn't installed properly.
> 
> while executing
> "error $msg"
> (procedure "init" line 29)
> invoked from within
> "init"

This I'm not sure about, but it does have something to do
with your tcl installation. If you've installed your own
tcl7.6 and tk4.2, the stuff will all be below /usr/local (If
you used the defaults). Problem is, you've probably still
got the original redhat installation in there, which goes in
/usr/lib/tcl* or /usr/lib/tk*. Try running the command 

locate init.tcl

and see how many you have and where they are. 

Hope this helps!

Mattias V. Bertelsen

----------
7.
http://www.santafe.edu/projects/swarm/archive/list-archive.9704/0156.html

Re: Long suffering of Redhat 4.1 user with tcl7.6/tk4.2

Douglas Orr (address@hidden)
Fri, 18 Apr 1997 09:42:50 -0600 

Hi,

I don't know if anyone got back to you on this already, but
I can probably comment on the binary install a little.

There are copies of the appropriate *.tcl and include files
included in $SWARMHOME/lib and $SWARMHOME/include that are
appropriate to the tcl/tk code that's baked into Swarm.x
(the mother of all executables). You need to set your
environment variables to point there as indicated in the
readme files or you'll get the sorts of runtime errors you
saw. (I don't have them handy, but I think it's TK_LIBRARY,
TCL_LIBRARY, and maybe BLT_LIBRARY?)

Since these values are appropriate for running the swarm
binaries that already have particular versions baked into
them, so they may need to be set different from values
you're currently using before launching Swarm... you might
want some sort of a shell that sets them specially, if you
have conflicts...

-Doug

==================================================

Good Luck!


_________________________________________________________
Ken Cline                             address@hidden
SAIC                                 VOICE (410) 571-0413
Annapolis, MD                          FAX (301) 261-8427



                  ==================================
   Swarm-Support is for discussion of the technical details of the day
   to day usage of Swarm.  For list administration needs (esp.
   [un]subscribing), please send a message to <address@hidden>
   with "help" in the body of the message.
                  ==================================


reply via email to

[Prev in Thread] Current Thread [Next in Thread]