How to update Qt from 5.5.1 to 5.9.5 on Ubuntu 16.04

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP


.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty margin-bottom:0;







up vote
1
down vote

favorite












Currently, Ubuntu 16.04 has Qt up to 5.5.1 while Ubuntu 18.04 has Qt up to 5.9.5. Currently I'm forced to use Ubuntu 16.04, however, I need to use a program that needs Qt 5.9. How could I update Qt to version 5.9.5?




Note that I'm configuring it on a docker container. This means that the solution shouldn't involve GUI.







share|improve this question





















  • You need to either find a ppa or co.pile it yourself. Get a start and post back if you have problems
    – Panther
    2 days ago










  • @Panther I know that the command to add a ppa is something like add-apt-repository ppa:<ppa_name> and the I need is this. However, I don't know the ppa name nor how to search for it.
    – gvgramazio
    2 days ago











  • google.com/search?q=ppa.qt5&oq=ppa.qt5
    – Panther
    2 days ago










  • @Panther Seriously, I appreciate when someone tries to make me understand a bit instead of giving to me a copy-paste solution. However, even with your link, I don't understand which is the name of Ubuntu 18 repository that has the version I need.
    – gvgramazio
    2 days ago










  • @Panther On anther system, with 18.04 I installed them at first try with apt-get. The problem is that on 16.04 I don't have the same packages.
    – gvgramazio
    2 days ago

















up vote
1
down vote

favorite












Currently, Ubuntu 16.04 has Qt up to 5.5.1 while Ubuntu 18.04 has Qt up to 5.9.5. Currently I'm forced to use Ubuntu 16.04, however, I need to use a program that needs Qt 5.9. How could I update Qt to version 5.9.5?




Note that I'm configuring it on a docker container. This means that the solution shouldn't involve GUI.







share|improve this question





















  • You need to either find a ppa or co.pile it yourself. Get a start and post back if you have problems
    – Panther
    2 days ago










  • @Panther I know that the command to add a ppa is something like add-apt-repository ppa:<ppa_name> and the I need is this. However, I don't know the ppa name nor how to search for it.
    – gvgramazio
    2 days ago











  • google.com/search?q=ppa.qt5&oq=ppa.qt5
    – Panther
    2 days ago










  • @Panther Seriously, I appreciate when someone tries to make me understand a bit instead of giving to me a copy-paste solution. However, even with your link, I don't understand which is the name of Ubuntu 18 repository that has the version I need.
    – gvgramazio
    2 days ago










  • @Panther On anther system, with 18.04 I installed them at first try with apt-get. The problem is that on 16.04 I don't have the same packages.
    – gvgramazio
    2 days ago













up vote
1
down vote

favorite









up vote
1
down vote

favorite











Currently, Ubuntu 16.04 has Qt up to 5.5.1 while Ubuntu 18.04 has Qt up to 5.9.5. Currently I'm forced to use Ubuntu 16.04, however, I need to use a program that needs Qt 5.9. How could I update Qt to version 5.9.5?




Note that I'm configuring it on a docker container. This means that the solution shouldn't involve GUI.







share|improve this question













Currently, Ubuntu 16.04 has Qt up to 5.5.1 while Ubuntu 18.04 has Qt up to 5.9.5. Currently I'm forced to use Ubuntu 16.04, however, I need to use a program that needs Qt 5.9. How could I update Qt to version 5.9.5?




Note that I'm configuring it on a docker container. This means that the solution shouldn't involve GUI.









share|improve this question












share|improve this question




share|improve this question








edited yesterday
























asked 2 days ago









gvgramazio

1268




1268











  • You need to either find a ppa or co.pile it yourself. Get a start and post back if you have problems
    – Panther
    2 days ago










  • @Panther I know that the command to add a ppa is something like add-apt-repository ppa:<ppa_name> and the I need is this. However, I don't know the ppa name nor how to search for it.
    – gvgramazio
    2 days ago











  • google.com/search?q=ppa.qt5&oq=ppa.qt5
    – Panther
    2 days ago










  • @Panther Seriously, I appreciate when someone tries to make me understand a bit instead of giving to me a copy-paste solution. However, even with your link, I don't understand which is the name of Ubuntu 18 repository that has the version I need.
    – gvgramazio
    2 days ago










  • @Panther On anther system, with 18.04 I installed them at first try with apt-get. The problem is that on 16.04 I don't have the same packages.
    – gvgramazio
    2 days ago

















  • You need to either find a ppa or co.pile it yourself. Get a start and post back if you have problems
    – Panther
    2 days ago










  • @Panther I know that the command to add a ppa is something like add-apt-repository ppa:<ppa_name> and the I need is this. However, I don't know the ppa name nor how to search for it.
    – gvgramazio
    2 days ago











  • google.com/search?q=ppa.qt5&oq=ppa.qt5
    – Panther
    2 days ago










  • @Panther Seriously, I appreciate when someone tries to make me understand a bit instead of giving to me a copy-paste solution. However, even with your link, I don't understand which is the name of Ubuntu 18 repository that has the version I need.
    – gvgramazio
    2 days ago










  • @Panther On anther system, with 18.04 I installed them at first try with apt-get. The problem is that on 16.04 I don't have the same packages.
    – gvgramazio
    2 days ago
















