TclTk failed after upgrade to 9.10 in XVnc Session
2013-01-11 10:56
190 查看
5 Cups of Ubuntu Join Date: Jan 2007 Beans: 33 | TclTk failed after upgrade to 9.10 in XVnc Session Hello, I am running a machine under ubuntu since 6.10. This computer is headless & I am using XVnc in order to have multiple resumeable sessions available for different users. I've done the upgrade from 9.04 to 9.10 yesterday & I am experiencing a big trouble. One of my application which is running in TclTk is not longer working. I get the following message : Code: Tk initialization failed: Can't find a usable tk.tcl in the following directories: /opt/modelsim/6.5b/linux_x86_64/../tcl/tk8.4 /opt/modelsim/6.5b/linux_x86_64/../tcl/tcl8.4/tk8.4 /opt/modelsim/current/bin/../lib/tk8.4 /opt/modelsim/current/bin/../linux_x86_64/tk8.4 /opt/modelsim/current/bin/lib/tk8.4 /opt/modelsim/current/bin/../library /opt/modelsim/current/bin/library /opt/modelsim/current/bin/tk8.4.14/library /opt/modelsim/current/tk8.4.14/library /opt/modelsim/6.5b/linux_x86_64/../tcl/tk8.4/tk.tcl: can't access "::tk::Priv.::ffff:127.0.0.1:7": parent namespace doesn't exist can't access "::tk::Priv.::ffff:127.0.0.1:7": parent namespace doesn't exist while executing "upvar #0 ::tk::Priv.::ffff:127.0.0.1:7 ::tk::Priv" ("uplevel" body line 1) invoked from within "uplevel #0 upvar #0 ::tk::Priv.$disp ::tk::Priv" (procedure "tk::ScreenChanged" line 9) invoked from within "tk::ScreenChanged [winfo screen .]" (file "/opt/modelsim/6.5b/linux_x86_64/../tcl/tk8.4/tk.tcl" line 284) invoked from within "source /opt/modelsim/6.5b/linux_x86_64/../tcl/tk8.4/tk.tcl" ("uplevel" body line 1) invoked from within "uplevel #0[list source $file]" This probably means that tk wasn't installed properly. The application is not the problem because If I try to run a small Tk script, I get the same kind of error. I am still able to run the application under the session opened from the computer (not XVnc session). If anyone has a clue to help me, I am open Thanks in advance ! [SOLVED !] Some tools use a broken tcl/tk opensource library (such as mentor modelsim). A fix has been suggested by Tristan Schmelcher to the maintainers (http://sourceforge.net/mailarchive/m...mail.gmail.com) -> Open the tk.tcl file and apply the following patch : Code: --- tk.tcl.8.5 2009-12-06 19:14:10.000000000 +0100 +++ tk.tcl.new 2009-12-06 19:19:04.000000000 +0100 @@ -248,7 +248,14 @@ set disp $screen } - uplevel #0 upvar #0 ::tk::Priv.$disp ::tk::Priv + # disp can legally contain "::", so we have to create the portion up to + # the last :: as a namespace. + set var_name ::tk::Priv.${disp} + set x [string last :: $var_name] + set namespace_name [string range $var_name 0 [expr {$x - 1}]] + namespace eval $namespace_name {} + + uplevel #0 upvar #0 $var_name ::tk::Priv variable ::tk::Priv global tcl_platform |
相关文章推荐
- Failed to start session after upgrade to 14.04
- 虚拟主机运行ASP错误解决:HTTP/1.1 New Application Failed when allowSessionState is set to false in web.config
- Fix failed to start session in Ubuntu
- 【Hibernate】failed to lazily,no session or session was closed,OpenSessionInViewFilter不生效
- Fix failed to start session in Ubuntu
- Failed to connect to 127.0.0.1:27017, in(checking socket for error after poll), Connection refused
- ORA-01196: file 1 is inconsistent due to a failed media recovery session
- Kafka之——kafka Failed to send messages after 3 tries 问题解决
- failed to lazily initialize a collection of role: no session or session was closed (Hibernate) 解决方法(延迟加载问题)
- Unable To Open Database After ASM Upgrade From Release 11.1 To Release 11.2
- null id in org.htss.messageservice.pojo.Task entry (don't flush the Session after an exception occur
- Failed to generate a user instance of SQL Server due to a failure in starting the process for the user instance. The connection
- FAILED: Error in metadata: MetaException(message:Got exception: java.net.ConnectException Call to ha
- You need tcl 8.5 or newer in order to run the Redis test
- org.hibernate.AssertionFailure: null id in xxx entry (don't flush the Session after an except)解决方法
- CodeIgniter 错误: In order to use the Session class you are required to set an encryption key
- How to solve "Failed to locate the Google Cloud Messaging" in ADF Mobile deployment
- Failed to establish session Error while Installing APKs
- Failed to resolve: com.github.chrisbanes:PhotoView:1.2.6 Show in File Show i
- org.hibernate.LazyInitializationException: failed to lazily initialize no session or session was clo