pikashu
is compatible only with Unix/Linux environments.
The program comes with a Makefile, so the best way to have it working is to enter the src
directory and type:
make all
If this does not work straightforwardly, check the following points. First you need the make
program installed on your computer. Second, by default the Makefile uses the GNU Fortran Compiler (gfortran
), so it is recommended that you have it installed. Or, you can specify another compiler by editing the Makefile and modifying the FORTRAN
variable. Note that the program uses some procedures that are available only in Fortran 95, so make sure to compile it with an F95-compiler.
In order to optimize the program, you may also change the compilation options, depending on your machine's architecture, by modifying the FFLAGS
variable.
Once the compilation is achieved, if you have the root permissions on your machine, you can type:
make install
By default the program pikashu
will be copied into your /usr/local/bin folder, so that all users of your machine have access to it. You can change this behavior by editing the Makefile and changing the INSTPATH
variable.
If you don't have the root permissions on your machine, then either run the program by calling it with its full absolute path; add the path to the program in your $PATH variable; or create an alias.
In case you encounter problems during compilation, your first call should be to ask your local system administrator to help you. If you encounter a problem that you believe is directly related to the source code of the program, then you can send a bug report to the author.
If you installed the program with the make install
command, then you may uninstall it by entering the src
directory and typing:
make uninstall
This will remove the file pikashu from the installation path (by default /usr/local/bin).
If you did not install the program with the make install
command, simply remove the whole pikashu folder from your disk. Also remove the associated path from the $PATH variable and the alias(es) if you created any.