[petsc-users] Slepc installation

Satish Balay balay at mcs.anl.gov
Thu Mar 28 00:20:18 CDT 2013


On Thu, 28 Mar 2013, Sonya Blade wrote:

> > DEar All,
> > Here is out put from Python console after runing teh suggested Python code script.
> > 
> > >>> import os
> > >>> print os.path.realpath(os.getcwd())
> > C:\Python27
> > >>> print os.path.realpath(os.environ['SLEPC_DIR'])
> > D:\TEST_FOLDER_dell\slepc
> 
> >You should be using cygwin python here from cygwin-shell [as per the
> >installation instructions]- not MS-Python [console].
> 
> Where is that cygwin python, does it come with CygWin standart installation? 
> Is that Cygwin python is seperate package, that I need to install? 

you already have it installed. otherwise you cound't install petsc.

And if you have to startup python to do what Jose suggested - you
would do it from cygwin bash shell. [For ex: I'm using PETSC_DIR here instead of SLEPC_DIR]

>>>>>>>>>>>>>>>>>>>>>>>
balay at Win7-KVM ~/petsc.clone
$ pwd
/home/balay/petsc.clone

balay at Win7-KVM ~/petsc.clone
$ which python
/usr/bin/python

balay at Win7-KVM ~/petsc.clone
$ export PETSC_DIR=/home/balay/petsc.clone

balay at Win7-KVM ~/petsc.clone
$ python
Python 2.7.3 (default, Dec 18 2012, 13:50:09) 
[GCC 4.5.3] on cygwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import os
>>> print os.path.realpath(os.getcwd())
/home/balay/petsc.clone
>>> print os.path.realpath(os.environ['PETSC_DIR'])
/home/balay/petsc.clone
>>> 
<<<<<<<<<<<<<<<<<<<<<<

> 
> I really don't know how I make it so difficult and end up in a mess 
> in such straightforward task. While I was expecting the great hassle 
> from Petsc library where it compiled without any problem.

Have you tried the next part of my reply? To rephrase

[assuming you have PETSC_DIR setup similarly]

cd /cygdrive/d/TEST_FOLDER_dell/slepc
export SLEPC_DIR=/cygdrive/d/TEST_FOLDER_dell/slepc
./configure

BTW: What compilers did you build PETSc with? send make.log for this build.

Satish


More information about the petsc-users mailing list