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++
12603 Discussions

Quartus "export: 137 ... bad variable name" error

Altera_Forum
Honored Contributor II
2,651 Views

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.
0 Kudos
8 Replies
Altera_Forum
Honored Contributor II
1,042 Views

my guess is a problem with dash. can you install bash and try: 

 

/opt/altera/10.0sp1/quartus/bin$ bash quartus
0 Kudos
Altera_Forum
Honored Contributor II
1,042 Views

try this it would be succesfull

0 Kudos
Altera_Forum
Honored Contributor II
1,042 Views

But How thats the question

0 Kudos
Altera_Forum
Honored Contributor II
1,042 Views

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.
0 Kudos
Altera_Forum
Honored Contributor II
1,042 Views

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

0 Kudos
Altera_Forum
Honored Contributor II
1,042 Views

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.
0 Kudos
Altera_Forum
Honored Contributor II
1,042 Views
0 Kudos
Altera_Forum
Honored Contributor II
1,042 Views

[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!
0 Kudos
Reply