1

I downloaded qt-opensource-linux-x86-5.4.1.run but how to install it on ubuntu 14.04LTS?

This is the output which I get:

administrator@pc-7:~$ cd /home/administrator/Downloads/FlareGet/Applications
administrator@pc-7:~/Downloads/FlareGet/Applications$ chmod +x qt-opensource-linux-x86-5.4.1.run 
administrator@pc-7:~/Downloads/FlareGet/Applications$ ./qt-opensource-linux-x86-5.4.1.run
bash: ./qt-opensource-linux-x86-5.4.1.run: No such file or directory

administrator@pc-7:~/Downloads/FlareGet/Applications$ whoami
administrator


administrator@pc-7:~/Downloads/FlareGet/Applications$ find ~ -type f -name "qt-opensource-linux-x86-5.4.1.run"
find: `/home/administrator/.gnupg': Permission denied
find: `/home/administrator/.dbus': Permission denied
/home/administrator/Downloads/FlareGet/Applications/qt-opensource-linux-x86-5.4.1.run
find: `/home/administrator/.cache/dconf': Permission denied
/home/administrator/Desktop/qt-opensource-linux-x86-5.4.1.run
find: `/home/administrator/.gvfs': Permission denied

@A.B.

administrator@pc-7:~/Downloads/FlareGet/Applications$ chmod +x ~/Downloads/FlareGet/Applications/qt-opensource-linux-x86-5.4.1.run 
administrator@pc-7:~/Downloads/FlareGet/Applications$ ~/Downloads/FlareGet/Applications/qt-opensource-linux-x86-5.4.1.run
bash: /home/administrator/Downloads/FlareGet/Applications/qt-opensource-linux-x86-5.4.1.run: No such file or directory

@A.B.

This is another thing which I tried:

administrator@pc-7:~/Downloads/FlareGet/Applications$ chmod +x qt-opensource-linux-x86-5.4.1.run
administrator@pc-7:~/Downloads/FlareGet/Applications$ . qt-opensource-linux-x86-5.4.1.run
bash: .: qt-opensource-linux-x86-5.4.1.run: cannot execute binary file
A.B.
  • 92,125

2 Answers2

1

Couple of comments. The *.run you are trying to download has x86 in the file name, meaning it is for 32-bit OS, so that is one thing to keep track of. If your OS is 64-bit, you may need to install libc6:i386 . More on that here

Second, in my tests running the file requires full path to the file, not just ./qt*.run. I cannot explain why it does it that way, but it just does.

Bellow is a small script I wrote that determines correct OS version, downloads appropriate version of QT, and installs it from $HOME/QT folder. Perhaps a little verbose, but it should ease the manual labor.

#!/bin/bash
# set -x

printf "Qt INSTALLER SCRIPT STARTED\n"
ARCH=$(uname -m)
printf "Your OS is %s \n" $ARCH 

if [ $ARCH = "x86_64" ];then
  FILE="qt-opensource-linux-x64-5.4.1.run"
else 
  FILE="qt-opensource-linux-x86-5.4.1.run"
fi

cd $HOME

if [ ! -e QT ];then
  printf "CREATING $HOME/QT folder\n" 
  mkdir $HOME/QT
fi

cd $HOME/QT

if [ ! -e $FILE  ];then
    printf "DOWNLOADING BINARY  to %s\n" $(pwd)
    wget http://download.qt.io/archive/qt/5.4/5.4.1/$FILE
fi

echo $PWD
chmod 755 $FILE
$( readlink -f $FILE )
0

Make the file qt-opensource-linux-x86-5.4.1.run executable

chmod +x ~/Downloads/FlareGet/Applications/qt-opensource-linux-x86-5.4.1.run 

Run with

~/Downloads/FlareGet/Applications/qt-opensource-linux-x86-5.4.1.run

And you will see this

enter image description here

A.B.
  • 92,125