Giter Club home page Giter Club logo

quickstart-fortran's Introduction

Quickstart Fortran on Windows

An easy Windows installer and launcher for GFortran and the Fortran Package Manager

Download the latest installer from the Releases Page

Note: the installer takes a little while to startup due to it size, please be patient.

quickstart-fortran-installer-screenshot

Features

  • Installs locally, no adminstrator account required
  • Optionally add everything to the PATH for the local user
  • Includes:
    • GCC-GFortran 12.2.0
    • Fortran Package Manager v0.8.2
    • Git for Windows v2.35.2 (needed for fpm)
    • OpenBLAS (BLAS/LAPACK) v0.3.20-1
    • GNU make v4.3
  • Extra utility commands
    • intel-setvars to initialise the Intel OneAPI environment (if installed)
    • setup-stdlib to build and install the latest version of the Fortran Standard Library

FAQ

Do I need to be administrator to install this?

No, the installer will install files to the AppData directory for the current user (C:\Users\<user>\AppData\Local).

What is 'Add to path' and do I need it?

The 'Add to path' installer option will update the Windows PATH variable for the local user so that all the installed components are available to other applications. This means that you can call gfortran or fpm from any command window or code editor/IDE.

Alternatively, you may create an 'isolated' installation by unchecking the 'Add to path' option when installing. In this case, the installed programs are only made available when you use the 'Quickstart Fortran' command line shortcut added to the desktop and start menu.

Can I use this with the Intel OneAPI Compiler?

Yes. The installation adds a helper command intel-setvars to setup the intel environment (this must be called each time you open a new command window.). The helper script assumes OneAPI is installed at C:\Program Files (x86)\Intel\oneAPI.

After setting up the intel environment, you may use ifort with fpm by appending --compiler ifort to each fpm command or by setting the environment variable:

> set FPM_COMPILER=ifort

How can I install stdlib with this?

First, run the installer, making sure that GFortran, fpm and Git are selected. After install, open up the commmand window using the Quickstart Fortran shortcut on the desktop or in the start menu. At the command window type setup-stdlib and press ENTER. This will fetch the latest version of stdlib and install it to the local GFortran installation.

Note: The setup-stdlib script only works with the GFortran installation provided with this installer - it cannot currently detect existing GFortran or Intel fortran installations.

How do I compile with BLAS/LAPACK?

The optimized OpenBLAS library is included with the GCC installation. Use the link flags -llapack -lblas or add the following to your fpm.toml file:

[build]
link = ["lapack", "blas"]

How do I uninstall?

There is an uninstall program which may be launched from the start menu:

Start menu > All programs > Quickstart Fortran > Uninstall

About

The installer is built using the Nullsoft Scriptable Install System.

See quickstart-fortran-installer.nsi for the configuration file and make_installer.yml for the Github actions workflow.

The GNU Compiler Collection v11.2.0 is sourced from WinLibs based on the MinGW-w64 project linked with MSVCRT.

quickstart-fortran's People

Contributors

lkedward avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

quickstart-fortran's Issues

setup-stdlib.bat installs probably unnecessary mod files

Thank you for releasing such great software. ๐ŸŽ‰
I installed it immediately and tried it out. I like it very much because it is easy, helpful, and convenient.

After installing quickstart-fortran, I built and installed stdlib using the contained bat file, setup-stdlib.bat.

In the installed directory %USERPROFILE%\AppData\Local\quickstart_fortran\mingw64\lib\gcc\x86_64-w64-mingw32\10.3.0\finclude, I found many mod files with the prefix test_. I think these are mod files created during the build of tests of stdlib, located in stdlib\test directory, and are not required for using and linking the stdlib.

Can I configure those not to be installed?

gcc / gfortran 13

@LKedward thanks again for this excellent work. Do you plan to make a new release with most recent gcc compilers, e.g., gfortran-13 or newer if available by the time?
Can you also confirm if you intend to keep the binary file name fixed for the foreseeable future? This would be good for installation automation to find the binary file with the same name always at: https://github.com/LKedward/quickstart-fortran/releases/latest regardless of the release version.

add topics

I suggest adding the topics fortran-compiler, fortran, gfortran, gcc, lapack, fortran-package-manager, windows in the About section.

No issue - I just wanted to say thanks!!

I have been pulling my hair out trying to get gfortran working on my work computer. Nothing worked, but then I found this repo.

Thanks for your hard work, you absolute legend!

New versions of `fpm` and `gcc/gfortran`

The current version of fpm is 0.9.0, released on Jun 2, 2023.

gcc and gfortran are now up to version 13 (13.2 as of 09/12/2023).

Could you update this very useful installer to reflect these newer versions for Windows?

Also, any idea how to use this in GitHub Actions?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.