Satish,
If I just run, /Applications/MATLAB_R2018a.app/bin/matlab -nojvm -nodisplay, then Matlab can run normally in the terminal as Scott-Grad-MBP:~ zhihui$ /Applications/MATLAB_R2018a.app/bin/matlab -nojvm -nodisplay < M A T L A B (R) > Copyright 1984-2018 The MathWorks, Inc. R2018a (9.4.0.813654) 64-bit (maci64) February 23, 2018 For online documentation, see http://www.mathworks.com/support For product information, visit www.mathworks.com. >> ------------------ Original ------------------ From: "Balay, Satish";<ba...@mcs.anl.gov>; Date: Oct 26, 2018 To: "avatar"<648934...@qq.com>; Cc: "petsc-users"<petsc-users@mcs.anl.gov>; Subject: Re: [petsc-users] "Could not find a suitable archiver. Use --with-arto specify an archiver" >>>>>>>>>>>>>> Testing Matlab at /Applications/MATLAB_R2018a.app Executing: /Applications/MATLAB_R2018a.app/bin/matlab -nojvm -nodisplay -r "display(['Version ' version]); exit" stdout: < M A T L A B (R) > Copyright 1984-2018 The MathWorks, Inc. R2018a (9.4.0.813654) 64-bit (maci64) February 23, 2018 For online documentation, see http://www.mathworks.com/support For product information, visit www.mathworks.com. Version 9.4.0.813654 (R2018a) WARNING: Found Matlab at /Applications/MATLAB_R2018a.app but unable to run <<<<<<<<<<<<<<<<< So configure attempted to run Matlab - and perhaps got an error. What do you get if you run this manually? /Applications/MATLAB_R2018a.app/bin/matlab -nojvm -nodisplay -r "display(['Version ' version]); exit" echo $? Satish On Fri, 26 Oct 2018, avatar wrote: > Hi Satish, > > > The attached is the whole configure.log file. I could not past it here > because it is too big and crash my webpage. I could not use the latest > version right now, because the project is maintained by other people. If I > update petsc, I will break the whole project. But we will use the latest > version when the maintenance guys update the dependences. > > > Thank you. > > > > > ------------------ Original ------------------ > From: "Balay, Satish";<ba...@mcs.anl.gov>; > Date: Oct 26, 2018 > To: "avatar"<648934...@qq.com>; > Cc: "petsc-users"<petsc-users@mcs.anl.gov>; > Subject: Re: [petsc-users] "Could not find a suitable archiver. Use > --with-arto specify an archiver" > > > > 1. You need to send us the complete log. > > 2. Also use current release - petsc-3.10 [not 3.8] > > Satish > > On Fri, 26 Oct 2018, avatar wrote: > > > Scott-Grad-MBP:petsc-3.8.3 zhihui$ ./configure > > --with-matlab-dir=/Applications/MATLAB_R2018a.app/ > > =============================================================================== > > Configuring PETSc to compile on your system > > =============================================================================== > > TESTING: configureLibrary from > > config.packages.Matlab(config/BuildSystem/config/******************************************************************************* > > UNABLE to CONFIGURE with GIVEN OPTIONS (see configure.log for > > details): > > ------------------------------------------------------------------------------- > > You set a value for --with-matlab-dir, but /Applications/MATLAB_R2018a.app > > cannot be used > > ******************************************************************************* > > > > > > > > Part of the log file as follow > > > > > > #ifndef PETSC_HAVE_MPI_REDUCE_SCATTER > > #define PETSC_HAVE_MPI_REDUCE_SCATTER 1 > > #endif > > > > > > #ifndef PETSC_HAVE_MPI_COMBINER_DUP > > #define PETSC_HAVE_MPI_COMBINER_DUP 1 > > #endif > > > > > > #ifndef PETSC_HAVE_MPIIO > > #define PETSC_HAVE_MPIIO 1 > > #endif > > > > > > #ifndef PETSC_HAVE_MPI_COMM_SPAWN > > #define PETSC_HAVE_MPI_COMM_SPAWN 1 > > #endif > > > > > > #ifndef PETSC_HAVE_MPI_FINT > > #define PETSC_HAVE_MPI_FINT 1 > > #endif > > > > > > #ifndef PETSC_HAVE_MPI_IBARRIER > > #define PETSC_HAVE_MPI_IBARRIER 1 > > #endif > > > > > > #ifndef PETSC_HAVE_MPI_ALLTOALLW > > #define PETSC_HAVE_MPI_ALLTOALLW 1 > > #endif > > > > > > #ifndef PETSC_HAVE_OMPI_RELEASE_VERSION > > #define PETSC_HAVE_OMPI_RELEASE_VERSION 2 > > #endif > > > > > > #ifndef PETSC_HAVE_MPI_REDUCE_LOCAL > > #define PETSC_HAVE_MPI_REDUCE_LOCAL 1 > > #endif > > > > > > #ifndef PETSC_HAVE_MPI_REPLACE > > #define PETSC_HAVE_MPI_REPLACE 1 > > #endif > > > > > > #ifndef PETSC_HAVE_MPI_EXSCAN > > #define PETSC_HAVE_MPI_EXSCAN 1 > > #endif > > > > > > #ifndef PETSC_HAVE_MPI_C_DOUBLE_COMPLEX > > #define PETSC_HAVE_MPI_C_DOUBLE_COMPLEX 1 > > #endif > > > > > > #ifndef PETSC_HAVE_MPI_FINALIZED > > #define PETSC_HAVE_MPI_FINALIZED 1 > > #endif > > > > > > #ifndef PETSC_USE_INFO > > #define PETSC_USE_INFO 1 > > #endif > > > > > > #ifndef PETSC_Alignx > > #define PETSC_Alignx(a,b) > > #endif > > > > > > #ifndef PETSC_USE_BACKWARD_LOOP > > #define PETSC_USE_BACKWARD_LOOP 1 > > #endif > > > > > > #ifndef PETSC_USE_DEBUG > > #define PETSC_USE_DEBUG 1 > > #endif > > > > > > #ifndef PETSC_USE_LOG > > #define PETSC_USE_LOG 1 > > #endif > > > > > > #ifndef PETSC_IS_COLOR_VALUE_TYPE_F > > #define PETSC_IS_COLOR_VALUE_TYPE_F integer2 > > #endif > > > > > > #ifndef PETSC_IS_COLOR_VALUE_TYPE > > #define PETSC_IS_COLOR_VALUE_TYPE short > > #endif > > > > > > #ifndef PETSC_USE_CTABLE > > #define PETSC_USE_CTABLE 1 > > #endif > > > > > > #ifndef PETSC_MEMALIGN > > #define PETSC_MEMALIGN 16 > > #endif > > > > > > #ifndef PETSC_LEVEL1_DCACHE_LINESIZE > > #define PETSC_LEVEL1_DCACHE_LINESIZE 32 > > #endif > > > > > > #ifndef PETSC_LEVEL1_DCACHE_SIZE > > #define PETSC_LEVEL1_DCACHE_SIZE 32768 > > #endif > > > > > > #ifndef PETSC_LEVEL1_DCACHE_ASSOC > > #define PETSC_LEVEL1_DCACHE_ASSOC 2 > > #endif > > > > > > #ifndef PETSC_HAVE_CLOSURE > > #define PETSC_HAVE_CLOSURE 1 > > #endif > > > > > > #ifndef PETSC__BSD_SOURCE > > #define PETSC__BSD_SOURCE 1 > > #endif > > > > > > #ifndef PETSC__DEFAULT_SOURCE > > #define PETSC__DEFAULT_SOURCE 1 > > #endif > > > > > > #ifndef PETSC_HAVE_FORTRAN_GET_COMMAND_ARGUMENT > > #define PETSC_HAVE_FORTRAN_GET_COMMAND_ARGUMENT 1 > > #endif > > > > > > #ifndef PETSC_HAVE_GFORTRAN_IARGC > > #define PETSC_HAVE_GFORTRAN_IARGC 1 > > #endif > > > > > > #ifndef PETSC_USE_BYTES_FOR_SIZE > > #define PETSC_USE_BYTES_FOR_SIZE 1 > > #endif > > > > > > #ifndef PETSC_HAVE_SYS_SYSCTL_H > > #define PETSC_HAVE_SYS_SYSCTL_H 1 > > #endif > > > > > > #endif > > **** C specific Configure header > > /var/folders/z_/2vhmh9zx3kx3h80k5wbkjmtr0000gp/T/petsc-yrHkm7/conffix.h **** > > #if !defined(INCLUDED_UNKNOWN) > > #define INCLUDED_UNKNOWN > > > > > > #if defined(__cplusplus) > > extern "C" { > > } > > #else > > #endif > > #endif > > ******************************************************************************* > > UNABLE to CONFIGURE with GIVEN OPTIONS (see configure.log for > > details): > > ------------------------------------------------------------------------------- > > You set a value for --with-matlab-dir, but /Applications/MATLAB_R2018a.app > > cannot be used > > ******************************************************************************* > > File "./config/configure.py", line 393, in petsc_configure > > framework.configure(out = sys.stdout) > > File > > "/Users/zhihui/igx/deps/srcs/petsc-3.8.3/config/BuildSystem/config/framework.py", > > line 1097, in configure > > self.processChildren() > > File > > "/Users/zhihui/igx/deps/srcs/petsc-3.8.3/config/BuildSystem/config/framework.py", > > line 1086, in processChildren > > self.serialEvaluation(self.childGraph) > > File > > "/Users/zhihui/igx/deps/srcs/petsc-3.8.3/config/BuildSystem/config/framework.py", > > line 1067, in serialEvaluation > > child.configure() > > File > > "/Users/zhihui/igx/deps/srcs/petsc-3.8.3/config/BuildSystem/config/package.py", > > line 857, in configure > > self.executeTest(self.configureLibrary) > > File > > "/Users/zhihui/igx/deps/srcs/petsc-3.8.3/config/BuildSystem/config/base.py", > > line 126, in executeTest > > ret = test(*args,**kargs) > > File > > "/Users/zhihui/igx/deps/srcs/petsc-3.8.3/config/BuildSystem/config/packages/Matlab.py", > > line 40, in configureLibrary > > for matlab in self.generateGuesses(): > > File > > "/Users/zhihui/igx/deps/srcs/petsc-3.8.3/config/BuildSystem/config/packages/Matlab.py", > > line 23, in generateGuesses > > raise RuntimeError('You set a value for --with-matlab-dir, but > > '+self.argDB['with-matlab-dir']+' cannot be used\n') > > ================================================================================ > > Finishing Configure Run at Thu Oct 25 18:48:02 2018 > > ================================================================================ > > > > > > > > > > > > > > > > ------------------ Original ------------------ > > From: "Balay, Satish";<ba...@mcs.anl.gov>; > > Date: Oct 26, 2018 > > To: "avatar"<648934...@qq.com>; > > Cc: "petsc-users"<petsc-users@mcs.anl.gov>; > > Subject: Re: [petsc-users] "Could not find a suitable archiver. Use > > --with-arto specify an archiver" > > > > > > > > On Fri, 26 Oct 2018, avatar wrote: > > > > > Scott-Grad-MBP:bin zhihui$ pwd > > > /Applications/MATLAB_R2018a.app/bin > > > > > > Sorry - you need > > > > --with-matlab-dir=/Applications/MATLAB_R2018a.app/ > > > > Satish