[petsc-dev] Titan error

Barry Smith bsmith at mcs.anl.gov
Thu Jun 4 21:53:53 CDT 2015


  Hmm, 

You do not have write permissions to the --prefix directory /autofs/na3_home1/adams/petsc_master_opt64idx_pgi
                          You will be prompted for the sudo password for any external package installs
                      ===============================================================================

Do you have write permission for this directory?

To test if you have write permission it does the following code:

def setInstallDir(self):
    ''' setup installDir to either prefix or if that is not set to PETSC_DIR/PETSC_ARCH'''
    self.installSudo        = ''
    self.installSudoMessage = ''
    if self.framework.argDB['prefix']:
      self.dir = self.framework.argDB['prefix']
      try:
        os.makedirs(os.path.join(self.dir,'PETScTestDirectory'))
        os.rmdir(os.path.join(self.dir,'PETScTestDirectory'))
      except:
        self.installSudoMessage = 'You do not have write permissions to the --prefix directory '+self.dir+'\nYou will be prompted for the sudo password for any external package installs'


Can you make a directory in /autofs/na3_home1/adams/ ?


  Barry

> On Jun 4, 2015, at 9:43 PM, Mark Adams <mfadams at lbl.gov> wrote:
> 
> Yet again, this one does have a slightly amusing and slightly baffling error message though.
> Mark
> <configure.log>




More information about the petsc-dev mailing list