[mcstas-users] Perl problem Ubuntu 11.10
Willendrup, Peter Kjær
PKWI at risoe.dtu.dk
Mon Oct 24 12:45:25 CEST 2011
Hello Jean-Francois,
On Oct 24, 2011, at 10:10 , <Jean-Francois.Moulin at hzg.de<mailto:Jean-Francois.Moulin at hzg.de>> <Jean-Francois.Moulin at hzg.de<mailto:Jean-Francois.Moulin at hzg.de>> wrote:
I just upgraded my ubuntu to 11.10 and now get the following error
/usr/bin/perl: symbol lookup error: /usr/lib/libpgplot.so.5: undefined symbol: XOpenDisplay
(this of course means I cannot plot anything)
any clue?
There seems to be a problem with the perl-PGPLOT provided with the newest Ubuntu… Will file a bug-report with them. It turns out there is a work-around here:
1) Install a few packages:
apt-get install gfortran libextutils-f77-perl libx11-dev
2) Get, build and install perl-PGPLOT from CPAN:
wget http://search.cpan.org/CPAN/authors/id/K/KG/KGB/PGPLOT-2.21.tar.gz
tar xzvf PGPLOT-2.21.tar.gz
cd PGPLOT-2.21/ && perl Makefile.PL && make && sudo make install
Cheers,
Peter
--
-------------------------------------------------------------------
Peter Willendrup - Development engineer
Risø DTU, Materials Research Division
Frederiksborgvej 399
DK-4000 Roskilde
Tlf.: (+45) 4677 5862
Mobil.: (+45) 2125 4612
Fax.: (+45) 4766 5758
Email: pkwi at risoe.dtu.dk<mailto:pkwi at risoe.dtu.dk>
-------------------------------------------------------------------
More information about the mcstas-users
mailing list