[petsc-users] Building PETSc with cmake

Satish Balay balay at mcs.anl.gov
Tue Sep 13 09:09:16 CDT 2011


On Tue, 13 Sep 2011, John Fettig wrote:

> On Tue, Sep 13, 2011 at 9:59 AM, Matthew Knepley <knepley at gmail.com> wrote:
> > On Tue, Sep 13, 2011 at 8:55 AM, John Fettig <john.fettig at gmail.com> wrote:
> >>
> >> What are the requirements for building PETSc with cmake?  I have cmake
> >> version 2.8.1 installed, and configure finds it, but it does nothing
> >> with it.  Is it because my python version is too old?  This is on
> >> CentOS 5, I get these messages about cmake in the configure.log (with
> >> 3.2-p0):
> >>
> >> Checking for program /usr/local/bin/cmake...found
> >>            Defined make macro "CMAKE" to "/usr/local/bin/cmake"
> >>
> >> ...
> >>
> >>      Skipping cmakegen due to old python version: (2, 4, 3, 'final', 0)
> >>      Skipping cmakeboot due to old python version: (2, 4, 3, 'final', 0)
> >>
> >> At the end of the configure, I'm not offered a way to build with
> >> cmake.  I presume that cmake is the only way to do a parallel build?
> >
> > Yes, and it is because your Python version is too old. I believe it needs
> > 2.6. I would
> > install 2.7 if you are upgrading.
> 
> Is there any way to tell configure which python to use?  I have python
> 2.6 installed, it's just not what runs when you type `python`.  I
> don't think I can change the default python in CentOS 5 without
> breaking a lot of other things.

/path/to/python2.6 configure  [configure_options]

Satish


More information about the petsc-users mailing list