Skip to content

Instantly share code, notes, and snippets.

@fedebenelli
Last active January 30, 2024 00:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fedebenelli/cf3d3eae37e883cc0d43cdf7ccaf83d2 to your computer and use it in GitHub Desktop.
Save fedebenelli/cf3d3eae37e883cc0d43cdf7ccaf83d2 to your computer and use it in GitHub Desktop.
Setup WSL for Fortran development
#!/bin/sh
install_packages() {
# First update everything.
apt update && apt upgrade
# Install:
# - Python package manager
# - GNU Fortran compiler
# - BLAS and LAPACK libraries (for linear algebra operations)
# - Gnu debugger
# -
apt install \
python3-pip \
gfortran \
libblas-dev liblapack-dev \
gdb \
pipx
# Install fortran language server, fprettify and flinter
pipx install fortls fprettify flinter findent fpm
}
install_packages
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment