5.5.1. Setting Quartus® Prime Environment Variables - The Quartus® Prime software installation process initializes environment variables. In specific cases, you can take advantage of modifying these variables. - 2026-10-16

Altera® FPGA Software Installation and Licensing

Version
26.1
Product Type
Device Families > Agilex Families > Agilex 5
Device Families > Agilex Families > Agilex 5 > E-Series
Development Software and Tools > AI Development Tools > FPGA AI Suite
Device Families > Cyclone Families > Cyclone IV
Device Families > Agilex Families > Agilex 7
Device Families > Agilex Families > Agilex 3
Development Software and Tools > IP Development Tools > DSP Builder
Device Families > Stratix Families > Stratix IV
Device Families > Stratix Families
Device Families > Stratix Families > Stratix V
Device Families > Agilex Families > Agilex 7 > I-Series
Device Families > Cyclone Families > Cyclone 10
Device Families > Agilex Families > Agilex 7 > M-Series
Development Software and Tools > FPGA Design & Simulation Tools > Quartus Prime Design Software > Pro Edition
Device Families > MAX Families > MAX 10
Device Families > Agilex Families > Agilex 7 > F-Series
Device Families > MAX Families > MAX II
Device Families > Cyclone Families > Cyclone 10 > Cyclone 10 LP
Device Families > Stratix Families > Stratix 10
Development Software and Tools > FPGA Design & Simulation Tools > Quartus Prime Design Software
Device Families > Cyclone Families
Development Software and Tools > Embedded Design Tools & Software > ARM SoC EDS
Device Families > Arria Families
Development Software and Tools > Embedded Design Tools & Software > Nios V
Device Families > MAX Families
Device Families > Agilex Families > Agilex 3 > C-Series
Device Families > Agilex Families
Development Software and Tools > FPGA Design & Simulation Tools > Questa* - Altera FPGA Edition
Device Families > Cyclone Families > Cyclone V
Development Software and Tools > Embedded Design Tools & Software > Intel Simics Simulator for Altera FPGAs
Device Families > Cyclone Families > Cyclone 10 > Cyclone 10 GX
Device Families > Arria Families > Arria V
Device Families > Agilex Families > Agilex 5 > D-Series
Device Families > MAX Families > MAX V
Device Families > Arria Families > Arria II
Device Families > Arria Families > Arria 10
Resource Type
Documentation > User Guides
Documentation > Reference Manual
ft:sourceName
DITA
The Quartus® Prime software installation process initializes environment variables. In specific cases, you can take advantage of modifying these variables.

QUARTUS_ROOTDIR_OVERRIDE

Use this optional environment variable when you have multiple copies of the Quartus® Prime software on the same computer and you want to determine which version to open by default.

Note: If you have multiple copies of the same version of the Quartus® Prime software and the system displays an error message indicating that Quartus® Prime software files cannot be found when you start the program, set the QUARTUS_ROOTDIR_OVERRIDE environment variable to point to the Quartus® Prime copy that you want to start.

QUARTUS_LIBRARY_PATHS

The QUARTUS_LIBRARY_PATHS environment variable specifies user-defined library paths.

You can use this environment variable to define multiple library paths at the same time, instead of individually adding each path to the user library.

PATH

You must add $QSYS_ROOTDIR to the PATH variable. The $QSYS_ROOTDIR locates the directory at ${installdir}/qsys/bin.

In general, Altera® recommends adding all ${installdir}/bin to the PATH variable to allow running a software without adding the full path.

The PATH environment variable is updated automatically for you when you start the Quartus® Prime GUI or run the qinit script from a command line.

LM_LICENSE_FILE

The LM_LICENSE_FILE environment variable specifies the location of the license file. However, the Quartus® Prime software overrides the value of the environment variable with the location that you specify in the License Setup dialog box.

Note: Separate multiple license servers and node locking license files with ":" (Linux) or ";" (Windows).

LC_ALL

You must ensure that your operating system locale is set up correctly. In particular, the locale you specify in LC_ALL environment variable must match the locale settings (such as LANG). If there is a mismatch, the following Perl warning might be generated during IP generation:

perl: warning: Setting locale failed. 

This warning results in IP generation failure.

Note: You can also set the environment variable PERL_BADLANG=0 to avoid the Perl warning.

Sample Setup Script

Instead of setting up the above listed environment variables individually, you can also create a script to set up the environment for a particular version in Linux as shown in the following sample:

Sample setup script for Quartus:
quartus_x.x.bash (executable)
#Setup pointers to version X.X
export QUARTUS_ROOTDIR="<quartus-install-path>/quartus"
export QSYS_ROOTDIR="$QUARTUS_ROOTDIR/qsys/bin"
export ALTERAOCLSDKROOT=<some_specific_release>
export INTELFPGAOCLSDKROOT=<some_specific_release>
export PATH="$QUARTUS_ROOTDIR/bin:$QSYS_ROOTDIR:$PATH" 
# Adding  any /bin under $ALTERAOCLSDKROOT or $INTELFPGAOCLSDKROOT to $PATH if applicable
export LM_LICENSE_FILE=<path_to_license_file>