<div>If I run it directly, I got the following. But if I double click /Applications/MATLAB_R2018a.app/bin/matlab in the folder. The matlab start normally.</div><div><br></div><div><div>Last login: Thu Oct 25 19:38:28 on ttys002</div><div>Scott-Grad-MBP:~ zhihui$ /Applications/MATLAB_R2018a.app/bin/matlab -nojvm -nodisplay -r "display(['Version ' version]); exit"</div><div><br></div><div>                                       < M A T L A B (R) ></div><div>                             Copyright 1984-2018 The MathWorks, Inc.</div><div>                              R2018a (9.4.0.813654) 64-bit (maci64)</div><div>                                        February 23, 2018</div><div><br></div><div><br></div><div>For online documentation, see http://www.mathworks.com/support</div><div>For product information, visit www.mathworks.com.</div><div><br></div><div>Version 9.4.0.813654 (R2018a)</div><div><br></div><div>--------------------------------------------------------------------------------</div><div>       Segmentation violation detected at Thu Oct 25 19:39:13 2018 -0600</div><div>--------------------------------------------------------------------------------</div><div><br></div><div>Configuration:</div><div>  Crash Decoding           : Disabled - No sandbox or build area path</div><div>  Crash Mode               : continue (default)</div><div>  Default Encoding         : ISO-8859-1</div><div>  Deployed                 : false</div><div>  Graphics Driver          : Unknown software</div><div>  MATLAB Architecture      : maci64</div><div>  MATLAB Entitlement ID    : 789930</div><div>  MATLAB Root              : /Applications/MATLAB_R2018a.app</div><div>  MATLAB Version           : 9.4.0.813654 (R2018a)</div><div>  OpenGL                   : software</div><div>  Operating System         : Mac OS Version 10.12.6 (Build 16G29)</div><div>  Process ID               : 77227</div><div>  Processor ID             : x86 Family 6 Model 158 Stepping 9, GenuineIntel</div><div>  Session Key              : 3308a767-ffe8-4f64-954b-ed266f8dea9c</div><div>  Window System            : None</div><div><br></div><div>Fault Count: 1</div><div><br></div><div><br></div><div>Abnormal termination</div><div><br></div><div>Register State (from fault):</div><div>  RAX = 0000000000000000  RBX = 00007f922bf7de00</div><div>  RCX = 00007f922bf7dde0  RDX = 0000000000000000</div><div>  RSP = 0000000108315005  RBP = 000070000b082a10</div><div>  RSI = 000070000b082c60  RDI = 000070000b082a30</div><div><br></div><div>   R8 = 0000000000000000   R9 = 0000000000000000</div><div>  R10 = 000070000b082c60  R11 = 00007f922be0ffd8</div><div>  R12 = 000070000b082a50  R13 = 00000001082d9a7c</div><div>  R14 = 000070000b082a50  R15 = 00007fff9f6aa410</div><div><br></div><div>  RIP = 0000000000000000  RFL = 000070000b083bc0</div><div><br></div><div>   CS = 0000000000000000   FS = 00007f922bf7d550   GS = 000070000b082f70</div><div><br></div><div>Stack Trace (from fault):</div><div>[  0] 0x00000001070f6f54                           bin/maci64/libmwfl.dylib+00053076 _ZN10foundation4core4diag15stacktrace_base7captureERKNS1_14thread_contextEm+00000052</div><div>[  1] 0x00000001070fbe26                           bin/maci64/libmwfl.dylib+00073254 _ZN10foundation4core4test17terminate_handledEv+00003958</div><div>[  2] 0x00000001070fac49                           bin/maci64/libmwfl.dylib+00068681 _ZN10foundation4core4diag13terminate_logEPKcPK17__darwin_ucontext+00000185</div><div>[  3] 0x000000010b04a2f0                          bin/maci64/libmwmcr.dylib+00574192 _Z19mnPrintErrorMessageRKNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEE+00010208</div><div>[  4] 0x000000010b047f72                          bin/maci64/libmwmcr.dylib+00565106 _Z19mnPrintErrorMessageRKNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEE+00001122</div><div>[  5] 0x000000010b046681                          bin/maci64/libmwmcr.dylib+00558721 mnFatalSignalHandler+00000145</div><div>[  6] 0x00007fffa0d40b3a           /usr/lib/system/libsystem_platform.dylib+00011066 _sigtramp+00000026</div><div>[  7] 0x000000000000002e                                   <unknown-module>+00000000</div><div>[  8] 0x0000000114092674                    bin/maci64/libmwddux_impl.dylib+00251508 _ZNK17DDUXConfigService16updateDDUXConfigEv+00000148</div><div>[  9] 0x000000011406d426                    bin/maci64/libmwddux_impl.dylib+00099366 _ZNK4ddux6detail30UsageDataCollectionServiceImpl15logSessionStartERKN26UsageDataCollectionService18SessionStartParamsE+00006518</div><div>[ 10] 0x000000011405d65f                    bin/maci64/libmwddux_impl.dylib+00034399 _ZN4ddux16DDUXServiceProxyclERKNS_23SendSessionStartMessageERKN10foundation7msg_svc8exchange7RoutingE+00001711</div><div>[ 11] 0x00000001140680a7                    bin/maci64/libmwddux_impl.dylib+00077991 _ZN4ddux23SendSessionStartMessageC1Ev+00000071</div><div>[ 12] 0x0000000114065da5                    bin/maci64/libmwddux_impl.dylib+00069029 _ZN4ddux16DDUXServiceProxyclERKNS_23LogFunctionUsageMessageERKN10foundation7msg_svc8exchange7RoutingE+00024853</div><div>[ 13] 0x0000000114065ab0                    bin/maci64/libmwddux_impl.dylib+00068272 _ZN4ddux16DDUXServiceProxyclERKNS_23LogFunctionUsageMessageERKN10foundation7msg_svc8exchange7RoutingE+00024096</div><div>[ 14] 0x0000000106d3fd68                           bin/maci64/libmwms.dylib+00785768 _ZN10foundation7msg_svc8exchange6detail23DefaultMessageQueueImpl15deliverMessagesEPNS1_19DefaultMessageQueueE+00000088</div><div>[ 15] 0x000000011406675c                    bin/maci64/libmwddux_impl.dylib+00071516 _ZN4ddux16DDUXServiceProxyclERKNS_23LogFunctionUsageMessageERKN10foundation7msg_svc8exchange7RoutingE+00027340</div><div>[ 16] 0x0000000114066574                    bin/maci64/libmwddux_impl.dylib+00071028 _ZN4ddux16DDUXServiceProxyclERKNS_23LogFunctionUsageMessageERKN10foundation7msg_svc8exchange7RoutingE+00026852</div><div>[ 17] 0x0000000104f11d41 /Applications/MATLAB_R2018a.app/bin/maci64/libmwboost_thread.dylib+00011585 _ZN7mwboost6thread21start_thread_noexceptEv+00000353</div><div>[ 18] 0x00007fffa0d4a93b            /usr/lib/system/libsystem_pthread.dylib+00014651 _pthread_body+00000180</div><div>[ 19] 0x00007fffa0d4a887            /usr/lib/system/libsystem_pthread.dylib+00014471 _pthread_body+00000000</div><div>[ 20] 0x00007fffa0d4a08d            /usr/lib/system/libsystem_pthread.dylib+00012429 thread_start+00000013</div><div><br></div><div>** This crash report has been saved to disk as /Users/zhihui/matlab_crash_dump.77227-1 **</div><div><br></div><div><br></div><div><br></div><div>MATLAB is exiting because of fatal error</div><div>Killed: 9</div><div>Scott-Grad-MBP:~ zhihui$ echo $?</div><div>137</div><div><br></div></div><div><div><br></div><div style="font-size: 12px;font-family: Arial Narrow;padding:2px 0 2px 0;">------------------ Original ------------------</div><div style="font-size: 12px;background:#efefef;padding:8px;"><div><b>From: </b> "Balay, Satish";<balay@mcs.anl.gov>;</div><div><b>Date: </b> Oct 26, 2018</div><div><b>To: </b> "avatar"<648934229@qq.com>; <wbr></div><div><b>Cc: </b> "petsc-users"<petsc-users@mcs.anl.gov>; <wbr></div><div><b>Subject: </b> Re: [petsc-users] "Could not find a suitable archiver. Use --with-arto specify an archiver"</div></div><div><br></div>>>>>>>>>>>>>>><br>Testing Matlab at /Applications/MATLAB_R2018a.app<br>Executing: /Applications/MATLAB_R2018a.app/bin/matlab -nojvm -nodisplay -r "display(['Version ' version]); exit"<br>stdout:<br>< M A T L A B (R) ><br>                  Copyright 1984-2018 The MathWorks, Inc.<br>                   R2018a (9.4.0.813654) 64-bit (maci64)<br>                             February 23, 2018<br><br>For online documentation, see http://www.mathworks.com/support<br>For product information, visit www.mathworks.com.<br><br>Version 9.4.0.813654 (R2018a)<br>WARNING: Found Matlab at /Applications/MATLAB_R2018a.app but unable to run<br><<<<<<<<<<<<<<<<<<br><br><br>So configure attempted to run Matlab - and perhaps got an error. What do you get if you run this manually?<br><br><br>/Applications/MATLAB_R2018a.app/bin/matlab -nojvm -nodisplay -r "display(['Version ' version]); exit"<br>echo $?<br><br>Satish<br><br>On Fri, 26 Oct 2018, avatar wrote:<br><br>> Hi Satish, <br>> <br>> <br>> 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.<br>> <br>> <br>> Thank you.<br>> <br>> <br>> <br>> <br>> ------------------ Original ------------------<br>> From:  "Balay, Satish";<balay@mcs.anl.gov>;<br>> Date:  Oct 26, 2018<br>> To:  "avatar"<648934229@qq.com>; <br>> Cc:  "petsc-users"<petsc-users@mcs.anl.gov>; <br>> Subject:  Re: [petsc-users] "Could not find a suitable archiver. Use --with-arto specify an archiver"<br>> <br>> <br>> <br>> 1. You need to send us the complete log.<br>> <br>> 2. Also use current release - petsc-3.10 [not 3.8]<br>> <br>> Satish<br>> <br>> On Fri, 26 Oct 2018, avatar wrote:<br>> <br>> > Scott-Grad-MBP:petsc-3.8.3 zhihui$ ./configure --with-matlab-dir=/Applications/MATLAB_R2018a.app/<br>> > ===============================================================================<br>> >              Configuring PETSc to compile on your system<br>> > ===============================================================================<br>> > TESTING: configureLibrary from config.packages.Matlab(config/BuildSystem/config/*******************************************************************************<br>> >          UNABLE to CONFIGURE with GIVEN OPTIONS    (see configure.log for details):<br>> > -------------------------------------------------------------------------------<br>> > You set a value for --with-matlab-dir, but /Applications/MATLAB_R2018a.app cannot be used<br>> > *******************************************************************************<br>> > <br>> > <br>> > <br>> > Part of the log file as follow<br>> > <br>> > <br>> > #ifndef PETSC_HAVE_MPI_REDUCE_SCATTER<br>> > #define PETSC_HAVE_MPI_REDUCE_SCATTER 1<br>> > #endif<br>> > <br>> > <br>> > #ifndef PETSC_HAVE_MPI_COMBINER_DUP<br>> > #define PETSC_HAVE_MPI_COMBINER_DUP 1<br>> > #endif<br>> > <br>> > <br>> > #ifndef PETSC_HAVE_MPIIO<br>> > #define PETSC_HAVE_MPIIO 1<br>> > #endif<br>> > <br>> > <br>> > #ifndef PETSC_HAVE_MPI_COMM_SPAWN<br>> > #define PETSC_HAVE_MPI_COMM_SPAWN 1<br>> > #endif<br>> > <br>> > <br>> > #ifndef PETSC_HAVE_MPI_FINT<br>> > #define PETSC_HAVE_MPI_FINT 1<br>> > #endif<br>> > <br>> > <br>> > #ifndef PETSC_HAVE_MPI_IBARRIER<br>> > #define PETSC_HAVE_MPI_IBARRIER 1<br>> > #endif<br>> > <br>> > <br>> > #ifndef PETSC_HAVE_MPI_ALLTOALLW<br>> > #define PETSC_HAVE_MPI_ALLTOALLW 1<br>> > #endif<br>> > <br>> > <br>> > #ifndef PETSC_HAVE_OMPI_RELEASE_VERSION<br>> > #define PETSC_HAVE_OMPI_RELEASE_VERSION 2<br>> > #endif<br>> > <br>> > <br>> > #ifndef PETSC_HAVE_MPI_REDUCE_LOCAL<br>> > #define PETSC_HAVE_MPI_REDUCE_LOCAL 1<br>> > #endif<br>> > <br>> > <br>> > #ifndef PETSC_HAVE_MPI_REPLACE<br>> > #define PETSC_HAVE_MPI_REPLACE 1<br>> > #endif<br>> > <br>> > <br>> > #ifndef PETSC_HAVE_MPI_EXSCAN<br>> > #define PETSC_HAVE_MPI_EXSCAN 1<br>> > #endif<br>> > <br>> > <br>> > #ifndef PETSC_HAVE_MPI_C_DOUBLE_COMPLEX<br>> > #define PETSC_HAVE_MPI_C_DOUBLE_COMPLEX 1<br>> > #endif<br>> > <br>> > <br>> > #ifndef PETSC_HAVE_MPI_FINALIZED<br>> > #define PETSC_HAVE_MPI_FINALIZED 1<br>> > #endif<br>> > <br>> > <br>> > #ifndef PETSC_USE_INFO<br>> > #define PETSC_USE_INFO 1<br>> > #endif<br>> > <br>> > <br>> > #ifndef PETSC_Alignx<br>> > #define PETSC_Alignx(a,b)   <br>> > #endif<br>> > <br>> > <br>> > #ifndef PETSC_USE_BACKWARD_LOOP<br>> > #define PETSC_USE_BACKWARD_LOOP 1<br>> > #endif<br>> > <br>> > <br>> > #ifndef PETSC_USE_DEBUG<br>> > #define PETSC_USE_DEBUG 1<br>> > #endif<br>> > <br>> > <br>> > #ifndef PETSC_USE_LOG<br>> > #define PETSC_USE_LOG 1<br>> > #endif<br>> > <br>> > <br>> > #ifndef PETSC_IS_COLOR_VALUE_TYPE_F<br>> > #define PETSC_IS_COLOR_VALUE_TYPE_F integer2<br>> > #endif<br>> > <br>> > <br>> > #ifndef PETSC_IS_COLOR_VALUE_TYPE<br>> > #define PETSC_IS_COLOR_VALUE_TYPE short<br>> > #endif<br>> > <br>> > <br>> > #ifndef PETSC_USE_CTABLE<br>> > #define PETSC_USE_CTABLE 1<br>> > #endif<br>> > <br>> > <br>> > #ifndef PETSC_MEMALIGN<br>> > #define PETSC_MEMALIGN 16<br>> > #endif<br>> > <br>> > <br>> > #ifndef PETSC_LEVEL1_DCACHE_LINESIZE<br>> > #define PETSC_LEVEL1_DCACHE_LINESIZE 32<br>> > #endif<br>> > <br>> > <br>> > #ifndef PETSC_LEVEL1_DCACHE_SIZE<br>> > #define PETSC_LEVEL1_DCACHE_SIZE 32768<br>> > #endif<br>> > <br>> > <br>> > #ifndef PETSC_LEVEL1_DCACHE_ASSOC<br>> > #define PETSC_LEVEL1_DCACHE_ASSOC 2<br>> > #endif<br>> > <br>> > <br>> > #ifndef PETSC_HAVE_CLOSURE<br>> > #define PETSC_HAVE_CLOSURE 1<br>> > #endif<br>> > <br>> > <br>> > #ifndef PETSC__BSD_SOURCE<br>> > #define PETSC__BSD_SOURCE 1<br>> > #endif<br>> > <br>> > <br>> > #ifndef PETSC__DEFAULT_SOURCE<br>> > #define PETSC__DEFAULT_SOURCE 1<br>> > #endif<br>> > <br>> > <br>> > #ifndef PETSC_HAVE_FORTRAN_GET_COMMAND_ARGUMENT<br>> > #define PETSC_HAVE_FORTRAN_GET_COMMAND_ARGUMENT 1<br>> > #endif<br>> > <br>> > <br>> > #ifndef PETSC_HAVE_GFORTRAN_IARGC<br>> > #define PETSC_HAVE_GFORTRAN_IARGC 1<br>> > #endif<br>> > <br>> > <br>> > #ifndef PETSC_USE_BYTES_FOR_SIZE<br>> > #define PETSC_USE_BYTES_FOR_SIZE 1<br>> > #endif<br>> > <br>> > <br>> > #ifndef PETSC_HAVE_SYS_SYSCTL_H<br>> > #define PETSC_HAVE_SYS_SYSCTL_H 1<br>> > #endif<br>> > <br>> > <br>> > #endif<br>> > **** C specific Configure header /var/folders/z_/2vhmh9zx3kx3h80k5wbkjmtr0000gp/T/petsc-yrHkm7/conffix.h ****<br>> > #if !defined(INCLUDED_UNKNOWN)<br>> > #define INCLUDED_UNKNOWN<br>> > <br>> > <br>> > #if defined(__cplusplus)<br>> > extern "C" {<br>> > }<br>> > #else<br>> > #endif<br>> > #endif<br>> > *******************************************************************************<br>> >          UNABLE to CONFIGURE with GIVEN OPTIONS    (see configure.log for details):<br>> > -------------------------------------------------------------------------------<br>> > You set a value for --with-matlab-dir, but /Applications/MATLAB_R2018a.app cannot be used<br>> > *******************************************************************************<br>> >   File "./config/configure.py", line 393, in petsc_configure<br>> >     framework.configure(out = sys.stdout)<br>> >   File "/Users/zhihui/igx/deps/srcs/petsc-3.8.3/config/BuildSystem/config/framework.py", line 1097, in configure<br>> >     self.processChildren()<br>> >   File "/Users/zhihui/igx/deps/srcs/petsc-3.8.3/config/BuildSystem/config/framework.py", line 1086, in processChildren<br>> >     self.serialEvaluation(self.childGraph)<br>> >   File "/Users/zhihui/igx/deps/srcs/petsc-3.8.3/config/BuildSystem/config/framework.py", line 1067, in serialEvaluation<br>> >     child.configure()<br>> >   File "/Users/zhihui/igx/deps/srcs/petsc-3.8.3/config/BuildSystem/config/package.py", line 857, in configure<br>> >     self.executeTest(self.configureLibrary)<br>> >   File "/Users/zhihui/igx/deps/srcs/petsc-3.8.3/config/BuildSystem/config/base.py", line 126, in executeTest<br>> >     ret = test(*args,**kargs)<br>> >   File "/Users/zhihui/igx/deps/srcs/petsc-3.8.3/config/BuildSystem/config/packages/Matlab.py", line 40, in configureLibrary<br>> >     for matlab in self.generateGuesses():<br>> >   File "/Users/zhihui/igx/deps/srcs/petsc-3.8.3/config/BuildSystem/config/packages/Matlab.py", line 23, in generateGuesses<br>> >     raise RuntimeError('You set a value for --with-matlab-dir, but '+self.argDB['with-matlab-dir']+' cannot be used\n')<br>> > ================================================================================<br>> > Finishing Configure Run at Thu Oct 25 18:48:02 2018<br>> > ================================================================================<br>> > <br>> > <br>> > <br>> > <br>> > <br>> > <br>> > <br>> > ------------------ Original ------------------<br>> > From:  "Balay, Satish";<balay@mcs.anl.gov>;<br>> > Date:  Oct 26, 2018<br>> > To:  "avatar"<648934229@qq.com>; <br>> > Cc:  "petsc-users"<petsc-users@mcs.anl.gov>; <br>> > Subject:  Re: [petsc-users] "Could not find a suitable archiver. Use --with-arto specify an archiver"<br>> > <br>> > <br>> > <br>> > On Fri, 26 Oct 2018, avatar wrote:<br>> > <br>> > > Scott-Grad-MBP:bin zhihui$ pwd<br>> > > /Applications/MATLAB_R2018a.app/bin<br>> > <br>> > <br>> > Sorry - you need<br>> > <br>> > --with-matlab-dir=/Applications/MATLAB_R2018a.app/<br>> > <br>> > Satish<br></div>