Forum Discussion
Altera Installer on Fedora 12 (and other Linux distros)
running the Altera Installer on Fedora 12, you might see and error with libXi.so as we've seen in the past running quartus:
$ ./altera_installer.external.mod.sh
Creating directory bin
Verifying archive integrity... All good.
Uncompressing Altera Installer............................................................................................................................
Fontconfig error: "conf.d", line 1: no element found
Fontconfig warning: line 73: unknown element "cachedir"
Fontconfig warning: line 74: unknown element "cachedir"
./altera_installer_gui: symbol lookup error: /usr/lib/libXi.so: undefined symbol: XESetWireToEventCookie
in the Quartus II install, we could simply remove $QUARTUS_ROOTDIR/linux/libX11.so.6 and quartus would run fine. unfortunately, the Altera Installer isn't easy to figure out if you manually remove the .so and go back to run the installer. i've created a patch that removes the .so after the archive is extracted, and compensates the head commands to make up for the extra line i added. here are instructions for installing the patch using the .tar.gz: $ tar -zxvf altera_installer_rm_libX11.so.6_lib.tar.gz
altera_installer_rm_libX11.so.6_lib.patch
$ patch altera_installer.external.sh altera_installer_rm_libX11.so.6_lib.patch
patching file altera_installer.external.sh
$ chmod +x altera_installer.external.sh
$ ./altera_installer.external.sh
Creating directory bin
Verifying archive integrity... All good.
Uncompressing Altera Installer............................................................................................................................rm: cannot remove `libX11.so.6': No such file or directory
Fontconfig error: "conf.d", line 1: no element found
Fontconfig warning: line 73: unknown element "cachedir"
Fontconfig warning: line 74: unknown element "cachedir" here's the actual patch: 96c96
< offset=`head -n 402 "$1" | wc -c | tr -d " "`
---
> offset=`head -n 403 "$1" | wc -c | tr -d " "`
139a140
> rm libX11.so.6
205c206
< offset=`head -n 402 "$0" | wc -c | tr -d " "`
---
> offset=`head -n 403 "$0" | wc -c | tr -d " "`
214c215
< offset=`head -n 402 "$0" | wc -c | tr -d " "`
---
> offset=`head -n 403 "$0" | wc -c | tr -d " "`
341c342
< offset=`head -n 402 "$0" | wc -c | tr -d " "`
---
> offset=`head -n 403 "$0" | wc -c | tr -d " "`
let me know if you use the patch or have any improvements. from the log output you can see its trying to rm the .so twice. it works as is, so :) do note that Fedora (any version) is not supported by Altera, neither is this install flow9 Replies
- Altera_Forum
Honored Contributor
i should add that this is for the small (~20MB) installer for ACDS 10.0.
patching the full installer doesn't work too well. - Altera_Forum
Honored Contributor
On Ubuntu 10.4 there is the extra problem caused by the link /bin/sh -> dash
a possible fix is mentioned here: http://www.alteraforums.com/forum/showthread.php?t=24065 - Altera_Forum
Honored Contributor
thanks, its good to cross reference these installation tips.
after using the patched installer and setting up $QUARTUS_ROOTDIR and $PATH, i didn't have to make any further modifications to the install for it to work on Fedora 12. - Altera_Forum
Honored Contributor
Thanks for your help. I downloaded the stand alone installer for 10.0 and then went and deleted the file you mention and the installer runs fine.
- Altera_Forum
Honored Contributor
interested in what command you ran after deleting the .so
- Altera_Forum
Honored Contributor
If you run the .sh file again then it will uncompress everything again and restore the offending .so. So everything gets uncompressed in the 10.0_quartus_linux dir. In that dir is a file called setup. I ran that after deleting the so.
I am on F13 and had to fix the paths like you mention and then change the SElinux/conf file to allow SE Linux to be permissible so the quartus tools can launch. -Rolando - Altera_Forum
Honored Contributor
cool, i noticed that the bad .so gets restored after re-running the installer. i thought i tried setup and it needed some flags, so i decided that patching the script to remove the .so was easier
i don't usually use SELinux, thanks for the tip ah, well glad it helped - Altera_Forum
Honored Contributor
Here's an update for Quartus 10.0 running on openSUSE 11.3.
--- Quote Start --- gaudette@linux-xtby:~/altera> su Password: linux-xtby:/home/gaudette/altera# sh 10.0_quartus_linux.sh --noexec Creating directory 10.0_quartus_linux Verifying archive integrity... All good. Uncompressing Quartus II software (includes IP Library).................................................................................................................................................. linux-xtby:/home/gaudette/altera# cd 10.0_quartus_linux/ linux-xtby:/home/gaudette/altera/10.0_quartus_linux# mv ./altera_installer/bin/libx11.so.6 .. linux-xtby:/home/gaudette/altera/10.0_quartus_linux# ./setup --standalone --install quartus Fontconfig error: "conf.d", line 1: no element found Fontconfig warning: line 73: unknown element "cachedir" Fontconfig warning: line 74: unknown element "cachedir" Traceback (most recent call last): File "linux32/build/pyi.linux2/altera_installer_cmd/outPYZ1.pyz/AlteraInstallerGuiWizard", line 974, in nextId TypeError: string indices must be integers, not str Traceback (most recent call last): File "linux32/build/pyi.linux2/altera_installer_cmd/outPYZ1.pyz/AlteraInstallerGuiWizard", line 974, in nextId TypeError: string indices must be integers, not str QPixmap: It is not safe to use pixmaps outside the GUI thread QPixmap: It is not safe to use pixmaps outside the GUI thread QPixmap: It is not safe to use pixmaps outside the GUI thread QPixmap: It is not safe to use pixmaps outside the GUI thread QPixmap: It is not safe to use pixmaps outside the GUI thread QPixmap: It is not safe to use pixmaps outside the GUI thread QPixmap: It is not safe to use pixmaps outside the GUI thread QPixmap: It is not safe to use pixmaps outside the GUI thread QPixmap: It is not safe to use pixmaps outside the GUI thread QPixmap: It is not safe to use pixmaps outside the GUI thread QPixmap: It is not safe to use pixmaps outside the GUI thread QPixmap: It is not safe to use pixmaps outside the GUI thread --- Quote End --- The warning messages can safely be ignored. Repeat this process for the service pack. Quartus II functions as expected. -J - Altera_Forum
Honored Contributor
i recall seeing most/all of these warnings in the terminal when installing, but i haven't run into problems when actually running Quartus II so i suspect these messages haven't caused a failure