PETSc installation problem using cygwin

280 views
Skip to first unread message

Guy Plaut

unread,
Jun 9, 2014, 5:38:31 AM6/9/14
to pflotra...@googlegroups.com
Hi,
I'm trying to reinstall PFLOTRAN, and for that reinstalling PETSc.
After I download the files, in the configuration of PETSc, it fails in the configuration of MPICH.

Any idea on what to do?

Thanks,
Guy


configure.log

Hammond, Glenn E

unread,
Jun 9, 2014, 11:33:00 AM6/9/14
to Barry Smith, pflotra...@googlegroups.com, petsc-maint
Guy,

I will agree with Barry that Cygwin is more of a pain, but it is possible to use Cygwin on Windows. The configure script at

https://bytebucket.org/pflotran/pflotran-dev/wiki/Installation/Files/configure.csh

illustrates how I do it. You will need to install separately the Windows version of MPICH2 (along with any other 3rd party libraries, e.g. HDF5, METIS/PARMETIS).

Again this is much more of a pain, and I only recommend it if you are using Visual Studio for code development purposes. Otherwise, I suggest that you seriously consider Barry's advice to use a virtual Linux environment.

Glenn

> -----Original Message-----
> From: Barry Smith [mailto:bsm...@mcs.anl.gov]
> Sent: Monday, June 09, 2014 8:21 AM
> To: Hammond, Glenn E
> Cc: petsc-maint; Guy Plaut
> Subject: Re: [petsc-maint] [EXTERNAL] [pflotran-users: 1664] PETSc
> installation problem using cygwin
>
>
> Sorry -download-mpich doesn't work under cygwin. You need to install it
> separately first.
>
> I strongly do not recommend working with PETSc under cygwin. Better to
> make a bootable partition for Linux or run a VM with Linux. cygwin is just a
> royal pain
>
> Barry
>
> On Jun 9, 2014, at 10:12 AM, Hammond, Glenn E <geh...@sandia.gov>
> wrote:
>
> > This is one for the PETSc developers.
> >
> > Glenn
> > <configure.log>

Richard Mills

unread,
Jun 9, 2014, 11:50:41 AM6/9/14
to pflotra...@googlegroups.com, Barry Smith, petsc-maint
I can't check right now, but I've built PETSc under Cygwin using "--download-mpich" many times and it has worked fine.  This may have changed with the most recent MPICH release, but it should be possible to use a slightly older installation tarball in that case.  I note that there are several non-default Cygwin packages that need to be installed to get a PETSc installation to go smoothly, though.  Peter, are the slides we prepared for the PFLOTRAN short course in Goettingen available online somewhere?  Those recapped how to make this work.

--Richard

Peter Lichtner

unread,
Jun 9, 2014, 12:07:27 PM6/9/14
to pflotra...@googlegroups.com
Richard: I see a pflotran-shortcourse-goettingen repo but I don't think you ever uploaded your installation slides to it.
...Peter
________________
Peter Lichtner
Santa Fe, NM 87507
OFM Research

Paolo Orsini - BLOSint

unread,
Jun 9, 2014, 12:51:33 PM6/9/14
to pflotra...@googlegroups.com
Hi,

I have the Goettingen slides, I am uploading the part related to the installation, and a script file that Richard prepared for helping the installation on windows
I hope it helps

Paolo 
petsc-configure.sh
pflotran_overview_install.pdf

Peter Alt-Epping

unread,
Jun 9, 2014, 5:13:46 PM6/9/14
to pflotra...@googlegroups.com
Hi all,
I have installed PETSc under Cygwin by compiling MPICH (version 3.0.4) from source. These are the details:

HYDRA build details:
    Version:                                 3.0.4
    Release Date:                            Wed Apr 24 10:08:10 CDT 2013
    CC:                              cc
    CXX:                             c++
    F77:                             gfortran
    F90:                             gfortran
configure options:
 ./configure --prefix=/usr/local FC=gfortran F77=gfortran

I had to install HDF5 and PARMETIS from source as well.

Cheers,
Peter
-- 
_____________________
Dr. Peter Alt-Epping
University of Bern
Institute of Geological Sciences
Baltzerstrasse 3
3012 Bern
Switzerland
____________
T: +41 31 631 4531
F: +41 31 631 4843

Igal Tsarfis

unread,
Jun 10, 2014, 2:14:29 AM6/10/14
to pflotra...@googlegroups.com
Hello

Just wanted to point out that I've been using Pflotran+PETSc under cygwin 32bit installation for about half a year now. It was very positive experience on two computers, while updating PETSc and cygwin quite a few times.

The installation has no windows installed packages. Here are the Cygwin packages used:
bash, diffutils, gzip, patch, patchutils, python,  tar,  git, mercurial, make, autoconf, gcc-core,  gcc-g++, gcc-fortran,  flex,  gdb, git-svn, all the later suggested by Cygwin.

Here are the PETSc configuration options used:
'--download-cmake=yes', '--download-fblaslapack=yes', '--download-hdf5=yes', '--download-metis=yes', '--download-mpich=yes', '--download-parmetis=yes',
'--useThreads=0', '--with-c2html=no', '--with-cc=gcc', '--with-debugging=yes', '--with-fc=gfortran', '--with-make=/usr/bin/make', 'PETSC_ARCH=arch-mswin-c-opt'

Using this configuration, PETSc was installed with MPICH-3.1

Igal

Reply all
Reply to author
Forward
0 new messages