On Fri, May 11, 2012 at 8:56 AM, 翁辉辉 <span dir="ltr">&lt;<a href="mailto:qfkq7850@mail.ustc.edu.cn" target="_blank">qfkq7850@mail.ustc.edu.cn</a>&gt;</span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
dear developers:<br>
<br>
    I try to install pylith from the source ,  I have install all the packages pylith needs ,and they all seem installed<br>
well.I have some unhappy experience from the different python version. I have two different version python2.4 and python 2.6, I find I can install Numpy only using python2.6 ,but if I install FIAT using python2.6, then  I can&#39;t import FIAT (the error is &quot;can&#39;t import Scientific python package&quot; ).So I have to install Numpy </blockquote>
<div><br></div><div>FIAT depends on ScientificPython. You now have to install that too.</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">using python2.6 and FIAT using python2.4, then I can import they all,but when ./configure pylith source it only can find  module Numpy,it is strange.Then I change python2.4 to default python,  in the dir $HOME/cig/lib/python2.4/site-packages I use the command &quot;ln -s $HOME/cig/lib/python2.6/site-packages/numpy&quot; and remove the DIR $HOME/cig/lib/python2.6/site-packages/ from PYTHONPATH ,then it works.  when I configure the pylith source<br>

./configure --enable-testing --prefix=/Data/DATA_wenghh/cig CPPFLAGS=&quot;-I/Data/DATA_wenghh/cig/include &quot; LDFLAGS=&quot;-L/Data/DATA_wenghh/cig/lib&quot; LIBS=&quot;&quot; CC=gcc CXX=g++ GC=gfortran F77=gfortran CFLAGS=&quot;-g -O&quot; CXXFLAGS=&quot;-g -O&quot;<br>

<br>
the config.log have some error about &quot;confdefs.h&quot; and a warning as follows:<br>
configure:16803: WARNING: parallel HDF5 library not found; DO NOT attempt to use HDF5 in parallel OR configure HDF5 with &#39;--enable-parallel&#39;<br>
<br>
 and it create Makefile. when I make it,it compiles normally untill it have error as follows (partial make.log):<br></blockquote><div><br></div><div>You have to send the full log. Without it, we do not know what happened.</div>
<div><br></div><div>    Matt</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
/bin/sh ../../libtool  --tag=CXX   --mode=compile g++ -DHAVE_CONFIG_H -I. -I../.. -I../../libsrc -I/Data/DATA_wenghh/petsc-dev/include -I/Data/DATA_wenghh/petsc-dev/arch-linux2-cxx-debug/include -I/Data/DATA_wenghh/petsc-dev/include/sieve -I/usr/local/include -I/Data/DATA_wenghh/cig/lib/python2.4/site-packages/pythia-0.8.1.14-py2.4.egg -I/usr/local/include/python2.6  -DENABLE_HDF5 -I/Data/DATA_wenghh/cig/include   -g -O -MT Formulation.lo -MD -MP -MF .deps/Formulation.Tpo -c -o Formulation.lo `test -f &#39;problems/Formulation.cc&#39; || echo &#39;./&#39;`problems/Formulation.cc<br>

libtool: compile:  g++ -DHAVE_CONFIG_H -I. -I../.. -I../../libsrc -I/Data/DATA_wenghh/petsc-dev/include -I/Data/DATA_wenghh/petsc-dev/arch-linux2-cxx-debug/include -I/Data/DATA_wenghh/petsc-dev/include/sieve -I/usr/local/include -I/Data/DATA_wenghh/cig/lib/python2.4/site-packages/pythia-0.8.1.14-py2.4.egg -I/usr/local/include/python2.6 -DENABLE_HDF5 -I/Data/DATA_wenghh/cig/include -g -O -MT Formulation.lo -MD -MP -MF .deps/Formulation.Tpo -c problems/Formulation.cc  -fPIC -DPIC -o .libs/Formulation.o<br>

