From: Ehsan M. <mor...@ia...> - 2010-08-11 00:09:31
|
<p> Hi all,</p><p>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.</p><p>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 commands:</p><p>sudo apt-get install pgplot5<br />sudo apt-get install libpng12-dev libpng3-dev zlib1g-dev libx11-dev<br />sudo apt-get install build-essential automake checkinstall<br /></p><p>next, I check for the path to pgplot5<br />root@ehsan:/home/ehsan# whereis pgplot5<br />pgplot5: /usr/lib/pgplot5</p><p>and try to successfully make a plot. So, for sure, I have a working PGPLOT.</p><p>Now, to use it in MESA, I edit makefile_header as described by Bill as</p><p>USE_PGSTAR = YES<br />LOAD_PGPLOT = -L/usr/local/pgplot -lpgplot -lX11 -lxcb -lXau -lXdmcp -lpng -lz -L/usr/lib -lXext</p><p>However, I receive an error during the compile process regarding the Xext library. The error is:</p><p>/usr/bin/ld: cannot find -lXext<br />collect2: ld returned 1 exit status<br />make: *** [star] Error 1<br /><br />FAILED<br /><br /><br /><br />-- <br />Moravveji, Ehsan.<br />Ph.D student of Astrophysics.<br />Department of Physics, Institute for Advanced Studies in Basic Sciences (IASBS), GavaZang Road, <br />Zanjan 45137-66731, Iran.<br /><br />Office: (+98)241-415 2212<br />Fax: (+98)241-415 2104<br />http://iasbs.ac.ir/students/moravveji</p> |