Intel® Quartus® Prime Software
Intel® Quartus® Prime Design Software, Design Entry, Synthesis, Simulation, Verification, Timing Analysis, System Design (Platform Designer, formerly Qsys)
17254 Discussions

cannot execute quartus_sh in command line

Altera_Forum
Honored Contributor II
8,849 Views

Hi, 

Why I cannot run quartus_sh --flow compile top_level.v in my command prompt? the error message shown is  

 

'quartus_sh' is not recognized as an internal or external command, operable program or batch file. 

can anyone help me?
0 Kudos
6 Replies
Altera_Forum
Honored Contributor II
6,687 Views

Have you set your PATH environment variable to the bin directory of your quartus? Try this and then re-run 

 

Considering you're using Linux: 

export PATH=$PATH:<installed_quartus_directory>/<version>/quartus/bin
0 Kudos
Altera_Forum
Honored Contributor II
6,687 Views

thank for reply, I am using windows, so "export PATH=$PATH:<installed_quartus_directory>/<version>/quartus/bin" command should be taip at where?

0 Kudos
Altera_Forum
Honored Contributor II
6,687 Views

Try this steps for windows 

 

1) Open up your command prompt (cmd) 

2) Type set PATH=%PATH%;C:\altera\12.1\quartus\bin 

 

Change the back party of the PATH after ';' according to your quartus installation directory 

 

Then try to run quartus_sh again
0 Kudos
Altera_Forum
Honored Contributor II
6,687 Views

Thank, I can set the path, but i don't know how to remove the 32bits path. However, i exchange the name of bin64 with bin and it is work. It run version 64bits in command prompt.

0 Kudos
Altera_Forum
Honored Contributor II
6,687 Views

There is actually another way to set or remove certain paths from your environment variable. In windows, 

 

1) Open Control Panel --> Systems --> Advanced system settings --> 'Advanced' Tab --> Environment variables 

2) Look for Path and click 'Edit' 

3) Type the path manually and/or remove the ones you don't want
0 Kudos
Altera_Forum
Honored Contributor II
6,687 Views

Yes, I am using this way, but is it same as when i type "path" in my command prompt? because when i type path in my command prompt, it show many applicationpath like MATLAB or other, but if i open environment variables, i only can see modelsim and quartus path.

0 Kudos
Reply