Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
14 years ago

Installation fails on Ubuntu 10.10 and 11.04

Hello

Installation of Altera Quartus 10.01sp1 fails on Ubuntu 10.10/11.04 x64.

The installtion log:

----------------------------------------------
Date :Mon May  2 01:37:01 2011
System Info : Linux 2.6.38-8-generic
Installation Summary : Altera release version 10.1sp1 build 197
Install Location : /opt/altera/10.1sp1
Selected Components : 
Quartus II Web Edition (Free)
--- Quartus II Web Edition (Free)
--- Stratix Family
--- Stratix II Family
--- Stratix II GX Family
--- Stratix III Family
----------------------------------------------
**********************************************************************
* Installing files for product Quartus II Web Edition (Free) 
**********************************************************************
Installing Quartus II Web Edition (Free) ...
>>> Starting subprocess:
   /home/dominic/Downloads/10.1sp1_quartus_free_linux/altera_installer/bin/../../linux_installer/quartus_free/install --show_progress --auto /opt/altera/10.1sp1
[H[2JRunning automated install
Type the full pathname of the directory where you want to
install the Quartus II Subscription Edition (Paid) 10.1sp1 software.
(default: /opt/altera/10.1sp1):
The /opt/altera/10.1sp1/quartus directory already exists.
OK to delete all existing files in /opt/altera/10.1sp1/quartus before
installing Quartus II Subscription Edition (Paid) 10.1sp1? (y/n):
Quartus II Subscription Edition (Paid) 10.1sp1 Installation Script for Linux Workstations
Copyright (c) Altera Corporation 2011
Type Ctrl+C <Return> to quit this installation script at any time.
Use this installation script to install the Quartus II software,
including MegaCore IP, sample/tutorial files, interfaces to
other EDA tools, excluding Quartus II device family information.
find: "/opt/altera/10.1sp1/ip": Datei oder Verzeichnis nicht gefunden
------------------------------------------------------------
Creating wrapper shell scripts in the '/opt/altera/10.1sp1/quartus/bin' directory...
Installing contents of 'linux.gz' to the '/opt/altera/10.1sp1/quartus/linux' directory...
Installing contents of 'linux64.gz' to the '/opt/altera/10.1sp1/quartus/linux64' directory...
Installing contents of 'eda.gz' to the '/opt/altera/10.1sp1/quartus/eda' directory...
Installing contents of 'libraries.gz' to the '/opt/altera/10.1sp1/quartus/libraries' directory...
Installing contents of 'lmf.gz' to the '/opt/altera/10.1sp1/quartus/lmf' directory...
Installing contents of 'sopc.gz' to the '/opt/altera/10.1sp1/quartus/sopc' directory...
Installing contents of 'cusp.gz' to the '/opt/altera/10.1sp1/quartus/cusp' directory...
Installing contents of 'dsp_builder.gz' to the '/opt/altera/10.1sp1/quartus/dsp_builder' directory...
Installing contents of 'common.gz' to the '/opt/altera/10.1sp1/quartus/common' directory...
Installing contents of 'devinfo.gz' to the '/opt/altera/10.1sp1/quartus/devinfo' directory...
Installing contents of 'adm.gz' to the '/opt/altera/10.1sp1/quartus/adm' directory...
Installing contents of 'qdesigns.gz' to the '/opt/altera/10.1sp1/quartus/qdesigns' directory...
Installing contents of 'help.gz' to the '/opt/altera/10.1sp1/quartus/help' directory...
Installing contents of 'tutorial.gz' to the '/opt/altera/10.1sp1/quartus/tutorial' directory...
Installing contents of 'ip' to the '/opt/altera/10.1sp1/quartus/../ip' directory...
Installing contents of 'perlsrc.gz' to the '/opt/altera/10.1sp1/quartus/perlsrc' directory...
For information about completing the setup of the Quartus II software and
configuring licensing, please check the Quartus II Installation and
Licensing for Linux Workstations Manual on the Altera website at
REMOVED LINK TO BE ALLOWED TO SEND THIS POST
Installation of Quartus II Software for Linux Workstations
is complete.  You can now run the Quartus II software.
Installing Stratix Family ...
>>> Starting subprocess:
   /opt/altera/10.1sp1/quartus/bin/quartus_sh --qinstall -qda "/home/dominic/Downloads/10.1sp1_quartus_free_linux/altera_installer/bin/../../devices/subscription/stratix.qda" -show_qt_progress
>>> quartus_free install process 24452 finished with status 2
export: 137: 800.000: bad variable name

The installation was done with sudo rights.

The same error massage ("bad variable name") is shown on trying to start the quartus binAry from .../bin.

8 Replies

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Are you using bash or dash as the default shell in Ubuntu? Bash should work, dash will not.

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Hi Slacker,

    thank you for your help!

    I've tried both. But as it's x64 it shouldn't matter if I chose dash or bash.

    To ensure it I started an explicit /bin/bash root session. The error was the same:

    root@Asgard:~/Downloads# ./10.1sp1_quartus_free_linux.sh                                                                                                                              
    Creating directory 10.1sp1_quartus_free_linux                                                                                                                                                
    Verifying archive integrity... All good.                                                                                                                                                     
    Uncompressing Quartus II Web Edition (Free).....................................................................................................................................................................................................                                                                                                                                          
    Fontconfig error: "conf.d", line 1: no element found                                                                                                                                         
    Fontconfig warning: line 73: unknown element "cachedir"                                                                                                                                      
    Fontconfig warning: line 74: unknown element "cachedir"                                                                                                                                      
    >>> Uninstalling Quartus II Web Edition (Free)                                                                                                                                               
    Existing file list : /opt/altera/10.1sp1/quartus/.quartus_free_existing_files.txt
    Installed file list : /opt/altera/10.1sp1/quartus/.quartus_free_install_files.txt                                                                                                            
    >>> Removing files...
    Uninstall Quartus II Web Edition (Free) have completed succesfully!
    ----------------------------------------------
    Date :Mon May  2 18:03:20 2011
    System Info : Linux 2.6.38-8-generic
    Installation Summary : Altera release version 10.1sp1 build 197
    Install Location : /opt/altera/10.1sp1
    Selected Components : 
    Quartus II Web Edition (Free)
    --- Quartus II Web Edition (Free)
    --- Stratix Family
    --- Stratix II Family
    --- Stratix II GX Family
    --- Stratix III Family
    ----------------------------------------------
    **********************************************************************
    * Installing files for product Quartus II Web Edition (Free) 
    **********************************************************************
    Installing Quartus II Web Edition (Free) ...
    >>> Starting subprocess:
       /home/dominic/Downloads/10.1sp1_quartus_free_linux/altera_installer/bin/../../linux_installer/quartus_free/install --show_progress --auto /opt/altera/10.1sp1
    Running automated install
    Type the full pathname of the directory where you want to
    install the Quartus II Subscription Edition (Paid) 10.1sp1 software.
    (default: /opt/altera/10.1sp1):
    The /opt/altera/10.1sp1/quartus directory already exists.
    OK to delete all existing files in /opt/altera/10.1sp1/quartus before
    installing Quartus II Subscription Edition (Paid) 10.1sp1? (y/n):
    Quartus II Subscription Edition (Paid) 10.1sp1 Installation Script for Linux Workstations
    Copyright (c) Altera Corporation 2011
    Type Ctrl+C <Return> to quit this installation script at any time.
    Use this installation script to install the Quartus II software,
    including MegaCore IP, sample/tutorial files, interfaces to
    other EDA tools, excluding Quartus II device family information.
    find: "/opt/altera/10.1sp1/ip": Datei oder Verzeichnis nicht gefunden
    ------------------------------------------------------------
    Creating wrapper shell scripts in the '/opt/altera/10.1sp1/quartus/bin' directory...
    Installing contents of 'linux.gz' to the '/opt/altera/10.1sp1/quartus/linux' directory...
    Installing contents of 'linux64.gz' to the '/opt/altera/10.1sp1/quartus/linux64' directory...
    Installing contents of 'eda.gz' to the '/opt/altera/10.1sp1/quartus/eda' directory...
    Installing contents of 'libraries.gz' to the '/opt/altera/10.1sp1/quartus/libraries' directory...
    Installing contents of 'lmf.gz' to the '/opt/altera/10.1sp1/quartus/lmf' directory...
    Installing contents of 'sopc.gz' to the '/opt/altera/10.1sp1/quartus/sopc' directory...
    Installing contents of 'cusp.gz' to the '/opt/altera/10.1sp1/quartus/cusp' directory...
    Installing contents of 'dsp_builder.gz' to the '/opt/altera/10.1sp1/quartus/dsp_builder' directory...
    Installing contents of 'common.gz' to the '/opt/altera/10.1sp1/quartus/common' directory...
    Installing contents of 'devinfo.gz' to the '/opt/altera/10.1sp1/quartus/devinfo' directory...
    Installing contents of 'adm.gz' to the '/opt/altera/10.1sp1/quartus/adm' directory...
    Installing contents of 'qdesigns.gz' to the '/opt/altera/10.1sp1/quartus/qdesigns' directory...
    Installing contents of 'help.gz' to the '/opt/altera/10.1sp1/quartus/help' directory...
    Installing contents of 'tutorial.gz' to the '/opt/altera/10.1sp1/quartus/tutorial' directory...
    Installing contents of 'ip' to the '/opt/altera/10.1sp1/quartus/../ip' directory...
    Installing contents of 'perlsrc.gz' to the '/opt/altera/10.1sp1/quartus/perlsrc' directory...
    For information about completing the setup of the Quartus II software and
    configuring licensing, please check the Quartus II Installation and
    Licensing for Linux Workstations Manual on the Altera website at
    h t t p : / / www . altera . com / literature / manual / quartus_unix . pdf
    Installation of Quartus II Software for Linux Workstations
    is complete.  You can now run the Quartus II software.
    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
    Installing Stratix Family ...
    >>> Starting subprocess:
       /opt/altera/10.1sp1/quartus/bin/quartus_sh --qinstall -qda "/home/dominic/Downloads/10.1sp1_quartus_free_linux/altera_installer/bin/../../devices/subscription/stratix.qda" -show_qt_progress
    >>> quartus_free install process 11213 finished with status 2
    export: 137: 1500.00: bad variable name
    QObject::setParent: Cannot set parent, new parent is in a different 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
    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
    altera_installer_gui: ../../src/xcb_io.c:140: dequeue_pending_request: Zusicherung »req == dpy->xcb->pending_requests« nicht erfüllt.
    The last German line means something like: altera_installer_gui: ../../src/xcb_io.c:140: dequeue_pending_request: assert »req == dpy->xcb->pending_requests« is not fulfilled.
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    I'm not referring to running the installation from dash/bash. I'm referring to making sure your default shell (/bin/sh or /usr/bin/sh link) points to bash, not dash. The QII installation (stupidly) makes use of shell scripts that are bash specific...

    Not sure if this is causing what you see, but it's a really easy thing to change/test.
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Hello,

    thank you very much for you help!

    /bin/bash was the bash itself, but /bin/sh was linked to dash. I could change this with

    sudo dpkg-reconfigure dash
    and choosing "No".

    So your assumption was correct. But I guess my solution was only a workaround. Shell scripts depending on bash should explicitly call the bash (by setting the shebang) instead of the generous sh. Most Debian based distros use dash as non-interactive shell; some others even use csh or zsh for some purposes.

    Anyway - the problem is solved (or worked around). Thank you!
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    No worries and glad that I could be of help. Yup, it's definitely not done correctly. If a script requires a particular shell, it should refer directly to that shell, not a generic Bourne shell reference/link.

    IMHO, installation and/or "system" scripts should use code that is as generic (generic Bourne or generic Csh) as possible. Bash/Dash/Ksh/zsh should never specifically be required.

    Cheers,

    slacker
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Hi slacker,

    yes, of course this would be the best solution :-)

    But I would be well pleased if the scripts would call the right shell...

    Cheers

    6triple8
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    That particular error:

    export: 137: 800.000: bad variable name

    (the number in place of 800 may be different) is not related to the shell in use.

    It's a bug in qenv.sh at line 137, which manifests itself when there are CPU cores running at different frequencies. For example, a laptop with something like SpeedStep might adjust core frequencies independently according to the system load. Thus, this error will occur at random, and is not limited to the process of installation; it does happen during normal operation too.

    The variable which is set at line 137 is actually never used, so the best way to fix this error is to delete this line or comment it out. After installation, the file is at .../quartus/adm/qenv.sh. I heard it might get fixed in 11.1 or thereabouts.
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Hi kit,

    ok, then this is obviously my problem. As I've got a hexacore it's very likely that not all of them are working at the same frequency all the time.

    Thanks for your solution!

    Best regards

    6triple8