You need to either find a ppa or co.pile it yourself. Get a start and post back if you have problems
– Panther
2 days ago




You need to either find a ppa or co.pile it yourself. Get a start and post back if you have problems
– Panther
2 days ago












@Panther I know that the command to add a ppa is something like add-apt-repository ppa:<ppa_name> and the I need is this. However, I don't know the ppa name nor how to search for it.
– gvgramazio
2 days ago





@Panther I know that the command to add a ppa is something like add-apt-repository ppa:<ppa_name> and the I need is this. However, I don't know the ppa name nor how to search for it.
– gvgramazio
2 days ago













google.com/search?q=ppa.qt5&oq=ppa.qt5
– Panther
2 days ago




google.com/search?q=ppa.qt5&oq=ppa.qt5
– Panther
2 days ago












@Panther Seriously, I appreciate when someone tries to make me understand a bit instead of giving to me a copy-paste solution. However, even with your link, I don't understand which is the name of Ubuntu 18 repository that has the version I need.
– gvgramazio
2 days ago




@Panther Seriously, I appreciate when someone tries to make me understand a bit instead of giving to me a copy-paste solution. However, even with your link, I don't understand which is the name of Ubuntu 18 repository that has the version I need.
– gvgramazio
2 days ago












@Panther On anther system, with 18.04 I installed them at first try with apt-get. The problem is that on 16.04 I don't have the same packages.
– gvgramazio
2 days ago





@Panther On anther system, with 18.04 I installed them at first try with apt-get. The problem is that on 16.04 I don't have the same packages.
– gvgramazio
2 days ago











2 Answers
2






active

oldest

votes

















up vote
1
down vote













You could install Qt using the installers provided by Qt. The open source installer can be downloaded here.



Once downloaded (the following assumes the download location is ~/Downloads):



Install Qt



cd ~/Downloads
chmod +x qt-unified-linux-x64-3.0.5-online.run
./qt-unified-linux-x64-3.0.5-online.run


In the "Installation Folder" screen, enter /opt/Qt.



Qt Install Folder



In the "Select Components" screen, choose the version you would like to install (Qt 5.11.1 used in this example) and tick the "Desktop gcc 64-bit" option.



Qt Select Components



The installer will request your sudo password during installation.



Configure the System



There are a couple of choices here depending on whether you want to configure the use of the new Qt version system wide or to the current user.



For system wide, create the folder qtchooser in location /etc/xdg/ (the location used in this example).



For the current user, create the folder qtchooser in location ~/.config/.



Create a text file in the qtchooser folder created in the previous step named default.conf with the following contents:



/opt/Qt/5.11.1/gcc_64/bin
/opt/Qt/5.11.1/gcc_64/lib


The first line in the file is the path to the Qt binaries and the second is the path to the Qt libraries.



Check the Configuration



qmake -v


If the configuration is working correctly you should see something like:



QMake version 3.1
Using Qt version 5.11.1 in /opt/Qt/5.11.1/gcc_64/lib





share|improve this answer





















  • Sorry, I forgot to mention one important thing: I'm configuring it on a docker container. This means that the solution shouldn't involve GUI.
    – gvgramazio
    yesterday










  • Ok. I've added another answer using a PPA.
    – gsxruk
    yesterday

















up vote
1
down vote













A second option is to add Qt using a PPA. The example below installs Qt 5.11.1. There are PPA's for other versions if required.



Add the PPA



sudo add-apt-repository ppa:beineri/opt-qt-5.11.1-xenial
sudo apt update


Install Qt



sudo apt install qt511-meta-full


Configure the System



