The g95-MinGW.exe g95 Installer =============================== G95-MinGW.exe is a self-extracting installer for the free GNU g95 Fortran compiler. It works on Windows VISTA, XP, 2000, ME, 95 and 98. The g95-MinGW.exe installer allows the user to specify any install directory for g95. However, if MinGW is already installed on your system, it is best to install g95 in the root MinGW directory. The mingw site suggests two possible ways to install MinGW, either (a) install MinGW into a directory by itself, such as c:/mingw, and modify your /etc/fstab file to point the MSYS /mingw directory to it, or (b) install Msys first and install the MinGW packages in the <msys_prefix>/mingw directory, for example in c:\msys\1.0\mingw. If your installation is the option (a) type, install g95 in c:\mingw, and add the c:\MinGW\bin directory in your path. The LIBRARY_PATH environment variable should be set to c:\MinGW\lib. If it is type (b), install g95 into the c:\msys\1.0\mingw directory and add this directory your path. On systems without MinGW, g95 can be installed along with an additional set of programs and libraries from the MinGW distribution that are needed to run g95. All these programs and libraries are included in the self-extracting installer as compressed files. They will be installed for you if you respond by clicking the "Ok" button when the installer asks: "Install MinGW Utilities and libs?" Responding with "Ok" is recommended even when installing g95 into a MinGW directory structure, as doing so will ensure you have fairly recently updated versions of these files. The PATH and the LIBRARY_PATH environment variables should be properly set up to find the g95 bin and lib directories. The g95 installer contains all the libraries and programs needed to successfully use the g95 compiler, and produce executables for Windows systems. These include MinGW compliant versions of the GNU linker, ld.exe, and assembler, as.exe (both these are part of the MinGW binutils package), as well as numerous libraries essential for g95. About MinGW =========== MinGW ("Minimalistic GNU for Windows") provides an environment for compiling and linking code based on the GNU GCC and binutils projects to be run on Win32 platforms. Further information, and the complete distribution of MinGW is available from: http://www.mingw.org/download.shtml. Requirements ============ * About 15 MB free space on your hard drive. INSTALLING THE MINGW G95 FORTRAN COMPILER ========================================= The g95-MinGW.exe g95 installer extracts the files needed for g95 to run on supported Windows systems with or without MinGW already installed. Where MinGW is not installed a minimal set of support files from the MinGW distribution and the MinGW binutils package is required. These can also be installed if installing into MinGW. Doing this, especially if it is a the first time g95 is installed, will ensure that all the files that g95 needs to run are available immediately. To do this, when the message box asks: "Install MinGW Utilities and libs?", respond by clicking "Ok". The PATH environment variable may then be set to include the path to MinGW and the g95 executable. Avoid directory names containing spaces, e.g. "c:\Program Files\.." Avoid duplicate entries in your PATH. Set the LIBRARY_PATH environment variable to the location of your MinGW\lib directory. G95 uses the environment variable TMP for saving temporary files. TMP should be set to point to a directory on your system. INSTALLING ON WINDOWS 95/98/ME ============================== In Windows 95/98/Me the PATH is usually set in the autoexec.bat file, which is stored in the root directory of your hard disk; i.e. c:\. Edit this file and add the following lines: PATH=<MinGW_bin_path>;<g95_install_path>;%PATH% SET LIBRARY_PATH=<MinGW_library_path> where <MinGW_bin_path> is the full path to the MinGW\bin directory, <g95_install_path> is the path to the directory containing g95.exe, and <MinGW_library_path> is the full path to the MinGW\lib directory. You can do this by opening this file in Notepad or any other editor, adding the above line at the end, and then saving the changes. You must reboot for the changes to take effect. INSTALLING ON WINDOWS NT/2000/XP ================================ In Windows NT/2000/XP the PATH variable can be set by going to the Control Panel, selecting System, and then locating the environment (or advanced, environment) section. Add a new variable named LIBRARY_PATH and set its value to <MinGW_library_path>, i.e., the full path to the MinGW\lib directory. Similarly add a new variable named PATH (or edit it if already present) and set its value to: <MinGW_install_path>;<g95_install_path>;%PATH% Alternatively, place the following line in a batch file, and run it before invoking g95. SET PATH=<MinGW_install_path>;<g95_install_path>;%PATH% SET LIBRARY_PATH = <MinGW_library_path> Replace <MinGW_install_path> with the full path to the MinGW\bin directory, and <g95_install_path> with the path to the directory containing g95.exe, and <MinGW_library_path> with the full path to the MinGW\lib directory. INSTALLING ON WINDOWS VISTA =========================== For Windows VISTA, in addition to the procedures outlined above for Windows XP, add the directory: <g95_install_path>\lib\gcc-lib\i686-pc-mingw32\4.x.x to both the PATH and LIBRARY_PATH environment variables, where <g95_install_path> is the directory where g95 is installed. Change "4.x.x" to the appropriate directory for the g95 version you installed. The GNU g95 Fortran Compiler ============================ The g95 website URL is: http://www.g95.org. For license details see the file COPYING.txt included in this package. The source code for g95 is available at: http://ftp.g95.org/g95_source.tgz Bug reports should be sent to Andy Vaught: firstname.lastname@example.org Support ======= For user support try posting a message on the g95 message board at: http://groups-beta.google.com/group/gg95 Please include appropriate details such as: * the platform and OS you are using * the build of g95 (use 'g95 -v' and post the output) * any compiler options used * the error message * example code snippet that caused the error * specify the version of Cygwin or MinGW used * output from the command "echo $PATH" in a Msys shell * any other pertinent information Documentation ============= A manual for using the G95 compiler is provided in the doc directory. This can be viewed using the free Acrobat Reader or in a word processor that supports pdf. AUTHOR ====== The script for building the g95-MinGW.exe installer was written by Doug Cox, e-mail email@example.com.