Installation of STPK Library


  1. Download and extract the TAR file of STPK library.
  2. Set some environmental variables (the following is some examples).

    [Intel Fortran]
    FC = ifort, FCFLAGS = "-assume byterecl -convert big_endian"
    FC = gfortran, FCFLAGS = "-fconvert=big-endian"
    FC = g95, FCFLAGS = "-fendian=big"
  3. Run the configure program to produce Makefiles

    $ ./configure [options]

    The following is some examples of option (In detail, use --help option in configure).

    --prefix = [directory to install the library] (default : /usr/local)
    --includedir = [directory to install the module files] (default : /usr/local/include)
  4. Run the Makefile if there is no error in configure.

    $ make
    $ make install  # you may need the root permission in your system, depending on your prefix.



You can use the OpenMP parallel method in using this library.

Then, set an environment variable for the OpenMP.

[Intel Fortran]
FCFLAGS="-assume byterecl -convert big_endian -openmp"

FCFLAGS = "-fconvert=big-endian -fopenmp"


You can build the library in the cross-compiling mode.

Then, set some options in running the configure.


The system-name is not the builing system but the installing system (ex. sparc64v-sparc-linux-gnu).

You can get the system-name by "uname" command on the "installing system".

$ uname -a

An example of the output is

Linux fx05 2.6.32-431.5.1.el6.x86_64 #1 SMP Fri Jan 10 14:46:43 EST 2014 x86_64 x86_64 x86_64 GNU/Linux

In this case, --host will be set in the following:



Manually, remove libstpk.a in the directory which you set in prefix and "*.mod" files in the directory which you set in includedir.