How to configure gks?

/home/azrael/.julia/packages/GR/oiZD3/src/../deps/gr/bin/gksqt: error while loading shared libraries: libQtGui.so.4: cannot o
pen shared object file: No such file or directory
connect: Connection refused
GKS: can't connect to GKS socket application
Did you start 'gksqt'?

GKS: Open failed in routine OPEN_WS
GKS: GKS not in proper state. GKS must be either in the state WSOP or WSAC in routine ACTIVATE_WS

I wanted to create plots with Julia and the Plots library. This accesses the gr-framework under the bonnet. I have already installed the gr-framework. How do I configure it so that it communicates with Julia?

ok, starting gksqt in shell did solve it for now. Do you know, how a permanent solution?