<div><br />Hi,</div>
<div> </div>
<div>I'm trying to install PyNIO from source code, building only the required (non-optional) external software.</div>
<div>- JPEG</div>
<div>- ZLIB</div>
<div>- HDF4</div>
<div>- NETCDF4 (no OpenDAP support)</div>
<div><br />Besides, I installed ncl_ncarg-6.2.1 (precompiled binaries), and the python module numpy.</div>
<div>under my private directory: /scratch/jonas/local/</div>
<div> </div>
<div> </div>
<div>problem 1:</div>
<div>  When try to install using the command line:</div>
<div>   python setup.py install --prefix=/scratch/jonas/local/</div>
<div> </div>
<div>   the script aborts at installation phase, when it tryies to copy a file Nio.pth to a system directory:</div>
<div>   /usr/lib64/python2.6/site-packages/ .</div>
<div> </div>
<div>  So, to have the installation in my user area, I used the command line :</div>
<div> </div>
<div>   python setup.py install --root=/scratch/jonas/local/</div>
<div>   The installation script ran to completion, apparently with no problem.</div>
<div>    Nio.pth is copied to     /scratch/jonas/local/usr/lib64/python2.6/site-packages</div>
<div>    and all other files to    /scratch/jonas/local/usr/local/lib64/python2.6/site-packages</div>
<div> </div>
<div> </div>
<div>   Does someone know why it tries to write a file in /usr/lib64..., once I'm installing in a user area (with --prefix) ? Is it a bug ?</div>
<div>   Or is it a consequence of some mistake of mine ?</div>
<div> </div>
<div> </div>
<div>problem 2:</div>
<div>    once updating PYTHONPATH to the new installation path.</div>
<div>    when I run the command:</div>
<div>    python -c 'import nio'</div>
<div> </div>
<div>    returns the message:</div>
<div>      ImportError: /scratch/jonas/local/usr/local/lib64/python2.6/site-packages/PyNIO/nio.so: undefined symbol: SWreadfield</div>
<div>  </div>
<div>     However, SWreadfield is a symbol defined in HDF-EOS library. As HAS_HDFEOS was not defined, I expected it would not be referenced.</div>
<div>    </div>
<div>     Checking the file nio.so with command nm, I found many symbols defined in other optional (not built) libraries ( HDFEOS, HDFEOS5, GRIB2, etc ).</div>
<div> </div>
<div>     Shall I redefine all undefined symbols with dummy value ?</div>
<div> </div>
<div>     Or, is this problem related to some mistake in installation ?</div>
<div> </div>
<div> </div>
<div>    Thanks,</div>
<div>    Jonas     </div>
<div>     </div>
<div> </div>
<div>     </div>
<div> </div>
<div> </div>
<div> </div>
<div> </div>
<div> </div>