<div>still shows these</div><div><br></div><div><div>Scott-Grad-MBP:petsc-3.8.3 zhihui$ ./configure --with-matlab-dir=/Users/zhihui/Applications/MATLAB_R2018a.app</div><div>===============================================================================</div><div>             Configuring PETSc to compile on your system</div><div>===============================================================================</div><div>*******************************************************************************</div><div>                ERROR in COMMAND LINE ARGUMENT to ./configure</div><div>-------------------------------------------------------------------------------</div><div>Nonexistent directory: /Users/zhihui/Applications/MATLAB_R2018a.app for key with-matlab-dir</div><div>*******************************************************************************</div><div><br></div><div><br></div><div>  File "./config/configure.py", line 390, in petsc_configure</div><div>    framework = config.framework.Framework(['--configModules=PETSc.Configure','--optionsModule=config.compilerOptions']+sys.argv[1:], loadArgDB = 0)</div><div>  File "/Users/zhihui/igx/deps/srcs/petsc-3.8.3/config/BuildSystem/config/framework.py", line 110, in __init__</div><div>    self.createChildren()</div><div>  File "/Users/zhihui/igx/deps/srcs/petsc-3.8.3/config/BuildSystem/config/framework.py", line 321, in createChildren</div><div>    self.getChild(moduleName)</div><div>  File "/Users/zhihui/igx/deps/srcs/petsc-3.8.3/config/BuildSystem/config/framework.py", line 306, in getChild</div><div>    config.setupDependencies(self)</div><div>  File "/Users/zhihui/igx/deps/srcs/petsc-3.8.3/config/PETSc/Configure.py", line 107, in setupDependencies</div><div>    obj = self.registerPythonFile(package,'config.packages')</div><div>  File "/Users/zhihui/igx/deps/srcs/petsc-3.8.3/config/PETSc/Configure.py", line 63, in registerPythonFile</div><div>    utilityObj                             = self.framework.require(directory+utilityName, self)</div><div>  File "/Users/zhihui/igx/deps/srcs/petsc-3.8.3/config/BuildSystem/config/framework.py", line 326, in require</div><div>    config = self.getChild(moduleName, keywordArgs)</div><div>  File "/Users/zhihui/igx/deps/srcs/petsc-3.8.3/config/BuildSystem/config/framework.py", line 304, in getChild</div><div>    config.setup()</div><div>  File "/Users/zhihui/igx/deps/srcs/petsc-3.8.3/config/BuildSystem/script.py", line 101, in setup</div><div>    logger.Logger.setup(self)</div><div>  File "/Users/zhihui/igx/deps/srcs/petsc-3.8.3/config/BuildSystem/logger.py", line 85, in setup</div><div>    args.ArgumentProcessor.setup(self)</div><div>  File "/Users/zhihui/igx/deps/srcs/petsc-3.8.3/config/BuildSystem/args.py", line 75, in setup</div><div>    self.setupArguments(self.argDB)</div><div>  File "/Users/zhihui/igx/deps/srcs/petsc-3.8.3/config/BuildSystem/script.py", line 85, in setupArguments</div><div>    self.setupHelp(self.help)</div><div>  File "/Users/zhihui/igx/deps/srcs/petsc-3.8.3/config/BuildSystem/config/packages/Matlab.py", line 15, in setupHelp</div><div>    help.addArgument('MATLAB', '-with-matlab-dir=<root dir>', nargs.ArgDir(None, None, 'Specify the root directory of the Matlab installation'))</div><div>  File "/Users/zhihui/igx/deps/srcs/petsc-3.8.3/config/BuildSystem/help.py", line 107, in addArgument</div><div>    self.argDB.setType(self.getArgName(name), argType, forceLocal = 1)</div><div>  File "/Users/zhihui/igx/deps/srcs/petsc-3.8.3/config/BuildSystem/RDict.py", line 213, in setType</div><div>    value.setValue(v.getValue())</div><div>  File "/Users/zhihui/igx/deps/srcs/petsc-3.8.3/config/BuildSystem/nargs.py", line 324, in setValue</div><div>    raise ValueError('Nonexistent directory: '+str(value)+' for key '+str(self.key))</div></div><div><br></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>