[petsc-users] anaconda installation of petsc

Balay, Satish balay at mcs.anl.gov
Wed Oct 23 20:06:46 CDT 2019


Likely this install is broken as mpicc [used here] is unable to find 'clang' used to built it.
And we have no idea how the petsc install in anaconda works.

Suggest installing PETSc from source - this is what we support if you encounter problems.

Satish

On Wed, 23 Oct 2019, Gideon Simpson via petsc-users wrote:

> I have an anaconda installation of petsc and I was trying to use it with
> some existing petsc codes, with the makefile:
> 
> include ${PETSC_DIR}/conf/variables
> include ${PETSC_DIR}/conf/rules
> 
> all: ex1
> 
> hello: ex1.o
> ${CLINKER} -o ex1 ex1.o ${LIBS} ${PETSC_LIB}
> 
> and PETSC_DIR=/Users/gideonsimpson/anaconda3/lib/petsc
> 
> However, when i try to call make on this, I get
> 
> mpicc -o ex1.o -c -march=core2 -mtune=haswell -mssse3 -ftree-vectorize
> -fPIC -fPIE -fstack-protector-strong -O2 -pipe -isystem
> /Users/gideonsimpson/anaconda3/include -O3 -D_FORTIFY_SOURCE=2
> -mmacosx-version-min=10.9 -isystem /Users/gideonsimpson/anaconda3/include
>  -I/Users/gideonsimpson/anaconda3/include  -D_FORTIFY_SOURCE=2
> -mmacosx-version-min=10.9 -isystem /Users/gideonsimpson/anaconda3/include
>  `pwd`/ex1.c
> /Users/gideonsimpson/anaconda3/bin/mpicc: line 282:
> x86_64-apple-darwin13.4.0-clang: command not found
> make: *** [ex1.o] Error 127
> 
> 
> 



More information about the petsc-users mailing list