Make a clean installation of Quartus Under Linux
Altera Quartus 14.1 won’t work with ModelSim(I mean the ModelSim-Altera), because of the lacking of a lot of libraries included in i686 packages. Definitely, you can install all of these packages. Here is the list:
expat-2.1.0-8.el7.i686.rpm
glibc-2.17-106.el7_2.8.i686.rpm
libX11-1.6.3-2.el7.i686.rpm
libXext-1.3.3-3.el7.i686.rpm
ncurses-libs-5.9-13.20130511.el7.i686.rpm
fontconfig-2.10.95-7.el7.i686.rpm
libgcc-4.8.5-4.el7.i686.rpm
libXau-1.0.8-2.1.el7.i686.rpm
libXft-2.3.2-2.el7.i686.rpm
nss-softokn-freebl-3.16.2.3-14.2.el7_2.i686.rpm
freetype-2.4.11-11.el7.i686.rpm
libstdc++-4.8.5-4.el7.i686.rpm
libxcb-1.11-4.el7.i686.rpm
libXrender-0.9.8-2.1.el7.i686.rpm
But, please wait before typing the installation instructions. Since we already had a 64bit OS, why do we install such packages of last century? It’s unacceptable. No one dislikes a pure, clean and uncontaminated system. We should try our best to keep it clean forever. That’s what I did to defend my system.
1. Download Packages
Download all of these packages which are needed by ModelSim.
Assuming the directory of ModelSim is:
/home/igame/altera/14.1/modelsim_ase/linuxaloem
$ cd /home/igame/altera/14.1/modelsim_ase/linuxaloem
$ mkdir temp
$ cd temp
$ yum install --downloadonly --downloaddir=./ {The the list of packages}
....
2. Make Link for ld-linux.so.2
The ld-linux.so.2 must be located under /lib/. So we do a little bit more work:
$ sudo ln -s $(pwd)/lib/ld-linux.so.2 /lib/ld-linux-so.2
3. Extract All Packages
Run the following commands to extract all packages:
$ for f in *.rpm; do rpm2cpio $f | cpio -imdv
4. Gathering All Libraries
To make ModelSim find these libraries easily, we can put all libraries into one directory. For example, extra-lib will be a good name.
Now, we are back to the nest of ModelSim: /home/igame/altera/14.1/modelsim_ase/linuxaloem
$ cd ..
Create the extra-lib directory and put all stuff into it:
$ mkdir extra-lib
$ cp temp/lib/* extra-lib/
$ cp temp/usr/lib/* extra-lib/
5. Added Library Path into Quartus Desktop ShortCut
Now we need to make Quartus know all libraries ready and where to find them.
Right click the desktop shortcut of Quartus II 14.1(64bit), choose Properties item. In the Properties window, change the Command value to:
sh -c "LD_LIBRARY_PATH=/home/igame/altera/14.1/modelsim_ase/linuxaloem/extra-lib:$LD_LIBRARY_PATH /home/igame/altera/14.1/quartus/bin/quartus --64bit"
6. Enjoy
Now we can run Quartus and enjoy the fun of FPGA design without contaminating our system.
Have fun!