[Getdp] installation on mac

Christophe Geuzaine cgeuzaine at ulg.ac.be
Wed Mar 30 12:33:47 CEST 2011


Hi François - I fixed the PETSC_ARCH bug but did not yet fix the issue 
with CLINKER (maybe the petsc "variables" file is not installed on 
macports)?

(We should probably switch the getdp build system to cmake anyway, which 
would bring us up to speed with what we do in gmsh.)

Christophe

On 21/03/11 15:57, François Henrotte wrote:
>
> Je viens juste d'installer getdp sur mac à partir de svn
> avec les librairies suivantes:
>
> petsc, slepc, openmpi installées à partir de macports
>
> gfortran: http://gcc.gnu.org/wiki/GFortranBinaries
> bin: /usr/local/bin/gfortran
> lib: /usr/local/gfortran/lib/libgfortran.a etc.
>
> gsl:  http://www.gnu.org/software/gsl/
> lib:  /usr/local/lib/libgsl.a etc.
>
> Troispetites choses à résoudre pour que l'installation
> se fasse sans erreur:
>
> 1>  Le path de petsc sous mac ports
>
> /opt/local/lib/petsc/include
>
> ne contient pas "$petsc_arch" (darwin donc)
>
> Il faut donc que PETSC_ARCH=""  ne provoque pas l'arrêt de la configuration.
> J'ai supprimé les 3 ligne suivantes du "configure.in" :
>
> if test "x${PETSC_ARCH}" = "x"; then
>    AC_MSG_ERROR([No PETSC_ARCH: run configure again with --with-petsc-arch.])
> fi
>
> 2>  La variable CLINKER est mal définie (pas trouvé où elle est définie d'ailleurs).
> Elle vaut "openmpicc" alors qu'il faut un compilateur c++
> Ai ajouté dans "variables" la ligne
>
> CLINKER=openmpicxx
>
> 3>  Le comment dans "variables.in"
>
> # If you need to link to dynamic libraries installed in non-standard
> # locations and are using the GNU linker, you may want to add
> # '-Wl,--rpath,/path/to/dynamic/library' to the 'LINKER' variable
> # below. Alternatively, you could edit the 'LD_LIBARY_PATH'
> # environement variable or use the 'ldconfig' program.
>
> est très 'linux based' et contient qqs erreurs de frappe (--rpath, LIBARY)
> Version corrigée:
>
> # If you need to link to libraries installed in non-standard
> # locations and are using the GNU linker, you may want to add
> # '-Wl,-rpath,/path/to/library' to the 'LINKER' variable
> # below. Alternatively, you could edit the 'LD_LIBRARY_PATH' (linux)
> # environement variable or use the 'ldconfig' program (linux).
>
> Pour localiser la librairie fortran, j'ai dans mon cas:
>
> LINKER=${CLINKER} -L/usr/local/gfortran/lib
>
>
>
> _______________________________________________
> getdp mailing list
> getdp at geuz.org
> http://www.geuz.org/mailman/listinfo/getdp
>


-- 
Prof. Christophe Geuzaine
University of Liege, Electrical Engineering and Computer Science
http://www.montefiore.ulg.ac.be/~geuzaine