Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
13 years ago

cannot execute quartus_sh in command line

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?

6 Replies

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    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
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

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

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    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
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    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.

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    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
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    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.