Forum Discussion
Altera_Forum
Honored Contributor
15 years agoQuartus "export: 137 ... bad variable name" error
When launching Quartus 10.0sp1 on ubuntu 32bit, i get the following error:
/opt/altera/10.0sp1/quartus/bin$ ./quartus export: 137: 2000.00: bad variable name At first the quartus worked as it should but then this error started to appear, terminating some launches. Now i can barely run Quartus 1 out of 10 or more times. Even after reinstall. As a side note. When i was able to run quartus, it always acted as on first run (shows intro splash, recent documents empty). I does however remember the location of my license file, even after reinstall.8 Replies
- Altera_Forum
Honored Contributor
my guess is a problem with dash. can you install bash and try:
/opt/altera/10.0sp1/quartus/bin$ bash quartus - Altera_Forum
Honored Contributor
try this it would be succesfull
- Altera_Forum
Honored Contributor
But How thats the question
- Altera_Forum
Honored Contributor
Thank you very much.
Indeed, i'm able to run quartus while specifying that the bash has to be used. Still, it segfaults when the gui has completely loaded. - Altera_Forum
Honored Contributor
have you tried searching the forum for Ubuntu? i recall similar reports but i'm not sure if they figured out what the problem was
- Altera_Forum
Honored Contributor
Thank you for letting me know. I did some brute mass search and one seemingly unrelated advice worked:
--- Quote Start --- I tried removing ~/.altera.quartus/ I also tried removing /tmp/mw_* --- Quote End --- (http://www.alteraforum.com/forum/showthread.php?t=6064) Now the Quartus even remembers my recent documents. I just hope it stays that way. - Altera_Forum
Honored Contributor
This should solve it:
http://www.alteraforum.com/forum/showthread.php?t=26807 - Altera_Forum
Honored Contributor
[SOLVED]: Here is how I did it.
Assume I have my installer at "/media/data/Archives/Gadgets-Apps/de0-nano-fpga-kit/design-suite/autorun" in my Ubuntu 14.04 64-bit system. First issue I faced: libz.so.1 not found. Run the following command to include the mentioned path to library path, which should fix this issue. # export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/media/data/Archives/Gadgets-Apps/de0-nano-fpga-kit/design-suite/autorun Second issue is the one this thread is talking about: " Quartus "export: 137 ... bad variable name" error" It is because of dash as default shell than bash. The following commands should fix it in Ubuntu 14.04. $ sudo update-alternatives --install /bin/sh sh /bin/bash 100 $ sudo update-alternatives --install /bin/sh sh /bin/dash 200 $ sudo update-alternatives --config sh While the above command prompts for default shell, select bash as default one. Then run the installer:# cd /media/data/Archives/Gadgets-Apps/de0-nano-fpga-kit/design-suite/autorun# ./autorun This should get it done!