Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

package tk is not loaded statically

Status
Not open for further replies.

adekunleadekoya

Programmer
May 19, 2008
30

/***********************
socket -server Accept 7000

proc Accept { sock addr port} {
server_delete_interp $sock
interp create interp_$sock
load {} tk interp_$sock

}
*************************/

I run the above tcl/tk code.

I effected a telnet connection to the server from another machine and the server responded with an error message that goes thus " package tk is not loaded statically ".

I suppose the tk package that encapsulates the tcl/tk interpreter is not loaded ?

Any walkaround to solving this ?

 
i have solved this

i just added this line
/*******************
package require Tk
********************/

Tanks



 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top