UPGRADE YOUR BROWSER

We have detected your current browser version is not the latest one. Xilinx.com uses the latest web technologies to bring you the best online experience possible. Please upgrade to a Xilinx.com supported browser:Chrome, Firefox, Internet Explorer 11, Safari. Thank you!

AR# 51582

Vivado - Error "tcl Error: Can't find a usable init.tcl in the following directories: /Tcl/dist/export/lib/tcl8.4"

Description

Invoking a non-Xilinx Tcl shell with the Xilinx directory in the path or LD_LIBRARY_ PATH causes the following error:

"% tcl Error: Can't find a usable init.tcl in the following directories: $Xilinx/env/TOS/Tcl/dist/export/lib/tcl8.4 $Xilinx/env/TOS/Tcl/dist/export/lib/tcl8.4  
This probably means that Tcl wasn't installed properly.  
while executing "error $msg" (procedure "tclInit" line 42) invoked from within "tclInit"  
while initializing application (Tcl_AppInit?)"
 
On 64-bit environments, having $XILINX/lib/$Lin64 in the LD_LIBRARY_PATH causes a conflict with a Tcl/Tk setup script for Git.

It makes no difference if the path is at the beginning or end of the LD_LIBRARY_PATH line.

For example:

x001:~% git gui
Application initialization failed: Can't find a usable init.tcl in the following
directories:
/tools/xilinx/env/TOS/Tcl/dist/export/lib/tcl8.4 /build/xfndry10/O. 76xd/env/TOS/Tcl/dist/export/lib/tcl8.4

This probably means that Tcl wasn't installed properly.

Error in startup script: invalid command name "tk_messageBox"
while executing
"tk_messageBox -icon error -type ok -title "git-gui: fatal error" -message $ err"
invoked from within
"if {[catch {package require Tcl 8.4} err]
|| [catch {package require Tk 8.4} err]
} {
catch {wm withdraw .}
tk_messageBox \
-icon error \
-typ..."
(file "/ede/git_1.7.5_a/linux.rh5/libexec/git-core/git-gui" line 34).

Most Xilinx setup scripts will add the xilinx install directories to the LD_LIBRARY_PATH variable setting. 

How can this issue be avoided?

Solution

This error can occur if the system in use has multiple Tcl shells. 

The problem has been seen before where a user sources the .settings file in their .cshrc.  

This will not cause an issue if only the Xilinx Tcl is used or when using Xilinx Applications.  

However, it will likely lead to the above error if other Tcl/Tk shells are used. 

Users should not add xilinx to their LD_LIBRARY_PATH, but instead rely on the loaders (Vivado and ISE DS applications have boot loaders) to set up the necessary environment needed to run the application.

NOTE: The Vivado Tcl shell can be opened by running "vivado -mode tcl"

AR# 51582
Date Created 08/31/2012
Last Updated 06/03/2014
Status Active
Type General Article
Tools
  • Vivado Design Suite