Hi,
The problem is that your version of the PNG library is older than the one that we used to build NCL with.
You may want to see if there's an upgrade available for X11 on your system that includes an upgrade for the PNG library.
Or, you can try using "fink" to upgrade your libpng library. Go to:
http://pdb.finkproject.org/pdb/package.php/libpng3-shlibs
I believe you can install this with:
fink install libpng3-shlibs
This may install the "libpng.3.dylib" file to a location like /sw/lib. You will then need to
set the DYLD_LIBRARY_PATH environment variable to point to this location.
For example:
export DYLD_LIBRARY_PATH=/sw/lib
or
setenv DYLD_LIBRARY_PATH /sw/lib
If you already have a DYLD_LIBRARY_PATH that's set to something else, then you can append the path:
export DYLD_LIBRARY_PATH=/sw/lib:$DYLD_LIBRARY_PATH
or
setenv DYLD_LIBRARY_PATH /sw/lib:$DYLD_LIBRARY_PATH
---------------------------------------------------------
Another option: I did try building a new "ncl" executable with PNG linked statically, but I didn't have time to try it.
If you want to give it a try:
ftp ftp.ucar.edu
<log in as "anonymous">
<Use email address as password>
cd /pub/scd/haley
get ncl.mac.nopng.gz
quit
Once you have the file, gunzip it, make sure it is executable, and move it to $NCARG_ROOT/bin:
gunzip ncl.mac.nopng.gz
chmod gou+x ncl.mac.nopng
mv ncl.mac.nopng $NCARG_ROOT/bin/.
Now you can use this new NCL executable instead of the one already installed on your system:
ncl.mac.nopng your_script.ncl
If you are comfortable that this executable works, you can replace
your old ncl executable with this new one. You should first make a
copy of your old one:
cd $NCARG_ROOT/bin
mv ncl ncl.old
mv ncl.mac.nopng ncl
This should should do it. Please let me know if you're successful with any of this, so I can
document the procedure on our website.
Thanks,
--Mary
On Apr 29, 2010, at 7:22 AM, °¨Àº¾Æ wrote:
> I hope to install new version of ncl.
>
> But. I have
>
> dyld: Library not loaded: /usr/X11/lib/libpng.3.dylib
> Referenced from: //Users/EUNA/SW/ncl_ncarg-5.2.0/bin/ncl
> Reason: Incompatible library version: ncl requires version 45.0.0 or later, but libpng.3.dylib provides version 39.0.0
> Trace/BPT trap
>
> Help me!!!
>
> <My computer infomation>
>
> *Mac version
> [iMac-07]:/Users/EUNA# uname -a
> Darwin iMacEPRL7.local 9.8.0 Darwin Kernel Version 9.8.0: Wed Jul 15 16:55:01 PDT 2009; root:xnu-1228.15.4~1/RELEASE_I386 i386
>
> * gcc version
> [iMac-07]:/Users/EUNA# gcc -v
> Using built-in specs.
> Target: i686-apple-darwin9
> Configured with: /var/tmp/gcc/gcc-5490~1/src/configure --disable-checking -enable-werror --prefix=/usr --mandir=/share/man --enable-languages=c,objc,c++,obj-c++ --program-transform-name=/^[cg][^.-]*$/s/$/-4.0/ --with-gxx-include-dir=/include/c++/4.0.0 --with-slibdir=/usr/lib --build=i686-apple-darwin9 --with-arch=apple --with-tune=generic --host=i686-apple-darwin9 --target=i686-apple-darwin9
> Thread model: posix
> gcc version 4.0.1 (Apple Inc. build 5490)
>
>
>
> G¸¶ÄÏÀÌ ³×À̹ö Ä«Æä¿¡ ¹é¸¸ °³ÀÇ ÄáÀ» ½ð´Ù!
> »ì¶û»ì¶û º½¹Ù¶÷¿¡ ³ªµµ Äà¹Ù¶÷½ý·¯ °¡°íÀâ´Ù [±âºÎÇϱâ] ¹Ì½Ì»ç ¾î¸Ó´Ï¿Í ³× ÀڸŰ¡ ºÎ¸£´Â Èñ¸ÁÀÇ ³ë·¡ [±âºÎÇϱâ]
> _______________________________________________
> ncl-talk mailing list
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Thu Apr 29 08:03:58 2010
This archive was generated by hypermail 2.1.8 : Thu Apr 29 2010 - 08:05:27 MDT