home *** CD-ROM | disk | FTP | other *** search
/ Solo Programadores 22 / SOLO_22.iso / gnat / misc / contrib / lapack / install next >
Encoding:
Text File  |  1996-03-19  |  2.9 KB  |  84 lines

  1. Installation Guide.
  2. ===================
  3.  
  4. These packages contain Ada bindings to the LAPACK subroutines. The sources
  5. for LAPACK itself are not  distributed with this package. The Ada bindings
  6. interface to the Fortran version of the LAPACK library (not C or C++), which
  7. you can obtain from the netlib sites.  All the Ada sources and related
  8. materials are in file lapack-ada.tar.gz, which whould be unpacked in a
  9. directory of your choice (see below).
  10.  
  11. Requirements
  12. ============
  13.  
  14.     Gnat 3.04 ( and gcc 2.7.2 )
  15.     LAPACK Fortran library version 2.0 
  16.     Fortran library 
  17.       - For F77 complier (SUN), libF77 and libm.
  18.       - For g77 complier (GNU), libf2c.
  19.  
  20. You only need a Fortran compiler if you want to do multi-language
  21. programming, or if you need to build LAPACK itself. 
  22.  
  23. A number of test examples in directories /test and /pilot
  24. assume that you have a Fortran77 compiler available.
  25.  
  26. TESTING    
  27. =======
  28.  
  29. Testing procedures interf and lapack can be found in directory /test. 
  30. Interf tests basic compatibility between Fortran compiler and GNAT. Lapack
  31. exercises the tests supplied with LAPACK, through the Ada bindings.
  32.  
  33. If you install LAPACK from source with your Fortran complier, we
  34. strongly recommend that you  test interf first. More information can
  35. be found in /test/README. 
  36.  
  37. INSTALL
  38. =======
  39.  
  40. To use LAPADA, unpack the zipped tar file in the directory of your choice.
  41. Options for your environment are specified in ada/labase.ads. You may need to
  42. change the names of the Fortran compiler and specify some other linker
  43. and library options as specified in that package declaration:
  44.  
  45. 1. You should check the library name for LAPACK. The default is typically
  46.    lapack_"platform".a,  e.g. lapack_sun4.a. Most administrators choose instead
  47.    liblapack.a because the standard linker option is to examine names of
  48.    the form libxxx . 
  49.  
  50. 2. You should check the loader that GNAT uses, it is installation dependent. 
  51.    It may be Sun ld or GNU ld on SUN platforms. If the first, you shoud
  52.    add LD_LIBRARY_PATH to your environment to specify the location of the 
  53.    required library. For GNU ld, you should add 
  54.  
  55.     pragma Linker_Option (-L"path name"). 
  56.  
  57.    You can also  use -largs option with gnatmake:
  58.  
  59.     %gnatmake test -largs -L/local/bra/bra
  60.  
  61.  
  62. 3.  Add the ada directory for lapada to ADA_INCLUDE_PATH and ADA_OBJECT_PATH
  63.     environment variable. (See the GNAT documentation for their use).
  64.  
  65.   If you have direct access to the GNAT installation, you can place the
  66.   lapada files in the standard GNAT locations:
  67.  
  68.   a)  run make in the directory containing lapada files. 
  69.   b)  move *.ads and *.adb into /usr/adainclude
  70.   c)  move *.ali and *.o into /usr/lib/gcc-lib/'platform'/'version'/adalib. 
  71.  
  72.  
  73. G77
  74. === 
  75.  
  76. If you have compiled LAPACK with  g77, linker_option should be "lf2c" 
  77. (using libf2c rather than libF77). Comment out all F77 options. 
  78. Static option may be required in link phase.
  79.  
  80.  
  81. Wasu Chaopanon
  82. Wed Mar  6 17:00:50 EST 1996
  83.  
  84.