Arpack - How to Download and Install on Mac OS X
Saturday the 7th of November, 2009

    version 1

      View the most recent changes for the arpack port at: arpack.darwinports.com/diff
      Scroll down toward the bottom of the page to get installation instructions for arpack.
      The raw portfile for arpack 1 is located here:
      http://arpack.darwinports.com/dports/math/arpack/Portfile
      Find related portfiles with the unique DarwinPorts.com search feature.
      Check for any related Fink projects here: pdb.finkproject.org/pdb/package.php/arpack


      The arpack Portfile 59188 2009-10-11 09:08:29Z blb macports.org $

      PortSystem 1.0

      Name: arpack
      Version: 1
      Revision: 3
      Category: math
      Platform: darwin
      Maintainers: mmoll
      Description: Package for solving large scale eigenvalue problems
      Long Description: ARPACK is a collection of Fortran77 subroutines designed to solve large scale eigenvalue problems.
      Homepage: http://www.caam.rice.edu/software/ARPACK
      Master Sites: ${homepage}/SRC/
      distfiles arpack96.tar.gz patch.tar.gz
      Checksums: arpack96.tar.gz md5 fffaa970198b285676f4156cebc8626e patch.tar.gz md5 14830d758f195f272b8594a493501fa2

      use_configure no
      worksrcdir ARPACK
      Patch Files: patch-arpack.diff
      post-patch {
      if {[variant_isset g95]} {
      reinplace "s|-ff2c||" ${worksrcpath}/ARmake.inc
      }
      }
      use_parallel_build no
      build.args all home=${worksrcpath}
      destroot {
      xinstall -m 644 -v -W ${worksrcpath} libarpack.a ${destroot}${prefix}/lib
      }
      post-destroot {
      system "ranlib ${destroot}${prefix}/lib/libarpack.a"
      }

      Variant: gcc42 description {build with gfortran-mp-4.2} conflicts gcc43 gcc44 g95 {
      build.args-append FC=${prefix}/bin/gfortran-mp-4.2
      depends_build-append port:gcc42
      }

      Variant: gcc43 description {build with gfortran-mp-4.3} conflicts gcc42 gcc44 g95 {
      build.args-append FC=${prefix}/bin/gfortran-mp-4.3
      depends_build-append port:gcc43
      }

      Variant: gcc44 description {build with gfortran-mp-4.4} conflicts gcc42 gcc43 g95 {
      build.args-append FC=${prefix}/bin/gfortran-mp-4.4
      depends_build-append port:gcc44
      }

      Variant: g95 description {build with g95} conflicts gcc42 gcc43 gcc44 {
      build.args-append FC=${prefix}/bin/g95
      depends_build-append port:g95
      }

      Variant: mpi description {build PARPACK, the parallel eigenvalue solver library} {
      distfiles-append parpack96.tar.gz ppatch.tar.gz
      checksums-append parpack96.tar.gz md5 598d0453b938ccd99a078246be5927f3 ppatch.tar.gz md5 e6f0d70dd99f719c0efee351d0875c96
      pre-fetch {
      if {![file exists ${prefix}/bin/openmpif77]} {
      return -code error "Please install one of the following variants of the openmpi port: gcc42, gcc43, gcc44, g95."
      }
      }
      pre-build { foreach entry [glob -directory ${worksrcpath}/PARPACK */MPI/mpif.h] { delete $entry } }
      depends_build port:openmpi
      build.args all FC=${prefix}/bin/openmpif77 home=${worksrcpath}
      destroot {
      xinstall -m 644 -v -W ${worksrcpath} libarpack.a libparpack.a ${destroot}${prefix}/lib
      }
      post-destroot {
      system "ranlib ${destroot}${prefix}/lib/libarpack.a"
      system "ranlib ${destroot}${prefix}/lib/libparpack.a"
      }
      }

      if { ![variant_isset gcc42] && ![variant_isset gcc43] && ![variant_isset gcc44] && ![variant_isset g95] } {
      default_variants +gcc43
      }

      livecheck.type none

    If you haven't already installed Darwin Ports, you can find easy instructions for doing so at the main Darwin Ports page.

    Once Darwin Ports has been installed, in a terminal window and while online, type the following and hit return:


      %  cd /opt/local/bin/portslocation/dports/arpack
      % sudo port install arpack
      Password:
    You will then be prompted for your root password, which you should enter. You may have to wait for a few minutes while the software is retrieved from the network and installed for you. Y ou should see something that looks similar to:

      ---> Fetching arpack
      ---> Verifying checksum for arpack
      ---> Extracting arpack
      ---> Configuring arpack
      ---> Building arpack with target all
      ---> Staging arpack into destroot
      ---> Installing arpack
    - Make sure that you do not close the terminal window while Darwin Ports is working. Once the software has been installed, you can find further information about using arpack with these commands:
      %  man arpack
      % apropos arpack
      % which arpack
      % locate arpack

     Where to find more information:

    Darwin Ports



    Lightbox this page.