mesa-users] MESA/PGPLOT

Ehsan Moravveji moravveji at
Tue Aug 10 19:45:25 EDT 2010

Hi all,
This is my first post to the users list, since I have
always asked Bill and Aaron, and these nice people help with such a
patience. Their support are appreciable to me.
I wished to invoke the
pgstar capability in MESA, but had a problem with linking and compiling to
one library. As an Ubuntu user, I install PGPLOT through these series of
sudo apt-get install pgplot5
sudo apt-get install
libpng12-dev libpng3-dev zlib1g-dev libx11-dev sudo apt-get install
build-essential automake checkinstall

next, I check for the
path to pgplot5
root at ehsan:/home/ehsan# whereis pgplot5
and try to successfully make a plot. So, for sure, I
have a working PGPLOT.
Now, to use it in MESA, I edit makefile_header
as described by Bill as USE_PGSTAR = YES
-L/usr/local/pgplot -lpgplot -lX11 -lxcb -lXau -lXdmcp -lpng -lz
-L/usr/lib -lXext
However,  I receive an error during the compile
process regarding the Xext library. The error is:
/usr/bin/ld: cannot
find -lXext
collect2: ld returned 1 exit status
make: *** [star]
Error 1


I check for the Xext library, and
make sure I give it a correct path:
root at ehsan:/home/ehsan# find
/usr/ | grep Xext
So, while I have all required libraries
installed, there seems to be something wrong. I'd like to know if you had
the same problem, and could solve it, and also interested to share the
Best wishes.

Moravveji, Ehsan.
Ph.D student of Astrophysics.
Department of Physics, Institute for
Advanced Studies in Basic Sciences (IASBS), GavaZang Road, 
45137-66731, Iran.

Office: (+98)241-415 2212
(+98)241-415 2104

This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the Mesa-users mailing list