New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

McCode mc/ fails on debian testing (and prob. newer) #558

ebknudsen opened this Issue Nov 15, 2017 · 3 comments


None yet
2 participants

ebknudsen commented Nov 15, 2017

The perl plotting tools have a problem on debian testting and newer preventing also mc/mxgui from starting. On these systems a pgplot replacement based on giza is preferred as libpgplot-perl depends on libcpgplot0 and libpgplot0 (which are giza-based).

This manifests itself by and crashing with error messages similar to:

%giza - ERROR - giza_open_device: Unknown device, device not opened
Opening new window (pgopen) failed: -1
 at /usr/lib/x86_64-linux-gnu/perl5/5.26/PDL/Graphics/PGPLOT/ line 2412.
	PDL::Graphics::PGPLOT::Window::release_and_barf("Opening new window (pgopen) failed: -1\x{a}") called at /usr/lib/x86_64-linux-gnu/perl5/5.26/PDL/Graphics/PGPLOT/ line 2606


  • m[cx]gui crashes since it attempts to open the pgxwin_server.
  • libpgplot-perl is configured to load the shared libraries ending with "so.0" and so by default loads the giza-libraries instead.

Workarounds exist:

  1. Install the native pgplot5 packages from the non-free section.
  2. change symlinks installed by libpgplot and libcpgplot to point to the pgplot5-versions of the library

cd /usr/lib/x86_64-linux-gnu
sudo ln -sf ../
sudo ln -sf ../

Alternatively it is possible to directly use the giza-libraries by setting the environment variable PGPLOT_DEV

export PGPLOT_DEV="/xwin"

This has drawbacks: 1. The 2D-plots are not nice. 2. The plot windows do not behave nicely.
This method is not recommended.


This comment has been minimized.


willend commented Dec 21, 2017

I think we could easily do the links in a postinstall script?


This comment has been minimized.


willend commented Apr 24, 2018

@ebknudsen we should decide what to do here


This comment has been minimized.


ebknudsen commented Sep 14, 2018

Have decided to change the default pgplot device is now "/xwin" on debian. That way it works out of the box, irrespective of the workaround above (which is reported to not always work). Ref. commit 137ee31.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment