説明
パスまたは LD_LIBRARY_ PATH にザイリンクス ディレクトリが含まれている状態でザイリンクスのものでない Tcl シェルを実行すると、次のようなエラー メッセージが表示されます。
"% 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?)"
64 ビットの環境では、LD_LIBRARY_PATH に $XILINX/lib/$Lin64 が含まれていると、git の Tcl/Tk セットアップ スクリプトで問題が発生します。
このパスが LD_LIBRARY_PATH 行の冒頭にあっても末尾にあっても、変わりはありません。
次に例を示します。
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).
ほとんどのザイリンクス セットアップ スクリプトで、LD_LIBRARY_PATH 環境変数設定にザイリンクス インストール ディレクトリは追加されます。
この問題を回避するにはどうすればよいでしょうか、
ソリューション
使用しているシステムに複数の Tcl シェルがあるとこのエラーが発生します。
ユーザーの .cshrc で .settings ファイルを呼び出すとこの問題が発生することが以前確認されています。
ザイリンクスの Tcl のみを使用する場合、またはザイリンクス アプリケーションを使用している場合には問題ありません。
しかし、ほかの Tcl/Tk シェルが使用されている場合は、上記のエラーが発生する可能性が高くなります。
LD_LIBRARY_PATH にザイリンクス ディレクトリを追加せず、ローダーを使用してアプリケーション実行に必要な環境を設定してください (Vivado および ISE DS アプリケーションにはブート ローダーがある)。
注記 : Vivado Tcl シェルは「vivado -mode tcl」を実行すると開きます。