[petsc-users] "Could not find a suitable archiver. Use --with-arto specify an archiver"

avatar 648934229 at qq.com
Thu Oct 25 19:37:10 CDT 2018


When I do the following, it shows
Scott-Grad-MBP:~ zhihui$ cd Applications/
Scott-Grad-MBP:Applications zhihui$ ls
Chrome Apps.localized
Scott-Grad-MBP:Applications zhihui$



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
Scott-Grad-MBP:bin zhihui$ pwd
/Applications/MATLAB_R2018a.app/bin
Scott-Grad-MBP:bin zhihui$ ls
activate_matlab.sh	lcdata_utf8.xml		matlab-glselector.sh	mexsh
deactivate_matlab.sh	ldd			matopts.sh		optsetup.sh
engopts.sh		m3iregistry		mex			registry
lcdata.xml		maci64			mexext			util
lcdata.xsd		matlab			mexopts.sh





------------------ Original ------------------
From:  "Balay, Satish";<balay at mcs.anl.gov>;
Date:  Oct 26, 2018
To:  "avatar"<648934229 at qq.com>; 
Cc:  "petsc-users"<petsc-users at mcs.anl.gov>; 
Subject:  Re: [petsc-users] "Could not find a suitable archiver. Use --with-arto specify an archiver"



you need

--with-matlab-dir=/Users/zhihui/Applications/MATLAB_R2018a.app

Satish

On Fri, 26 Oct 2018, avatar wrote:

> Thank Satish. It worked as you said. But when I rebuild petsc using 
> ./configure --with-matlab
> It prompts 
> ===============================================================================
>              Configuring PETSc to compile on your system
> ===============================================================================
> TESTING: configureLibrary from config.packages.Matlab(config/BuildSystem/config/packages/Matlab.py:35)         *******************************************************************************
>          UNABLE to CONFIGURE with GIVEN OPTIONS    (see configure.log for details):
> -------------------------------------------------------------------------------
> Could not find a functional Matlab
> Run with --with-matlab-dir=Matlabrootdir if you know where it is
> *******************************************************************************
> 
> 
> 
> Then, I did the following. But it shows that "/Users/zhihui/Applications/MATLAB_R2018a.app/bin/matlab" nonexistent. However, it does exist as
> Scott-Grad-MBP:bin zhihui$ pwd
> /Applications/MATLAB_R2018a.app/bin
> Scott-Grad-MBP:bin zhihui$ ls
> activate_matlab.sh	lcdata_utf8.xml		matlab-glselector.sh	mexsh
> deactivate_matlab.sh	ldd			matopts.sh		optsetup.sh
> engopts.sh		m3iregistry		mex			registry
> lcdata.xml		maci64			mexext			util
> lcdata.xsd		matlab			mexopts.sh
> 
> 
> 
> Do you know what it is going on here?
> 
> 
> 
> 
> Scott-Grad-MBP:petsc-3.8.3 zhihui$ ./configure --with-matlab-dir=./../../../../Applications/MATLAB_R2018a/bin/matlab
> ===============================================================================
>              Configuring PETSc to compile on your system
> ===============================================================================
> *******************************************************************************
>                 ERROR in COMMAND LINE ARGUMENT to ./configure
> -------------------------------------------------------------------------------
> Nonexistent directory: /Users/zhihui/Applications/MATLAB_R2018a/bin/matlab for key with-matlab-dir
> *******************************************************************************
> 
> 
> 
> 
>   File "./config/configure.py", line 390, in petsc_configure
>     framework = config.framework.Framework(['--configModules=PETSc.Configure','--optionsModule=config.compilerOptions']+sys.argv[1:], loadArgDB = 0)
>   File "/Users/zhihui/igx/deps/srcs/petsc-3.8.3/config/BuildSystem/config/framework.py", line 110, in __init__
>     self.createChildren()
>   File "/Users/zhihui/igx/deps/srcs/petsc-3.8.3/config/BuildSystem/config/framework.py", line 321, in createChildren
>     self.getChild(moduleName)
>   File "/Users/zhihui/igx/deps/srcs/petsc-3.8.3/config/BuildSystem/config/framework.py", line 306, in getChild
>     config.setupDependencies(self)
>   File "/Users/zhihui/igx/deps/srcs/petsc-3.8.3/config/PETSc/Configure.py", line 107, in setupDependencies
>     obj = self.registerPythonFile(package,'config.packages')
>   File "/Users/zhihui/igx/deps/srcs/petsc-3.8.3/config/PETSc/Configure.py", line 63, in registerPythonFile
>     utilityObj                             = self.framework.require(directory+utilityName, self)
>   File "/Users/zhihui/igx/deps/srcs/petsc-3.8.3/config/BuildSystem/config/framework.py", line 326, in require
>     config = self.getChild(moduleName, keywordArgs)
>   File "/Users/zhihui/igx/deps/srcs/petsc-3.8.3/config/BuildSystem/config/framework.py", line 304, in getChild
>     config.setup()
>   File "/Users/zhihui/igx/deps/srcs/petsc-3.8.3/config/BuildSystem/script.py", line 101, in setup
>     logger.Logger.setup(self)
>   File "/Users/zhihui/igx/deps/srcs/petsc-3.8.3/config/BuildSystem/logger.py", line 85, in setup
>     args.ArgumentProcessor.setup(self)
>   File "/Users/zhihui/igx/deps/srcs/petsc-3.8.3/config/BuildSystem/args.py", line 75, in setup
>     self.setupArguments(self.argDB)
>   File "/Users/zhihui/igx/deps/srcs/petsc-3.8.3/config/BuildSystem/script.py", line 85, in setupArguments
>     self.setupHelp(self.help)
>   File "/Users/zhihui/igx/deps/srcs/petsc-3.8.3/config/BuildSystem/config/packages/Matlab.py", line 15, in setupHelp
>     help.addArgument('MATLAB', '-with-matlab-dir=<root dir>', nargs.ArgDir(None, None, 'Specify the root directory of the Matlab installation'))
>   File "/Users/zhihui/igx/deps/srcs/petsc-3.8.3/config/BuildSystem/help.py", line 107, in addArgument
>     self.argDB.setType(self.getArgName(name), argType, forceLocal = 1)
>   File "/Users/zhihui/igx/deps/srcs/petsc-3.8.3/config/BuildSystem/RDict.py", line 213, in setType
>     value.setValue(v.getValue())
>   File "/Users/zhihui/igx/deps/srcs/petsc-3.8.3/config/BuildSystem/nargs.py", line 324, in setValue
>     raise ValueError('Nonexistent directory: '+str(value)+' for key '+str(self.key))
> 
> 
> 
> 
> 
> 
> 
> ------------------ Original ------------------
> From:  "Balay, Satish";<balay at mcs.anl.gov>;
> Date:  Oct 26, 2018
> To:  "avatar"<648934229 at qq.com>; 
> Cc:  "petsc-users"<petsc-users at 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:
> 
> > 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.
> 
> I guess you need to read up on some basic unix and system admin.
> 
> You probably meant to use:
> 
> export TMPDIR=/tmp
> 
> However  - you have:
> 
> export TMPDIR=tmp
> 
> To overcome this problem - you do:
> 
> export TMPDIR=/tmp
> 
> Satish
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20181026/bce77a8e/attachment.html>


More information about the petsc-users mailing list