slepc install from master branch fails with trlan package error

Issue #9 resolved
DS created an issue

Installing from the master branch

git clone https://bitbucket.org/slepc/slepc.git
cd slepc
export SLEPC_DIR=$(pwd)
/usr/bin/python2 configure --prefix=/usr/lib --with-arpack=1 --download-primme=https://github.com/primme/primme/archive/v2.1.tar.gz --download-trlan=https://codeforge.lbl.gov/frs/download.php/15/trlan.tar.gz

The results are

Checking environment... done
Checking PETSc installation... done
Checking ARPACK... done
Installing PRIMME version 2.1... done
Installing TRLAN version 201009...
Traceback (most recent call last):
  File "configure", line 10, in <module>
    execfile(os.path.join(os.path.dirname(__file__), 'config', 'configure.py'))
  File "config/configure.py", line 320, in <module>
    pkg.Process(slepcconf,slepcvars,cmakeconf,petsc,archdir)
  File "/home/dsmith/Temp/slepc/config/package.py", line 76, in Process
    self.Install(conf,vars,cmake,petsc,archdir)
  File "/home/dsmith/Temp/slepc/config/packages/trlan.py", line 64, in Install
    g = open(os.path.join(builddir,'Make.inc'),'w')
IOError: [Errno 2] No such file or directory: '/home/dsmith/Temp/slepc/installed-x86_64-linux-gnu-real/externalpackages/trlan-201009/Make.inc'

The TRLan web site advised that the current version is

https://sdm.lbl.gov/~kewu/ps/trlan_.html

The package actually downloaded shows

ls -l installed-x86_64-linux-gnu-real/externalpackages
total 8
drwxrwxr-x 11 me me 4096 May  5 08:01 PRIMME
drwxr-x---  7 me me 4096 Nov 25  2002 TRLan

The Python code in configure/packages/trlan.py has an old URL package. I changed the init to have

self.dirname = 'TRLan'

I've attached my modification. Maybe I'm wrong, but I don't see any notice on the web site that a specific version of TRLan should be used.

No joy using

/usr/bin/python2 configure --prefix=/usr/lib --with-arpack=1 --download-primme=https://github.com/primme/primme/archive/v2.1.tar.gz --with-trlan
Checking environment... done
Checking PETSc installation... done
Checking ARPACK... done
Installing PRIMME version 2.1... done
Checking TRLAN... 
ERROR: Unable to link with library TRLAN
ERROR: In directories  /usr/local/lib
ERROR: With flags -Wl,-rpath,/usr/local/lib -L/usr/local/lib -ltrlan_mpi


ERROR: See "installed-x86_64-linux-gnu-real/lib/slepc/conf/configure.log" file for details

Comments (5)

  1. DS reporter

    Apologies, the first block should be

    git clone https://bitbucket.org/slepc/slepc.git
    cd slepc
    export SLEPC_DIR=$(pwd)
    
  2. Jose E. Roman

    The file trlan-201009.tar.gz contains a version of September 2010, whereas the file that you suggest https://codeforge.lbl.gov/frs/download.php/15/trlan.tar.gz contains an older version (you can check this with a recursive diff). If for some reason you want to use the old version, you will have to install it locally in your computer and then use the option --with-trlan-flags in SLEPc's configure.

  3. DS reporter

    I used --download-trlan with no url - I noticed in the help that the url was optional - and it works just fine. Sorry for bothering you.

  4. Log in to comment