qt link quebrado e variável de ambiente

0

Eu instalei o qt5.5 de PPA . Mas estou recebendo a seguinte saída.

ansh@ansh-HP:~$ qmake -query
qmake: could not exec '/usr/lib/x86_64-linux-gnu/qt4/bin/qmake': No such file or directory
ansh@ansh-HP:~$ ls /usr/lib/x86_64-linux-gnu/qt4/bin/
qdbus
ansh@ansh-HP:~$ qml
qml: could not exec '/usr/lib/x86_64-linux-gnu/qt4/bin/qml': No such file or directory
ansh@ansh-HP:~$ which qmake
/usr/bin/qmake
ansh@ansh-HP:~$ ll /usr/bin/qmake
lrwxrwxrwx 1 root root 9 Mar  9  2015 /usr/bin/qmake -> qtchooser*

A execução de /opt/qt55/bin/qt55-env.sh não está definindo as variáveis de ambiente para mim.

ansh@ansh-HP:~$ /opt/qt55/bin/qt55-env.sh
ansh@ansh-HP:~$ cat /opt/qt55/bin/qt55-env.sh
#!/bin/bash

QT_BASE_DIR=/opt/qt55
export QTDIR=$QT_BASE_DIR
export PATH=$QT_BASE_DIR/bin:$PATH

if [[ $(uname -m) == "x86_64" ]]; then
  export LD_LIBRARY_PATH=$QT_BASE_DIR/lib/x86_64-linux-gnu:$QT_BASE_DIR/lib:$LD_LIBRARY_PATH
else
  export LD_LIBRARY_PATH=$QT_BASE_DIR/lib/i386-linux-gnu:$QT_BASE_DIR/lib:$LD_LIBRARY_PATH
fi

export PKG_CONFIG_PATH=$QT_BASE_DIR/lib/pkgconfig:$PKG_CONFIG_PATH

TEST='echo $0 | grep wrapper'
if [ "$TEST" != "" ]; then
   exec 'echo $0 | sed s/-wrapper//' $*
fi
ansh@ansh-HP:~$ echo $PATH
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games 
    
por Ansh Kumar 01.10.2015 / 06:52

1 resposta

0

Conforme descrito na descrição do PPA:

% bl0ck_qu0te%

portanto

source /opt/qt55/bin/qt55-env.sh
    
por A.B. 01.10.2015 / 14:12