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

Balay, Satish balay at mcs.anl.gov
Sat Oct 27 09:45:03 CDT 2018


On Fri, 26 Oct 2018, avatar wrote:

> Thank Satish. I would like to call Matlab function in Pestc. For example, calculating the condition number of a petsc matrix.

Hm  - sounds like you need --with-matlab-engine. I'm not sure if we are still supporting this code.


> When I comment out the test from configuration script, I got the following problem. And the attached is the LOG file.
> ===============================================================================
>              Configuring PETSc to compile on your system
> ===============================================================================
> TESTING: configureLibrary from config.packages.Matlab(config/BuildSystem/config/packages/Matlab.py:35)          *******************************************************************************
>         CONFIGURATION CRASH  (Please send configure.log to petsc-maint at mcs.anl.gov)
> *******************************************************************************

What likes did you comment? Here is what you could do..

Satish

-------
diff --git a/config/BuildSystem/config/packages/Matlab.py b/config/BuildSystem/config/packages/Matlab.py
index 351c7d2..66f4b72 100644
--- a/config/BuildSystem/config/packages/Matlab.py
+++ b/config/BuildSystem/config/packages/Matlab.py
@@ -44,17 +44,6 @@ class Configure(config.package.Package):
         interpreter = interpreter+' -'+self.argDB['with-matlab-arch']
 
       output      = ''
-      try:
-        output,err,ret = config.package.Package.executeShellCommand(interpreter+' -nojvm -nodisplay -r "display([\'Version \' version]); exit"', log = self.log)
-      except:
-        self.log.write('WARNING: Found Matlab at '+matlab+' but unable to run\n')
-        continue
-
-      match  = versionPattern.search(output)
-      r = float(match.group(1))
-      if r < 6.0:
-        self.log.write('WARNING: Matlab version must be at least 6; yours is '+str(r))
-        continue
       # make sure this is true root of Matlab
       if not os.path.isdir(os.path.join(matlab,'extern','lib')):
         self.log.write('WARNING:'+matlab+' is not the root directory for Matlab\n')


More information about the petsc-users mailing list