UPDATE: The new Intel® Quartus® Prime Lite 18.1 installs without any problems under Ubuntu 18.04 (LTS). Hopefully this article is now superfluous (unless you need to install older version of Quartus onto older versions of Ubuntu).
Installing the Intel® Quartus® Prime Lite edition software (the free Intel/Altera FPGA design software suite) for Ubuntu 17.10 is not trivial.
There are two main problems:
- The installer does not terminate properly, which seems to leave it in an unlicensed state.
- The software needs libpng12, which is not distributed with Ubuntu 17.10.
The simplest way is to build and install libpng12 from source (requires build-essential).
- Install build-essential (to get gcc etc):
sudo apt install build-essential
- Download the source code from sourceforge (select a suitable version and tar archive).
- Unpack the tar archive to /tmp
- Build and install:
cd /tmp/libpng-1.2.59 ./configure --prefix=/usr/local make sudo make install sudo ldconfig
The solution is to run the installer in unattended headless mode (I found a tip by Jonathan here), and install the different components in separate steps.
Start by unpacking the Quartus installer, e.g. to /tmp/quartus, and then run the following command (replace $DOWNLOADDIR, and $INSTALLDIR and $VER with sutitable values, e.g. /tmp/quartus, ~/intelFPGA_lite/17.1 and 220.127.116.110):
$DOWNLOADDIR/components/QuartusLiteSetup-$VER-linux.run \ --mode unattended \ --unattendedmodeui none \ --installdir $INSTALLDIR \ --disable-components quartus_help,modelsim_ase,modelsim_ae \ --accept_eula 1
After running for a while, this may hang. Check with top to see if the QuartusLiteSetup program is still running or not. If not, hit CTRL+C to stop it.
Then repeat the process for the following two commands:
$DOWNLOADDIR/components/ModelSimSetup-$VER-linux.run \ --mode unattended \ --unattendedmodeui none \ --installdir $INSTALLDIR \ --modelsim_edition modelsim_ase \ --launch_from_quartus 1 \ --accept_eula 1 $DOWNLOADDIR/components/QuartusHelpSetup-$VER-linux.run \ --mode unattended \ --unattendedmodeui none \ --installdir $INSTALLDIR \ --accept_eula 1
You should be able to start the quartus/bin/quartus program in the installation folder (I added a script, quartus.sh, in my ~/bin/ folder that launches the quartus binary).