Make sure that you install the software at “/opt/altera/18.1”. Create the altera directory and change the owner to your username. Replace “fritz:fritz” with your username and group.

sudo mkdir /opt/altera
sudo chown fritz:fritz /opt/altera

When you run the installation, you can deselect all FPGA device families, except Cyclone V.

mkdir /tmp/qi
cd /tmp/qi
cp <TheQuartusTarFile> .
tar -xvf Quartus-lite-

In order to be able to start the binaries from the commandline, the path for the binaries has to be in the PATH environment variable. For that you have to modify the .profile file in your home directory. Append the following snippet to the .profile file:


# Include the ALTERA fpga software
# Include the ALTERA Modelsim VHDL simulator

To see the changes in the PATH variable, you have to logout and login again. After that you can already start modelsim and quartus (see below). To check the setting of the PATH variable do:

fritz@vcae:~$ echo $PATH

You can see that the altera directories are now part of the PATH variable.

Missing libpng12

fritz@vcae:~$ quartus
quartus: error while loading shared libraries: libpng12.so.0: cannot open shared object file: No such file or directory

The following check shows that libpng16 is installed but quartus needs libpng12.

fritz@vcae:~$ dpkg -l | grep png
ii  libpng16-16:amd64                     1.6.34-1ubuntu0.18.04.1             amd64        PNG library - runtime (version 1.6)

So download, compile and copy the libpng12 library to the quartus install directory

sudo apt install build-essential
wget https://www.hs-augsburg.de/homes/beckmanf/public/libpng-1.2.59.tar.gz
tar -xvzf libpng-1.2.59.tar.gz
cd libpng-1.2.59
cp .libs/libpng12.so* /opt/altera/18.1/quartus/linux64

Wrong libc

When you try to run quartus and see this

fritz@vcae:/tmp$ quartus
/opt/altera/18.1/quartus/linux64/libstdc++.so.6: version `CXXABI_1.3.9' not found (required by /usr/lib/x86_64-linux-gnu/libproxy.so.1)
Failed to load module: /usr/lib/x86_64-linux-gnu/gio/modules/libgiolibproxy.so

(quartus:47747): Gtk-WARNING **: 18:17:46.016: Error loading theme icon 'dialog-warning' for stock: Unable to load image-loading module: /usr/lib/x86_64-linux-gnu/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-svg.so: /opt/altera/18.1/quartus/linux64/libstdc++.so.6: version `CXXABI_1.3.8' not found (required by /usr/lib/x86_64-linux-gnu/libicuuc.so.60)

then, you can do the following

cd /opt/altera/18.1/quartus/linux64
fritz@vcae:/opt/altera/18.1/quartus/linux64$ mv ./libstdc++.so.6 libstdc++.so.6.orig_dist
fritz@vcae:/opt/altera/18.1/quartus/linux64$ ln -s /usr/lib/x86_64-linux-gnu/libstdc++.so.6 .

Run Quartus

Run Quartus with


and click the “Run the Quartus Prime software” button

Fix linux_rh60 vco script problem

When you run modelsim and see:

fritz@vcae:/tmp$ vsim
Error: cannot find "/opt/altera/18.1/modelsim_ase/bin/../linux_rh60/vsim"

then, you have to fix the vco script. First change the permissions such that you can modify the script.

cd /opt/altera/18.1/modelsim_ase
chmod u+w vco

Open the vco with

vi vco

and find the following section

        case $utype in
          2.4.[7-9]*)       vco="linux" ;;
          2.4.[1-9][0-9]*)  vco="linux" ;;
          2.[5-9]*)         vco="linux" ;;
          2.[1-9][0-9]*)    vco="linux" ;;
          3.[0-9]*)             vco="linux" ;;
          *)                vco="linux_rh60" ;;

And change the “linux_rh60” entry to “linux”.

Install i386 Libraries

See: missing i386 libraries on the Intel site.

sudo apt install libxext6:i386 libxft2:i386 libncurses5:i386 libfontconfig1:i386 libxrender1:i386 libc6:i386

Fix the libfreetype problem

If you see

caeuser@ADLab-Tools-OS:~$ vsim
Error in startup script:
Initialization problem, exiting.

Initialization problem, exiting.

    while executing
"InitializeINIFile quietly"
    invoked from within
"ncFyP12 -+"
    (file "/mtitcl/vsim/vsim" line 1)
** Fatal: Read failure in vlm process (0,0)

then you have to install an old version of libfreetype. Make sure that you have enable the deb-src packages in the /etc/apt/sources.list file to make the build dependencies work.

sudo apt-get install libc6-dev-i386
sudo apt-get build-dep -a i386 libfreetype6
wget https://download.savannah.gnu.org/releases/freetype/freetype-2.8.1.tar.gz
tar -xvzf freetype-2.8.1.tar.gz
cd freetype-2.8.1
./configure --build=i686-pc-linux-gnu --without-png "CFLAGS=-m32" "CXXFLAGS=-m32" "LDFLAGS=-m32"
make -j8

Now copy the libfreetype library files to the modelsim directory

mkdir /opt/altera/18.1/modelsim_ase/lib32
cp objs/.libs/libfreetype.so* /opt/altera/18.1/modelsim_ase/lib32/

Now you have to change modelsim vco file and find the location:

dir=`dirname "$arg0"`

After that line add

export LD_LIBRARY_PATH=/opt/altera/18.1/modelsim_ase/lib32
  • vcae-lubuntu-18.04.txt
  • Last modified: 2019/03/28 20:53
  • by beckmanf