赛灵思
直播中

杨勇

8年用户 1271经验值
私信 关注
[问答]

WebPACK 12.4和环境变量

大家好,
我刚刚安装了WebPACK 12.4并注意到环境没有设置好
正确。
(我所做的只是在已安装的ISE_DS目录中执行'source settings64.sh'。)
问题是settings64.sh脚本没有正确获取脚本位置,它
最后留下脚本文件名。
快速解决方法是应用以下补丁:
@@ -18,7 +18,7 @@ if [“$ XIL_SCRIPT_LOC_TMP_UNI”!=“”];
那么XIL_SCRIPT_LOC_TMP_UNI =`readlink -f $ {XIL_SCRIPT_LOC_TMP_UNI}`如果[$?
== 0];
那么 -  XIL_SCRIPT_LOC = $ {XIL_SCRIPT_LOC_TMP_UNI} + XIL_SCRIPT_LOC =`dirname $ {XIL_SCRIPT_LOC_TMP_UNI}`fi fi unset XIL_SCRIPT_LOC_TMP_UNI_TAIL
通过此更改,环境设置正确,一切正常。
我假设应该对32位系统的脚本进行相同的更改。

以上来自于谷歌翻译


以下为原文

Hello all,

I've just installed WebPACK 12.4 and noticed that the environment does not get set up
correctly. (What I did was just execute 'source settings64.sh' in the installed ISE_DS directory.)
The problem is that the settings64.sh script does not get the script location correctly, it
leaves the script filename at the end. A quick fix is to apply the following patch:

@@ -18,7 +18,7 @@
    if [ "$XIL_SCRIPT_LOC_TMP_UNI" != "" ]; then
       XIL_SCRIPT_LOC_TMP_UNI=`readlink -f ${XIL_SCRIPT_LOC_TMP_UNI}`
       if [ $? == 0 ]; then
-         XIL_SCRIPT_LOC=${XIL_SCRIPT_LOC_TMP_UNI}
+         XIL_SCRIPT_LOC=`dirname ${XIL_SCRIPT_LOC_TMP_UNI}`
       fi
    fi
    unset XIL_SCRIPT_LOC_TMP_UNI_TAIL


With this change, the environment gets set up correctly and everything works fine.
I assume the same change should be done to the script for 32-bit systems.

回帖(1)

李剑

2018-11-26 15:12:03
感谢您的反馈。
虽然脚本按原样为许多客户工作,但希望您的帖子可以帮助其他人不这样做。
-------------------------------------------这个空间故意留空

以上来自于谷歌翻译


以下为原文

thanks for the feedback.  while the script works as-is for many customers, hopefully your post will help someone else where it doesn't.-------------------------------------------
this space intentionally left blank
举报

更多回帖

发帖
×
20
完善资料,
赚取积分