There are a couple of choices here depending on whether you want to configure the use of the new Qt version system wide or to the current user.



For system wide, create the following file in location /etc/xdg/qtchooser.



For the current user, create the following file in location ~/.config/qtchooser.



Create a text file in the chosen qtchooser folder named default.conf with the following contents:



/opt/qt511/bin
/opt/qt511/lib


The first line in the file is the path to the Qt binaries and the second is the path to the Qt libraries.



Check the Configuration



qmake -v


If the configuration is working correctly you should see something like:



QMake version 3.1
Using Qt version 5.11.1 in /opt/qt511/lib





share|improve this answer





















    Your Answer







    StackExchange.ready(function()
    var channelOptions =
    tags: "".split(" "),
    id: "89"
    ;
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function()
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled)
    StackExchange.using("snippets", function()
    createEditor();
    );

    else
    createEditor();

    );

    function createEditor()
    StackExchange.prepareEditor(
    heartbeatType: 'answer',
    convertImagesToLinks: true,
    noModals: false,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: 10,
    bindNavPrevention: true,
    postfix: "",
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    );



    );








     

    draft saved


    draft discarded


















    StackExchange.ready(
    function ()
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1062046%2fhow-to-update-qt-from-5-5-1-to-5-9-5-on-ubuntu-16-04%23new-answer', 'question_page');

    );

    Post as a guest






























    2 Answers
    2






    active

    oldest

    votes








    2 Answers
    2






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes








    up vote
    1
    down vote













    You could install Qt using the installers provided by Qt. The open source installer can be downloaded here.



    Once downloaded (the following assumes the download location is ~/Downloads):



    Install Qt



    cd ~/Downloads
    chmod +x qt-unified-linux-x64-3.0.5-online.run
    ./qt-unified-linux-x64-3.0.5-online.run


    In the "Installation Folder" screen, enter /opt/Qt.



    Qt Install Folder



    In the "Select Components" screen, choose the version you would like to install (Qt 5.11.1 used in this example) and tick the "Desktop gcc 64-bit" option.



    Qt Select Components



    The installer will request your sudo password during installation.



    Configure the System



    There are a couple of choices here depending on whether you want to configure the use of the new Qt version system wide or to the current user.



    For system wide, create the folder qtchooser in location /etc/xdg/ (the location used in this example).



    For the current user, create the folder qtchooser in location ~/.config/.



    Create a text file in the qtchooser folder created in the previous step named default.conf with the following contents:



    /opt/Qt/5.11.1/gcc_64/bin
    /opt/Qt/5.11.1/gcc_64/lib


    The first line in the file is the path to the Qt binaries and the second is the path to the Qt libraries.



    Check the Configuration



    qmake -v


    If the configuration is working correctly you should see something like:



    QMake version 3.1
    Using Qt version 5.11.1 in /opt/Qt/5.11.1/gcc_64/lib





    share|improve this answer





















    • Sorry, I forgot to mention one important thing: I'm configuring it on a docker container. This means that the solution shouldn't involve GUI.
      – gvgramazio
      yesterday










    • Ok. I've added another answer using a PPA.
      – gsxruk
      yesterday














    up vote
    1
    down vote













    You could install Qt using the installers provided by Qt. The open source installer can be downloaded here.



    Once downloaded (the following assumes the download location is ~/Downloads):



    Install Qt



    cd ~/Downloads
    chmod +x qt-unified-linux-x64-3.0.5-online.run
    ./qt-unified-linux-x64-3.0.5-online.run


    In the "Installation Folder" screen, enter /opt/Qt.



    Qt Install Folder



    In the "Select Components" screen, choose the version you would like to install (Qt 5.11.1 used in this example) and tick the "Desktop gcc 64-bit" option.



    Qt Select Components



    The installer will request your sudo password during installation.



    Configure the System



    There are a couple of choices here depending on whether you want to configure the use of the new Qt version system wide or to the current user.



    For system wide, create the folder qtchooser in location /etc/xdg/ (the location used in this example).



    For the current user, create the folder qtchooser in location ~/.config/.



    Create a text file in the qtchooser folder created in the previous step named default.conf with the following contents:



    /opt/Qt/5.11.1/gcc_64/bin
    /opt/Qt/5.11.1/gcc_64/lib


    The first line in the file is the path to the Qt binaries and the second is the path to the Qt libraries.



    Check the Configuration



    qmake -v


    If the configuration is working correctly you should see something like:



    QMake version 3.1
    Using Qt version 5.11.1 in /opt/Qt/5.11.1/gcc_64/lib





    share|improve this answer





















    • Sorry, I forgot to mention one important thing: I'm configuring it on a docker container. This means that the solution shouldn't involve GUI.
      – gvgramazio
      yesterday










    • Ok. I've added another answer using a PPA.
      – gsxruk
      yesterday












    up vote
    1
    down vote










    up vote
    1
    down vote









    You could install Qt using the installers provided by Qt. The open source installer can be downloaded here.



    Once downloaded (the following assumes the download location is ~/Downloads):



    Install Qt



    cd ~/Downloads
    chmod +x qt-unified-linux-x64-3.0.5-online.run
    ./qt-unified-linux-x64-3.0.5-online.run


    In the "Installation Folder" screen, enter /opt/Qt.



    Qt Install Folder



    In the "Select Components" screen, choose the version you would like to install (Qt 5.11.1 used in this example) and tick the "Desktop gcc 64-bit" option.



    Qt Select Components



    The installer will request your sudo password during installation.



    Configure the System



    There are a couple of choices here depending on whether you want to configure the use of the new Qt version system wide or to the current user.



    For system wide, create the folder qtchooser in location /etc/xdg/ (the location used in this example).



    For the current user, create the folder qtchooser in location ~/.config/.



    Create a text file in the qtchooser folder created in the previous step named default.conf with the following contents:



    /opt/Qt/5.11.1/gcc_64/bin
    /opt/Qt/5.11.1/gcc_64/lib


    The first line in the file is the path to the Qt binaries and the second is the path to the Qt libraries.



    Check the Configuration



    qmake -v


    If the configuration is working correctly you should see something like:



    QMake version 3.1
    Using Qt version 5.11.1 in /opt/Qt/5.11.1/gcc_64/lib





    share|improve this answer













    You could install Qt using the installers provided by Qt. The open source installer can be downloaded here.



    Once downloaded (the following assumes the download location is ~/Downloads):



    Install Qt



    cd ~/Downloads
    chmod +x qt-unified-linux-x64-3.0.5-online.run
    ./qt-unified-linux-x64-3.0.5-online.run


    In the "Installation Folder" screen, enter /opt/Qt.



    Qt Install Folder



    In the "Select Components" screen, choose the version you would like to install (Qt 5.11.1 used in this example) and tick the "Desktop gcc 64-bit" option.



    Qt Select Components



    The installer will request your sudo password during installation.



    Configure the System



    There are a couple of choices here depending on whether you want to configure the use of the new Qt version system wide or to the current user.



    For system wide, create the folder qtchooser in location /etc/xdg/ (the location used in this example).



    For the current user, create the folder qtchooser in location ~/.config/.



    Create a text file in the qtchooser folder created in the previous step named default.conf with the following contents:



    /opt/Qt/5.11.1/gcc_64/bin
    /opt/Qt/5.11.1/gcc_64/lib


    The first line in the file is the path to the Qt binaries and the second is the path to the Qt libraries.



    Check the Configuration



    qmake -v


    If the configuration is working correctly you should see something like:



    QMake version 3.1
    Using Qt version 5.11.1 in /opt/Qt/5.11.1/gcc_64/lib






    share|improve this answer













    share|improve this answer



    share|improve this answer











    answered 2 days ago









    gsxruk

    610138




    610138











    • Sorry, I forgot to mention one important thing: I'm configuring it on a docker container. This means that the solution shouldn't involve GUI.
      – gvgramazio
      yesterday










    • Ok. I've added another answer using a PPA.
      – gsxruk
      yesterday
















    • Sorry, I forgot to mention one important thing: I'm configuring it on a docker container. This means that the solution shouldn't involve GUI.
      – gvgramazio
      yesterday










    • Ok. I've added another answer using a PPA.
      – gsxruk
      yesterday















    Sorry, I forgot to mention one important thing: I'm configuring it on a docker container. This means that the solution shouldn't involve GUI.
    – gvgramazio
    yesterday




    Sorry, I forgot to mention one important thing: I'm configuring it on a docker container. This means that the solution shouldn't involve GUI.
    – gvgramazio
    yesterday












    Ok. I've added another answer using a PPA.
    – gsxruk
    yesterday




    Ok. I've added another answer using a PPA.
    – gsxruk
    yesterday












    up vote
    1
    down vote













    A second option is to add Qt using a PPA. The example below installs Qt 5.11.1. There are PPA's for other versions if required.



    Add the PPA



    sudo add-apt-repository ppa:beineri/opt-qt-5.11.1-xenial
    sudo apt update


    Install Qt



    sudo apt install qt511-meta-full


    Configure the System



    There are a couple of choices here depending on whether you want to configure the use of the new Qt version system wide or to the current user.



    For system wide, create the following file in location /etc/xdg/qtchooser.



    For the current user, create the following file in location ~/.config/qtchooser.



    Create a text file in the chosen qtchooser folder named default.conf with the following contents:



    /opt/qt511/bin
    /opt/qt511/lib


    The first line in the file is the path to the Qt binaries and the second is the path to the Qt libraries.



    Check the Configuration



    qmake -v


    If the configuration is working correctly you should see something like:



    QMake version 3.1
    Using Qt version 5.11.1 in /opt/qt511/lib





    share|improve this answer

























      up vote
      1
      down vote













      A second option is to add Qt using a PPA. The example below installs Qt 5.11.1. There are PPA's for other versions if required.



      Add the PPA



      sudo add-apt-repository ppa:beineri/opt-qt-5.11.1-xenial
      sudo apt update


      Install Qt



      sudo apt install qt511-meta-full


      Configure the System



      There are a couple of choices here depending on whether you want to configure the use of the new Qt version system wide or to the current user.



      For system wide, create the following file in location /etc/xdg/qtchooser.



      For the current user, create the following file in location ~/.config/qtchooser.



      Create a text file in the chosen qtchooser folder named default.conf with the following contents:



      /opt/qt511/bin
      /opt/qt511/lib


      The first line in the file is the path to the Qt binaries and the second is the path to the Qt libraries.



      Check the Configuration



      qmake -v


      If the configuration is working correctly you should see something like:



      QMake version 3.1
      Using Qt version 5.11.1 in /opt/qt511/lib





      share|improve this answer























        up vote
        1
        down vote










        up vote
        1
        down vote









        A second option is to add Qt using a PPA. The example below installs Qt 5.11.1. There are PPA's for other versions if required.



        Add the PPA



        sudo add-apt-repository ppa:beineri/opt-qt-5.11.1-xenial
        sudo apt update


        Install Qt



        sudo apt install qt511-meta-full


        Configure the System



        There are a couple of choices here depending on whether you want to configure the use of the new Qt version system wide or to the current user.



        For system wide, create the following file in location /etc/xdg/qtchooser.



        For the current user, create the following file in location ~/.config/qtchooser.



        Create a text file in the chosen qtchooser folder named default.conf with the following contents:



        /opt/qt511/bin
        /opt/qt511/lib


        The first line in the file is the path to the Qt binaries and the second is the path to the Qt libraries.



        Check the Configuration



        qmake -v


        If the configuration is working correctly you should see something like:



        QMake version 3.1
        Using Qt version 5.11.1 in /opt/qt511/lib





        share|improve this answer













        A second option is to add Qt using a PPA. The example below installs Qt 5.11.1. There are PPA's for other versions if required.



        Add the PPA



        sudo add-apt-repository ppa:beineri/opt-qt-5.11.1-xenial
        sudo apt update


        Install Qt



        sudo apt install qt511-meta-full


        Configure the System



        There are a couple of choices here depending on whether you want to configure the use of the new Qt version system wide or to the current user.



        For system wide, create the following file in location /etc/xdg/qtchooser.



        For the current user, create the following file in location ~/.config/qtchooser.



        Create a text file in the chosen qtchooser folder named default.conf with the following contents:



        /opt/qt511/bin
        /opt/qt511/lib


        The first line in the file is the path to the Qt binaries and the second is the path to the Qt libraries.



        Check the Configuration



        qmake -v


        If the configuration is working correctly you should see something like:



        QMake version 3.1
        Using Qt version 5.11.1 in /opt/qt511/lib






        share|improve this answer













        share|improve this answer



        share|improve this answer











        answered yesterday









        gsxruk

        610138




        610138






















             

            draft saved


            draft discarded


























             


            draft saved


            draft discarded














            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1062046%2fhow-to-update-qt-from-5-5-1-to-5-9-5-on-ubuntu-16-04%23new-answer', 'question_page');

            );

            Post as a guest













































































            Popular posts from this blog

            pylint3 and pip3 broken

            Missing snmpget and snmpwalk

            How to enroll fingerprints to Ubuntu 17.10 with VFS491