I need to install qt5 on my system and I can only run it as the normal user. When I try to run it as the "super user" I get this error:
root ~ # ./qt-opensource-linux-x64-5.3.2.run
No protocol specified
qt-opensource-linux-x64-5.3.2.run: cannot connect to X server :0.0
I've done:
root ~ # export DISPLAY=:0.0
root ~ # echo $DISPLAY
:0.0
Still no luck.
Questions:
Is there a reason why I wouldn't want to install it as root? Doesn't running it as root supposedly install it "system wide"?
How do I run it as root?
EDIT #1
My distribution is Debian Wheezy if it matters.
If I run it with sudo:
~$ sudo ./qt-opensource-linux-x64-5.3.2.run
No protocol specified
qt-opensource-linux-x64-5.3.2.run: cannot connect to X server :0.0
Same error.
EDIT #2
This script is from here and is the qt5 installer(Qt is a cross-platform application and UI development framework. Using Qt, you can easily port a GUI application to multiple platforms without rewriting application code from scratch.)
EDIT #3
From what I can gather from the directions on this site, the installer should be run as root, they run it with "sudo" in there?
Exerpt from directions:
$ chmod +x qt-linux-opensource-5.2.0-x86-offline.run
$ sudo ./qt-linux-opensource-5.2.0-x86-offline.run
sudo
? Does it work if you runxhost +
as your regular user before switching to root? – terdon♦ 15 hours agoxhost +
as I suggested in my first comment? – terdon♦ 15 hours ago