Unable to display plot using the REPL. GKS errors

I am also getting these errors:

julia> plot(rand(10))
/home/affans/.julia/packages/GR/Atztx/src/../deps/gr/bin/gksqt: error while loading shared libraries: libQt5Widgets.so.5: cannot open shared object file: No such file or directory
connect: Connection refused
GKS: can't connect to GKS socket application

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

Setting ENV["GKSwstype"] = "nul" or ENV["GKSwstype"] = "140" works but plot(rand(10)) dosn’t really do anything (I am using an X-server to pop up the image from my server to local). So anyway I can get this to work on a server (without sudo access, so can’t install Qt5Widgets.so.5) and with x-forwarding?