Problem with source command while installing Xilinx ISE

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

what do i do now?

ls /opt/Xilinx/14.7/ISE_DS/settings64.sh

Returns?
If it isn’t executable:

sudo chmod +x /opt/Xilinx/14.7/ISE_DS/settings64.sh

image
nothing changed. I hope I uploaded the picture correctly

Don’t post pictures, post text with code tags e.g.
```
Text here
```
Gives:

Text here

Can you post the results of:

cat /opt/Xilinx/14.7/ISE_DS/settings64.sh

Please.

Im sorry.

cat /opt/Xilinx/14.7/ISE_DS/settings64.sh

gives

# 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

The error is on line 12, but I am struggling to understand the script:

   if [ "$0" == "ksh" ]; then

$0 is normally the name of the script, ksh is the korn shell, not used by EnOS, I cannot see the problem :frowning:

:frowning: thank you for your help. i guess i will use windows just to run this software

What does it do?

We will use it in our lab class (university) to design logic systems i guess

i already have win10 installed as dual boot with another ssd but i just like to use linux

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]$ 

So ZSH - error line 12

BASH - No errors!!!

1 Like

i use zsh too. I asked google bard and it said download the xilinx-ise package from aur and try installing with

makepkg -si

so my route is like that:

1)Download the PKGBUILD file for the xilinx-ise package from the AUR:

wget https://aur.archlinux.org/cgit/aur.git/snapshot/xilinx-ise.tar.gz

2)Extract the PKGBUILD file to a directory:

tar xf xilinx-ise.tar.gz

(just runned this command and it extacted into home folder.

3)Navigate to the directory where you extracted the PKGBUILD file:

cd xilinx-ise

4)Build and install the package:

makepkg -si

Then I am able to run it from startup menu searching for xilinx

I needed to install .tar file from the official download page of xilinx and move it to the xilinx-ise directory and everything worked perfect!

1 Like

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.