Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

std::exception when installing qt



  • I'm installing the 5.12.9 version of qt in Xubuntu 18.04 through the installer found here:

    https://download.qt.io/official_releases/qt/5.12/5.12.9/qt-opensource-linux-x64-5.12.9.run

    I already have other qt versions installed including 5.12.6. However, when I run the installer this way:

    QT_INSTALL_DIR=/usr/local/Qt5.12.9 ./qt-opensource-linux-x64-5.12.9.run --platform minimal --verbose

    I find this error:

    [94368] backup qt.tools.qtcreator operation: Extract
    [94369] 	- arguments: installer://qt.tools.qtcreator/4.12.2-0qtcreator.7z, /usr/local/Qt5.12.9
    [94370] Done
    [94370] perform qt.tools.qtcreator operation: Extract
    [94370] 	- arguments: installer://qt.tools.qtcreator/4.12.2-0qtcreator.7z, /usr/local/Qt5.12.9
    [109939] Done
    [109939] backup qt.tools.qtcreator operation: Extract
    [109939] 	- arguments: installer://qt.tools.qtcreator/4.12.2-0qtcreator_sdktool.7z, /usr/local/Qt5.12.9
    [109939] Done
    [109939] perform qt.tools.qtcreator operation: Extract
    [109939] 	- arguments: installer://qt.tools.qtcreator/4.12.2-0qtcreator_sdktool.7z, /usr/local/Qt5.12.9
    [110143] Done
    [110145] backup qt.tools.qtcreator operation: InstallIcons
    [110145] 	- arguments: /usr/local/Qt5.12.9/Tools/QtCreator/share/icons
    [110145] Done
    [110145] perform qt.tools.qtcreator operation: InstallIcons
    [110145] 	- arguments: /usr/local/Qt5.12.9/Tools/QtCreator/share/icons
    [110153] Done
    [110153] Fatal: Exception thrown: std::exception
    Exception thrown: std::exception
    ./install.sh: line 5: 29738 Aborted                 (core dumped) QT_INSTALL_DIR=/usr/local/Qt5.12.9 ./qt-opensource-linux-x64-5.12.9.run --platform minimal --verbose
    

    I have tried downloading the installer file again, but I've got the same error at this point. df -h tells there's enough space in the disk, so I don't know why it keeps failing.


  • Lifetime Qt Champion

    @Aritz Do you call the installer with sude as normal users do not have write access to /usr/local ?



  • @jsulm That was the problem :-S

    The error log was not meaningful enough.

    Thank you for your help!


  • Lifetime Qt Champion

    @Aritz Agree, "Exception thrown: std::exception" doesn't explain much :-)


Log in to reply