[CIG-SHORT] Regarding pylith-installer-2.1.3-0 Configuration and Compilation

Brad Aagaard baagaard at usgs.gov
Tue Aug 9 09:06:48 PDT 2016


Shraddha,

PyLith and some of its dependencies use Python modules and these require 
a shared version of the Python library. On a Linux system the Python 
library will be libpython-2.7.so and on a Mac it will be 
libpython-2.7.dylib. You have the static version of the Python library 
(libpython-2.7.a), so the configure fails when it checks for the shared 
Python library. You need reinstall Python so that it has a shared library.

I do not understand what options you are trying to use in your configure 
command. Using --disable-PACKAGE tells the installer not to build that 
package, but --with-PACKAGE is not a valid configure argument for many 
of the packages. I believe all of your --with-PACKAGE=yes will be 
ignored (these should trigger a warning at the beginning of stdout). Use 
--enable-PACKAGE to tell the installer which dependencies to install.

Spatialdata and nemesis are not being installed because you told 
configure not to install them by using the command line arguments
--disable-spatialdata --disable-nemesis

Regards,
Brad


On 08/08/2016 10:07 PM, Shraddha Jani wrote:
> Dear Sir/Madam,
>
>     I have installed following dependencies for pylith.
>
> cppunit-1.13.2, fiat-2016.1.0, mpmath-0.19, pythia-0.8.1.17,
> setuptools-25.1.1, sympy-1.0, h5py-2.6.0.
>
> I am not able to install spatialdata and nemesis-1.4 still.
>
> Now, I have used below mentioned configure command.
>
> ./configure --prefix=/home/internal/sysadmin/shraddhav/PARAMYuva-Installed/PYLITH/pylith
> CC=mpiicc CXX=mpiicpc FC=mpiifort PETSC_DIR=/opt/app/PETSC/petsc-3.6.3
> --enable-force-install --enable-mpi --disable-cppunit --disable-numpy
> --disable-hdf5 --disable-h5py --disable-netcdf --disable-netcdfpy
> --disable-cmake --disable-petsc --disable-spatialdata --disable-nemesis
> --disable-fiat --disable-setuptools --with-cppunit=yes --with-numpy=yes
> --with-hdf5=yes --with-h5py=yes --with-netcdf=yes --with-cmake=yes
> --with-petsc=yes --with-spatialdata=yes --with-fiat=yes
> --with-setuptools=yes
> CPPFLAGS="-I/home/internal/sysadmin/shraddhav/PARAMYuva-Installed/PYLITH/cppunit-1.13.2/BUILD/include
> -I/home/internal/sysadmin/shraddhav/LIBS/HDF5/cpu/intel/CompXE_20131117/IMPI-410024/hdf5-1.8.11/include
> -I/opt/app/netcdf-4.3/include
> -I/home/internal/sysadmin/shraddhav/LIBS/PYTHON/Python-2.7.8/include"
> LDFLAGS="-L/home/internal/sysadmin/shraddhav/PARAMYuva-Installed/PYLITH/cppunit-1.13.2/BUILD/lib
> -L/home/internal/sysadmin/shraddhav/LIBS/HDF5/cpu/intel/CompXE_20131117/IMPI-410024/hdf5-1.8.11/lib
> -L/opt/app/netcdf-4.3/lib
> -L/home/internal/sysadmin/shraddhav/LIBS/PYTHON/Python-2.7.8/lib"
> LIBS="-lcppunit -lhdf5 -lnetcdf -lpython2.7" --host=x86_64 2>&1 | tee
> LOG-config-5Aug16-1
>
> I am getting below mentioned error while using above configure command.
>
> checking for Python.h... yes
> checking python config... ok
> checking whether -lpython2.7 is a shared library... configure: error: in
> `/home/internal/sysadmin/shraddhav/PARAMYuva-Installed/PYLITH/pylith-installer-2.1.3-0':
>
> configure: error: cannot run test program while cross compiling
> See `config.log' for more details
>
> Though , libpython-2.7.a is available.
>
> Please help me to resolve the issue.
> Kindly provide me the webpage where pylith installation process and its
> dependencies versions mentioned.
>
> I am using below references:
>
> https://github.com/geodynamics/pylith_installer/blob/master/INSTALL
>
>   and README file
>
> Your help will be greatly appreciated.
>
> Thanks & Regards,
> Shraddha Jani
>
>
> -------------------------------------------------------------------------------------------------------------------------------
>
> [ C-DAC is on Social-Media too. Kindly follow us at:
> Facebook: https://www.facebook.com/CDACINDIA & Twitter: @cdacindia ]
>
> This e-mail is for the sole use of the intended recipient(s) and may
> contain confidential and privileged information. If you are not the
> intended recipient, please contact the sender by reply e-mail and destroy
> all copies and the original message. Any unauthorized review, use,
> disclosure, dissemination, forwarding, printing or copying of this email
> is strictly prohibited and appropriate legal action will be taken.
> -------------------------------------------------------------------------------------------------------------------------------
>
>
>
> _______________________________________________
> CIG-SHORT mailing list
> CIG-SHORT at geodynamics.org
> http://lists.geodynamics.org/cgi-bin/mailman/listinfo/cig-short
>



More information about the CIG-SHORT mailing list