Installing OpenCoarray Fortran under WSL2

Hello all!

With the drop of WSL1 and the push to install WSL2, I’ve decided to create a new tutorial about this install… Thing is; it’s really easy this time! Like almost instantaneous.

Start by installing WSL2 from the Microsoft Store and installing Ubuntu into it from the same store page.
This version of unbuntu is completely hobbled so I found someone else with a like issue and copied these lines;
sudo cp /etc/apt/sources.list /etc/apt/sources.list~
sudo sed -Ei ‘s/^# deb-src /deb-src /’ /etc/apt/sources.list
sudo apt-get update
sudo apt-get upgrade
sudo apt build-dep tmux

Once that was done I trucked over to HomeBrew and installed that;
/bin/bash -c “$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)”

Done with that I installed a few things and my favorite editor;
brew install wget lynx emacs opencoarrays

Within minutes caf and cafrun worked as expected.

Also; the brand new M2pro Macs at work could install HomeBrew as well and run opencoarrays just as fast. Gotta love that HomeBrew! I should send them a beer!

Knarfnarf

3 Likes