Quantcast
Channel: Active questions tagged windows-subsystem-for-linux - Ask Ubuntu
Viewing all articles
Browse latest Browse all 2930

Unable to run gnuplot on Ubuntu WSL2 - cannot connect to display

$
0
0

I have installed gnuplot on Ubuntu with sudo apt install gnuplot-x11, then installed vcxsrv on Windows and run it: vcxsrv

I would then expect that running gnuplot from bash and typing plot sin(x) would produce me a graph, however I receive this error: gnuplot

I should add that I have added those options to zshrc:

export QT_DEBUG_PLUGINS=1export QT_PLUGIN_PATH=/usr/lib/qt/pluginsexport DISPLAY=localhost:0.0export LIBGL_ALWAYS_INDIRECT=Yes

I have tried many options and solutions, but with no success. Would be very glad for help


Viewing all articles
Browse latest Browse all 2930

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>