AR# 60088

|

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

描述

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.

解决方案

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
日期 03/13/2015
状态 Active
Type 综合文章
Tools
People Also Viewed