Nios® V/II Embedded Design Suite (EDS)
Support for Embedded Development Tools, Processors (SoCs and Nios® V/II processor), Embedded Development Suites (EDSs), Boot and Configuration, Operating Systems, C and C++
12652 Discussions

ubuntu 11.10 quartus install "./setup: 1: Syntax error: "&" unexpected"

Altera_Forum
Honored Contributor II
1,787 Views

FWIW, I ran into this installation script failure when installing the quartus 11.1 sp2 into ubunto 11.10. 

 

bash 11.1sp2_259_quartus_free_linux.sh 

Creating directory 11.1sp2_259_quartus_free_linux 

Verifying archive integrity... All good. 

Uncompressing Quartus II Web Edition (Free)................................................................................................................................................................................................... 

./setup: 1: Syntax error: "&" unexpected 

 

The workaround was to change directory to where the archive is being expanded (on my system this was "~/11.1sp2_259_quartus_free_linux") and type this command. 

 

bash ./setup
0 Kudos
7 Replies
Altera_Forum
Honored Contributor II
683 Views

Another workaround would be to change /bin/sh to point to /bin/bash

0 Kudos
Altera_Forum
Honored Contributor II
683 Views

I'm have the same problem with quartus 11.1 sp2 on ubuntu 10.04 LTS! Solutions?

0 Kudos
Altera_Forum
Honored Contributor II
684 Views

haulisson, 

 

Same workaround might work in your situation. 

 

The workaround was to change directory to where the archive is being expanded (on my system this was "~/11.1sp2_259_quartus_free_linux") and type this command. 

 

bash ./setup  

 

Note that "~" is a pseudonym for the home directory on UNIX systems. 

 

Jeff
0 Kudos
Altera_Forum
Honored Contributor II
683 Views

I find the error.  

My Ubuntu 10.04 LTS don't have the sch and ie32-lib. I only install this two components that installation work fine here.  

I already using the command " Bash ./11.1_173_quartus_linux.sh and bash ./setup 

 

THX JeffreyOHill
0 Kudos
Altera_Forum
Honored Contributor II
683 Views

FWIW, now I am installing Altera 12.0 into Ubuntu and there are problems which the above workaround doesn't address (the installer GUI seems to be unable to find the Altera installer files). 

 

This time my workaround was to edit altera_installer.external.sh 

 

line 11 before: 

 

script="./setup" 

 

line 11 after: 

 

script="bash ./setup"
0 Kudos
Altera_Forum
Honored Contributor II
683 Views

Isn't this all just related to the fact that Ubuntu uses /bin/dash not /bin/bash as the default "/bin/sh" (Bourne Shell)? 

 

Wouldn't it be easier to just make the "/bin/sh" soft link point to /bin/bash? I think Ubuntu even provides an automated way to do this, but it's easy enough to just create the link yourself. 

 

Or am I way off? :-)
0 Kudos
Altera_Forum
Honored Contributor II
684 Views

> Wouldn't it be easier to just make the "/bin/sh" soft link  

> point to /bin/bash? I think Ubuntu even provides an  

> automated way to do this, but it's easy enough to just  

> create the link yourself. 

 

That's a somewhat more intrusive solution as _all_  

software, i.e. software not from Altera, running on the  

system is impacted.  

 

Since you bring up the idea of optimizing the solution ;-), 

IMHO, the best solution would be for Altera to change the 

first line of their install scripts specifying "#!/bin/bash" 

instead of "#!/bin/sh" if bash is in fact the type of script 

dialect that is being written.
0 Kudos
Reply