Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Altera_Forum
Honored Contributor I
1,202 Views

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

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 I
99 Views

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

Altera_Forum
Honored Contributor I
99 Views

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

Altera_Forum
Honored Contributor I
99 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
Altera_Forum
Honored Contributor I
99 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
Altera_Forum
Honored Contributor I
99 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"
Altera_Forum
Honored Contributor I
99 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? :-)
Altera_Forum
Honored Contributor I
99 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.
Reply