# Compiling v9.1.0 on Debian 13 (Trixie) - Could not link library error

**URL:** <https://opentelemac.org/forum/t/compiling-v9-1-0-on-debian-13-trixie-could-not-link-library-error/8106>\
**Category:** Linux Version\
**Created:** [January 27, 2026, 7:01pm UTC](https://opentelemac.org/forum/t/compiling-v9-1-0-on-debian-13-trixie-could-not-link-library-error/8106 "2026-01-27T19:01:30Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![user\_2745](https://opentelemac.org/forum/letter_avatar_proxy/v4/letter/u/dec6dc/32.png) [@user\_2745](https://opentelemac.org/forum/u/user_2745)\
**Post date:** [January 27, 2026, 7:01pm UTC](https://opentelemac.org/forum/t/compiling-v9-1-0-on-debian-13-trixie-could-not-link-library-error/8106/1 "2026-01-27T19:01:30Z")

</div>

Hello Telemac Community,

I am finally getting back into telemac again, after a taking a long break. I am trying to compile the latest version of the code, and am running into a bit of difficulty. It looks like the configuration files have changed since last time I used them (v8.4). I see that v9.1 no longer has the \*/config directory.

The system wide dependencies I installed are these:

```auto
apt install make cmake ninja-build git gfortran openmpi-[name removed] build-essential

```

Then I created a simple set\_env.sh file, with the following contents:

```auto
export HOMETEL="/home/user/telemac_v9.1.0"

export BUILD_TYPE=Release

export [name removed]/builds/telemac_v9.1.0"

export PATH="$HOMETEL/scripts/python3:${PATH}"

```

Then, I sourced the set\_env.sh file, and compiled as follows (I excluded everything other than mpi and [group removed]):

```auto
build_telemac.py -j 4 --deps mpi metis

```

The build went to completion, and I get â€œMy work is doneâ€ printed nicely in green. But, when I try a run t2d\_gouttedo.cas test case, I get the following error message. Does anyone know what could be a cause?

```auto
... checking the executable

  ~> Compiling Fortran files

         compiling: user_condin_h.f ... completed

         compiling: user_condin_trac.f ... completed

/usr/bin/ld: cannot open dependency file CMakeFiles/user_fortran.dir/link.d: No such file or directory

collect2: error: ld returned 1 exit status

...

utils.exceptions.TelemacException: Could not link your library (runcode=1).

```

---

<div class="post-metadata">

**Author:** ![user\_15804](https://opentelemac.org/forum/letter_avatar_proxy/v4/letter/u/e9bcb4/32.png) [@user\_15804](https://opentelemac.org/forum/u/user_15804)\
**Post date:** [March 1, 2026, 10:05am UTC](https://opentelemac.org/forum/t/compiling-v9-1-0-on-debian-13-trixie-could-not-link-library-error/8106/2 "2026-03-01T10:05:43Z")

</div>

you need to update the MPI\_ROOT variable in your evn file,

export MPI\_ROOT=/somedir/
