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++
12744 토론

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

Altera_Forum
명예로운 기여자 II
3,544 조회수

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 포인트
8 응답
Altera_Forum
명예로운 기여자 II
1,935 조회수

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

 

/opt/altera/10.0sp1/quartus/bin$ bash quartus
0 포인트
Altera_Forum
명예로운 기여자 II
1,935 조회수

try this it would be succesfull

0 포인트
Altera_Forum
명예로운 기여자 II
1,935 조회수

But How thats the question

0 포인트
Altera_Forum
명예로운 기여자 II
1,935 조회수

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 포인트
Altera_Forum
명예로운 기여자 II
1,935 조회수

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 포인트
Altera_Forum
명예로운 기여자 II
1,935 조회수

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 포인트
Altera_Forum
명예로운 기여자 II
1,935 조회수
0 포인트
Altera_Forum
명예로운 기여자 II
1,935 조회수

[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 포인트
응답