Installing fpm-0.10.1

Sorry I’m not a MacPorts user (I use homebrew). From what I see, it seems like the fortran-csv-module you’re installing from MacPorts has fpm as a dependency, and because it tries to install it from MacPorts, you fall back to the original problem. But fortran-csv-module supports fpm natively. So you can:

  1. Build fortran-csv-module from source using your local fpm installation:
git clone https://github.com/jacobwilliams/csv-fortran.git
cd csv-fortran
fpm install --prefix=/path/to/install/folder
  1. If your main project is a fpm one, just add fortran-csv-module as a dependency in your project’s fpm.toml:
[dependencies]
csv-fortran = { git="https://github.com/jacobwilliams/csv-fortran.git" }

You can find a lot of documentation about getting started with fpm at https://fpm.fortran-lang.org

The reason is that your working fpm executable is in none of the system’s PATHs. When you ran the installer install.sh, it defaults to installing fpm in $HOME/.local/bin. If you have another preferred location that is in the system PATH, you can run the installer again with a prefix keyword:

sh ./install.sh --prefix=/to/folder/in/system/path

@FedericoPerini Thanks for this and the previous. What is the current best practice where applications like fpm are placed? I prefer not to have then scattered but all in one place. Once I decide, I’ll add to $PATH.

I added it to /usr/local/bin, which is in my $PATH.

Thank you for all your help. How do I get updates on fpm going forward?

Jeff