I am trying to install Xilinx on my laptop and on the wiki.archlinux page it says after installing source the settings64.sh script before trying to open Xilinx ISE. But when I copy the code to the terminal I get this
source /opt/Xilinx/14.7/ISE_DS/settings64.sh
/opt/Xilinx/14.7/ISE_DS/settings64.sh:12: = not found
# Copyright (c) 1995-2013 Xilinx, Inc. All rights reserved.
XIL_ARG_=$_
SETTINGS_FILE=.settings64.sh
XIL_SCRIPT_LOC="/opt/Xilinx/14.7/ISE_DS"
if [ $# != 0 ]; then
# The first argument is the location of Xilinx Installation.
# Don't detect the installation location.
XIL_SCRIPT_LOC="$1"
else
# XIL_SCRIPT_LOC should point to script location
if [ "$0" == "ksh" ]; then
XIL_SCRIPT_LOC_TMP_UNI=`readlink -f ${XIL_ARG_}`
else
XIL_SCRIPT_LOC_TMP_UNI=$BASH_SOURCE
fi
XIL_SCRIPT_LOC_TMP_UNI=${XIL_SCRIPT_LOC_TMP_UNI%/*}
if [ "$XIL_SCRIPT_LOC_TMP_UNI" != "" ]; then
if [ "$XIL_SCRIPT_LOC_TMP_UNI" == "settings64.sh" ]; then
XIL_SCRIPT_LOC_TMP_UNI="./"
fi
XIL_SCRIPT_LOC_TMP_UNI=`readlink -f ${XIL_SCRIPT_LOC_TMP_UNI}`
if [ $? == 0 ]; then
XIL_SCRIPT_LOC=${XIL_SCRIPT_LOC_TMP_UNI}
fi
fi
unset XIL_SCRIPT_LOC_TMP_UNI
fi
xlnxInstLocList=""
xlnxInstLocList="${xlnxInstLocList} common"
xlnxInstLocList="${xlnxInstLocList} EDK"
xlnxInstLocList="${xlnxInstLocList} PlanAhead"
xlnxInstLocList="${xlnxInstLocList} ISE"
XIL_SCRIPT_LOC_TMP_UNI=${XIL_SCRIPT_LOC}
for i in $xlnxInstLocList
do
d="${XIL_SCRIPT_LOC_TMP_UNI}/$i"
sfn="$d/$SETTINGS_FILE"
if [ -e "$sfn" ]; then
echo . "$sfn" "$d"
. "$sfn" "$d"
fi
done
What are you using as your shell? I use zsh and I think that may be the problem, if I run bash:
➡ 15:02 in ~/scripts ➜ source /opt/Xilinx/14.7/ISE_DS/settings64.sh
/opt/Xilinx/14.7/ISE_DS/settings64.sh:12: = not found
➡ 15:02 in ~/scripts ➜ source /opt/Xilinx/14.7/ISE_DS/settings64.sh
/opt/Xilinx/14.7/ISE_DS/settings64.sh:12: = not found
Change to BASH >>>>>>>>>>>>>>>>>>>>
➡ 15:02 in ~/scripts ➜ bash
[xircon@xircon-legion scripts]$ source /opt/Xilinx/14.7/ISE_DS/settings64.sh
[xircon@xircon-legion scripts]$