<!--/*SC*/DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"/*EC*/-->
<html><head><title></title><style type="text/css"><!-- body{padding:1ex;margin:0;font-family:sans-serif;font-size:small}a[href]{color:-moz-hyperlinktext!important;text-decoration:-moz-anchor-decoration}blockquote{margin:0;border-left:2px solid #144fae;padding-left:1em}blockquote blockquote{border-color:#006312}blockquote blockquote blockquote{border-color:#540000} --></style></head><body><div style="font-family: Arial; font-size: medium;" dir="ltr"><div>
        &nbsp;</div>
<div class="defangedMessage">
        <div id="me21193">
                <div>
                        On Mon, 14 Mar 2011 15:05 -0700, &quot;Victor Muñoz&quot; &lt;chewaka.87@gmail.com&gt; wrote:</div>
                <blockquote class="me21193QuoteMessage" type="cite">
                        Dear all,<br />
                        <br />
                        You were right. When I type:<br />
                        <br />
                        &nbsp; &nbsp; &nbsp; &nbsp;python -c &quot;import Scientific.IO.NetCDF&quot;<br />
                        <br />
                        I get an importError:<br />
                        <br />
                        ImportError: libnetcdf.so.4: cannot open shared object file: No such file or directory<br />
                        <br />
                        I have tried to set the NETCDF_PREFIX variable:<br />
                        <br />
                        NETCDF_PREFIX=/usr/local/lib/netcdf/<br />
                        export NETCDF_PREFIX<br />
                        <br />
                        This directory is where include/netcdf.h and lib/libnetcdf.so are. However, I cannot make it work as I have always the same importError.<br />
                        &nbsp;</blockquote>
                <div class="me21193QuoteMessage" defang_type="cite">
                        &nbsp;</div>
                <div class="me21193QuoteMessage" defang_type="cite">
                        The problem is not at the Python module level, but at the OS-level name resolution of dynamic libraries. The ScientificPython installation has found your library, but at run-time it is not found by the OS.</div>
                <div class="me21193QuoteMessage" defang_type="cite">
                        &nbsp;</div>
                <div class="me21193QuoteMessage" defang_type="cite">
                        The solution is unfortunately OS-dependent. Under MacOS, you need to look at the value of DYLD_LIBRARY_PATH. Under Linux, your netCDF installation probably didn&#39;t do an ldconfig call. If you have someone around who knows your OS well, ask; this is not even a Python-specific problem.</div>
                <div class="me21193QuoteMessage" defang_type="cite">
                        &nbsp;</div>
                <div class="me21193QuoteMessage" defang_type="cite">
                        Konrad.</div>
                <pre>
--
---------------------------------------------------------------------
Konrad Hinsen
Centre de Biophysique Moléculaire, CNRS Orléans
Synchrotron Soleil - Division Expériences
Saint Aubin - BP 48
91192 Gif sur Yvette Cedex, France
Tel. +33-1 69 35 97 15
E-Mail: research AT khinsen DOT fastmail DOT net
---------------------------------------------------------------------
</pre>
                <div>
                        &nbsp;</div>
        </div>
</div>
</div></body></html>