<div>When I do the following, it shows</div><div><div>Scott-Grad-MBP:~ zhihui$ cd Applications/</div><div>Scott-Grad-MBP:Applications zhihui$ ls</div><div>Chrome Apps.localized</div><div>Scott-Grad-MBP:Applications zhihui$</div></div><div><br></div><div>From these, we can see there is no MATALB_R2018a.app in Applications. But when I get into bin, and do the following, it does show</div><div><div>Scott-Grad-MBP:bin zhihui$ pwd</div><div>/Applications/MATLAB_R2018a.app/bin</div><div>Scott-Grad-MBP:bin zhihui$ ls</div><div>activate_matlab.sh<span style="white-space:pre">    </span>lcdata_utf8.xml<span style="white-space:pre">              </span>matlab-glselector.sh<span style="white-space:pre"> </span>mexsh</div><div>deactivate_matlab.sh<span style="white-space:pre">     </span>ldd<span style="white-space:pre">                  </span>matopts.sh<span style="white-space:pre">           </span>optsetup.sh</div><div>engopts.sh<span style="white-space:pre">         </span>m3iregistry<span style="white-space:pre">          </span>mex<span style="white-space:pre">                  </span>registry</div><div>lcdata.xml<span style="white-space:pre">            </span>maci64<span style="white-space:pre">                       </span>mexext<span style="white-space:pre">                       </span>util</div><div>lcdata.xsd<span style="white-space:pre">                </span>matlab<span style="white-space:pre">                       </span>mexopts.sh</div></div><div><div><br></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>you need<br><br>--with-matlab-dir=/Users/zhihui/Applications/MATLAB_R2018a.app<br><br>Satish<br><br>On Fri, 26 Oct 2018, avatar wrote:<br><br>> Thank Satish. It worked as you said. But when I rebuild petsc using <br>> ./configure --with-matlab<br>> It prompts <br>> ===============================================================================<br>>              Configuring PETSc to compile on your system<br>> ===============================================================================<br>> TESTING: configureLibrary from config.packages.Matlab(config/BuildSystem/config/packages/Matlab.py:35)         *******************************************************************************<br>>          UNABLE to CONFIGURE with GIVEN OPTIONS    (see configure.log for details):<br>> -------------------------------------------------------------------------------<br>> Could not find a functional Matlab<br>> Run with --with-matlab-dir=Matlabrootdir if you know where it is<br>> *******************************************************************************<br>> <br>> <br>> <br>> Then, I did the following. But it shows that "/Users/zhihui/Applications/MATLAB_R2018a.app/bin/matlab" nonexistent. However, it does exist as<br>> Scott-Grad-MBP:bin zhihui$ pwd<br>> /Applications/MATLAB_R2018a.app/bin<br>> Scott-Grad-MBP:bin zhihui$ ls<br>> activate_matlab.sh   lcdata_utf8.xml         matlab-glselector.sh    mexsh<br>> deactivate_matlab.sh        ldd                     matopts.sh              optsetup.sh<br>> engopts.sh            m3iregistry             mex                     registry<br>> lcdata.xml               maci64                  mexext                  util<br>> lcdata.xsd           matlab                  mexopts.sh<br>> <br>> <br>> <br>> Do you know what it is going on here?<br>> <br>> <br>> <br>> <br>> Scott-Grad-MBP:petsc-3.8.3 zhihui$ ./configure --with-matlab-dir=./../../../../Applications/MATLAB_R2018a/bin/matlab<br>> ===============================================================================<br>>              Configuring PETSc to compile on your system<br>> ===============================================================================<br>> *******************************************************************************<br>>                 ERROR in COMMAND LINE ARGUMENT to ./configure<br>> -------------------------------------------------------------------------------<br>> Nonexistent directory: /Users/zhihui/Applications/MATLAB_R2018a/bin/matlab for key with-matlab-dir<br>> *******************************************************************************<br>> <br>> <br>> <br>> <br>>   File "./config/configure.py", line 390, in petsc_configure<br>>     framework = config.framework.Framework(['--configModules=PETSc.Configure','--optionsModule=config.compilerOptions']+sys.argv[1:], loadArgDB = 0)<br>>   File "/Users/zhihui/igx/deps/srcs/petsc-3.8.3/config/BuildSystem/config/framework.py", line 110, in __init__<br>>     self.createChildren()<br>>   File "/Users/zhihui/igx/deps/srcs/petsc-3.8.3/config/BuildSystem/config/framework.py", line 321, in createChildren<br>>     self.getChild(moduleName)<br>>   File "/Users/zhihui/igx/deps/srcs/petsc-3.8.3/config/BuildSystem/config/framework.py", line 306, in getChild<br>>     config.setupDependencies(self)<br>>   File "/Users/zhihui/igx/deps/srcs/petsc-3.8.3/config/PETSc/Configure.py", line 107, in setupDependencies<br>>     obj = self.registerPythonFile(package,'config.packages')<br>>   File "/Users/zhihui/igx/deps/srcs/petsc-3.8.3/config/PETSc/Configure.py", line 63, in registerPythonFile<br>>     utilityObj                             = self.framework.require(directory+utilityName, self)<br>>   File "/Users/zhihui/igx/deps/srcs/petsc-3.8.3/config/BuildSystem/config/framework.py", line 326, in require<br>>     config = self.getChild(moduleName, keywordArgs)<br>>   File "/Users/zhihui/igx/deps/srcs/petsc-3.8.3/config/BuildSystem/config/framework.py", line 304, in getChild<br>>     config.setup()<br>>   File "/Users/zhihui/igx/deps/srcs/petsc-3.8.3/config/BuildSystem/script.py", line 101, in setup<br>>     logger.Logger.setup(self)<br>>   File "/Users/zhihui/igx/deps/srcs/petsc-3.8.3/config/BuildSystem/logger.py", line 85, in setup<br>>     args.ArgumentProcessor.setup(self)<br>>   File "/Users/zhihui/igx/deps/srcs/petsc-3.8.3/config/BuildSystem/args.py", line 75, in setup<br>>     self.setupArguments(self.argDB)<br>>   File "/Users/zhihui/igx/deps/srcs/petsc-3.8.3/config/BuildSystem/script.py", line 85, in setupArguments<br>>     self.setupHelp(self.help)<br>>   File "/Users/zhihui/igx/deps/srcs/petsc-3.8.3/config/BuildSystem/config/packages/Matlab.py", line 15, in setupHelp<br>>     help.addArgument('MATLAB', '-with-matlab-dir=<root dir>', nargs.ArgDir(None, None, 'Specify the root directory of the Matlab installation'))<br>>   File "/Users/zhihui/igx/deps/srcs/petsc-3.8.3/config/BuildSystem/help.py", line 107, in addArgument<br>>     self.argDB.setType(self.getArgName(name), argType, forceLocal = 1)<br>>   File "/Users/zhihui/igx/deps/srcs/petsc-3.8.3/config/BuildSystem/RDict.py", line 213, in setType<br>>     value.setValue(v.getValue())<br>>   File "/Users/zhihui/igx/deps/srcs/petsc-3.8.3/config/BuildSystem/nargs.py", line 324, in setValue<br>>     raise ValueError('Nonexistent directory: '+str(value)+' for key '+str(self.key))<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>> > Is there other way to overcome this problem? Because if I don't set TMPDIR as \tmp. My other project will break. And actually I don't even know where my project set up the TMPDIR value.<br>> <br>> I guess you need to read up on some basic unix and system admin.<br>> <br>> You probably meant to use:<br>> <br>> export TMPDIR=/tmp<br>> <br>> However  - you have:<br>> <br>> export TMPDIR=tmp<br>> <br>> To overcome this problem - you do:<br>> <br>> export TMPDIR=/tmp<br>> <br>> Satish<br></div>