# Installing fpm-0.10.1

**URL:** https://fortran-lang.discourse.group/t/installing-fpm-0-10-1/8268
**Category:** fpm
**Created:** [June 27, 2024, 2:30pm UTC](https://fortran-lang.discourse.group/t/installing-fpm-0-10-1/8268 "2024-06-27T14:30:11Z")
**Posts on this page:** 4
**Page:** 2

<div class="post-metadata">

### Author: ![FedericoPerini](https://yyz2.discourse-cdn.com/free1/user_avatar/fortran-lang.discourse.group/federicoperini/32/1750_2.png) [@FedericoPerini](https://fortran-lang.discourse.group/u/FedericoPerini)
#### Post date: [December 27, 2024, 6:53pm UTC](https://fortran-lang.discourse.group/t/installing-fpm-0-10-1/8268/21 "2024-12-27T18:53:55Z")

</div>

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:

```auto
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`:

```auto
[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](https://fpm.fortran-lang.org)

---

<div class="post-metadata">

### Author: ![FedericoPerini](https://yyz2.discourse-cdn.com/free1/user_avatar/fortran-lang.discourse.group/federicoperini/32/1750_2.png) [@FedericoPerini](https://fortran-lang.discourse.group/u/FedericoPerini)
#### Post date: [December 27, 2024, 6:57pm UTC](https://fortran-lang.discourse.group/t/installing-fpm-0-10-1/8268/22 "2024-12-27T18:57:10Z")

</div>

> [@blueforceconsulting](#):
>
> Why did I need to make an instance of it inside the folder and then invoke with ./fpm?

The reason is that your working `fpm` executable is in none of the system’s `PATH`s. 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:

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

```

---

<div class="post-metadata">

### Author: ![blueforceconsulting](https://avatars.discourse-cdn.com/v4/letter/b/4af34b/32.png) [@blueforceconsulting](https://fortran-lang.discourse.group/u/blueforceconsulting)
#### Post date: [December 27, 2024, 7:31pm UTC](https://fortran-lang.discourse.group/t/installing-fpm-0-10-1/8268/23 "2024-12-27T19:31:15Z")

</div>

> [@ormo](#):
>
> ```auto
> git clone https://github.com/fortran-lang/fpm.git
> cd fpm 
> sh ./install.sh
> 
> ```

@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.

---

<div class="post-metadata">

### Author: ![blueforceconsulting](https://avatars.discourse-cdn.com/v4/letter/b/4af34b/32.png) [@blueforceconsulting](https://fortran-lang.discourse.group/u/blueforceconsulting)
#### Post date: [December 27, 2024, 9:19pm UTC](https://fortran-lang.discourse.group/t/installing-fpm-0-10-1/8268/24 "2024-12-27T21:19:21Z")

</div>

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

[Previous page](https://fortran-lang.discourse.group/t/installing-fpm-0-10-1/8268.md?page=1)