../../libsrc/pylith/meshio/DataWriterHDF5.cc: In member function ?.oid pylith::meshio::DataWriterHDF5&lt;mesh_type, field_type&gt;::open(const mesh_type&amp;, int, const char*, int)?.<br>
../../libsrc/pylith/meshio/DataWriterHDF5.cc:219: error: there are no arguments to ?.etscViewerHDF5GetFileId?.that depend on a template parameter, so a declaration of ?.etscViewerHDF5GetFileId?.must be available<br>
../../libsrc/pylith/meshio/DataWriterHDF5.cc:219: error: (if you use ?.fpermissive?. G++ will accept your code, but allowing the use of an undeclared name is deprecated)<br>
../../libsrc/pylith/meshio/DataWriterHDF5.cc: In member function ?.oid pylith::meshio::DataWriterHDF5&lt;mesh_type, field_type&gt;::writeVertexField(double, field_type&amp;, const mesh_type&amp;)?.<br>
../../libsrc/pylith/meshio/DataWriterHDF5.cc:343: error: there are no arguments to ?.etscViewerHDF5GetFileId?.that depend on a template parameter, so a declaration of ?.etscViewerHDF5GetFileId?.must be available<br>
../../libsrc/pylith/meshio/DataWriterHDF5.cc: In member function ?.oid pylith::meshio::DataWriterHDF5&lt;mesh_type, field_type&gt;::writeCellField(double, field_type&amp;, const char*, int)?.<br>
../../libsrc/pylith/meshio/DataWriterHDF5.cc:434: error: there are no arguments to ?.etscViewerHDF5GetFileId?.that depend on a template parameter, so a declaration of ?.etscViewerHDF5GetFileId?.must be available<br>
../../libsrc/pylith/meshio/DataWriterHDF5.cc: In member function ?.oid pylith::meshio::DataWriterHDF5&lt;mesh_type, field_type&gt;::open(const mesh_type&amp;, int, const char*, int) [with mesh_type = pylith::topology::Mesh, field_type = pylith::topology::Field&lt;pylith::topology::Mesh, ALE::IGeneralSection&lt;int, double, ALE::malloc_allocator&lt;double&gt; &gt; &gt;]?.<br>

problems/Formulation.cc:446:   instantiated from here<br>
../../libsrc/pylith/meshio/DataWriterHDF5.cc:219: error: ?.etscViewerHDF5GetFileId?.was not declared in this scope<br>
../../libsrc/pylith/meshio/DataWriterHDF5.cc: In member function ?.oid pylith::meshio::DataWriterHDF5&lt;mesh_type, field_type&gt;::writeVertexField(double, field_type&amp;, const mesh_type&amp;) [with mesh_type = pylith::topology::Mesh, field_type = pylith::topology::Field&lt;pylith::topology::Mesh, ALE::IGeneralSection&lt;int, double, ALE::malloc_allocator&lt;double&gt; &gt; &gt;]?.<br>

problems/Formulation.cc:451:   instantiated from here<br>
../../libsrc/pylith/meshio/DataWriterHDF5.cc:343: error: ?.etscViewerHDF5GetFileId?.was not declared in this scope<br>
../../libsrc/pylith/meshio/DataWriterHDF5.cc: In member function ?.oid pylith::meshio::DataWriterHDF5&lt;mesh_type, field_type&gt;::writeCellField(double, field_type&amp;, const char*, int) [with mesh_type = pylith::topology::Mesh, field_type = pylith::topology::Field&lt;pylith::topology::Mesh, ALE::IGeneralSection&lt;int, double, ALE::malloc_allocator&lt;double&gt; &gt; &gt;]?.<br>

problems/Formulation.cc:471:   instantiated from here<br>
../../libsrc/pylith/meshio/DataWriterHDF5.cc:434: error: ?.etscViewerHDF5GetFileId?.was not declared in this scope<br>
make[4]: *** [Formulation.lo] Error 1<br>
make[4]: Leaving directory `/Data/DATA_wenghh/pylith-1.6.3/libsrc/pylith&#39;<br>
make[3]: *** [all-recursive] Error 1<br>
make[3]: Leaving directory `/Data/DATA_wenghh/pylith-1.6.3/libsrc/pylith&#39;<br>
make[2]: *** [all-recursive] Error 1<br>
make[2]: Leaving directory `/Data/DATA_wenghh/pylith-1.6.3/libsrc&#39;<br>
make[1]: *** [all-recursive] Error 1<br>
make[1]: Leaving directory `/Data/DATA_wenghh/pylith-1.6.3&#39;<br>
make: *** [all] Error 2<br>
<br>
it seem is something about HDF5 .I use centOS 5 ,and  I can find the libary in /usr/lib64 but cannot find header file,then I  install it by myself ,but it still can not work . any suggestion shall be appreciated.<br>
<br>
Thanks<br>
huihui weng<br>
<br>
_______________________________________________<br>
CIG-SHORT mailing list<br>
<a href="mailto:CIG-SHORT@geodynamics.org">CIG-SHORT@geodynamics.org</a><br>
<a href="http://geodynamics.org/cgi-bin/mailman/listinfo/cig-short" target="_blank">http://geodynamics.org/cgi-bin/mailman/listinfo/cig-short</a><br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br>What most experimenters take for granted before they begin their experiments is infinitely more interesting than any results to which their experiments lead.<br>
-- Norbert Wiener<br>