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# 60088

Install - Vivado installer does not work on Ubuntu 13 and returns the error "./xsetup: 3: [: .: unexpected operator"

Description

When installing Vivado 2014.1 and later on Ubuntu, an error is received after launching the .bin.

username@UnameNet01:~/Downloads$ ./Xilinx_Vivado_SDK_2014.1_0303_1_Lin64.bin
Verifying archive integrity... All good.
Uncompressing Xilinx Installer...........................................................................................................
./xsetup: 3: [: .: unexpected operator
./xsetup: 12: [: 64: unexpected operator
./xsetup: 37: [: unexpected operator
./xsetup: 25: ./xsetup: ./tps/lnx32/jre/bin/java: not found


This is only received with the new small web-installer, not when installing from the full production install image.

Solution

Although this issue has only been seen on an unsupported OS (Ubuntu  13) this Answer Record is provided in case the error occurs on other operations systems as well.

Xilinx assumes a bash shell on top of the xsetup script but Ubuntu and variants such as Mint use dash. 

If you have super user privileges, you should be able to work around this issue using the following commands:
$ cd /bin
$ sudo rm sh
$ ln -s bash sh
$ cd ~/Downloads
$ chmod +x ./Xilinx_Vivado_SDK_2014.1_0405_1_Lin64.bin
$ sudo ./Xilinx_Vivado_SDK_2014.1_0405_1_Lin64.bin
 
The shell can then be changed back to dash if required.


AR# 60088
Date Created 04/02/2014
Last Updated 03/13/2015
Status Active
Type General Article
Tools
  • Vivado Design Suite - 2014.1