# Problem with the Gromacs installation on Ubuntu 20.4

**URL:** <https://gromacs.bioexcel.eu/t/problem-with-the-gromacs-installation-on-ubuntu-20-4/5579>\
**Category:** User discussions\
**Tags:** installation-error\
**Created:** [January 16, 2023, 4:06pm UTC](https://gromacs.bioexcel.eu/t/problem-with-the-gromacs-installation-on-ubuntu-20-4/5579 "2023-01-16T16:06:12Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![James\_Stoney](https://avatars.discourse-cdn.com/v4/letter/j/65b543/32.png) [@James\_Stoney](https://gromacs.bioexcel.eu/u/James_Stoney)\
**Post date:** [January 16, 2023, 4:06pm UTC](https://gromacs.bioexcel.eu/t/problem-with-the-gromacs-installation-on-ubuntu-20-4/5579/1 "2023-01-16T16:06:12Z")

</div>

GROMACS version: gromacs-2022.4/  
GROMACS modification: No

Here is the error recieved at the end of the compilation of the gromacs produced by MAKE:  
[100%] Built target scanner

[100%] Built target libgromacs  
[100%] Built target gmxapi  
[100%] Built target nblib  
[100%] Linking CXX executable …/…/…/bin/methane-water-integration  
/usr/bin/ld: /home/enrico/Desktop/MD\_229e/gromacs-2022.4/build/lib/libgromacs.so.7: undefined reference to `srot_' /usr/bin/ld: /home/enrico/Desktop/MD_229e/gromacs-2022.4/build/lib/libgromacs.so.7: undefined reference to `strsm\_’  
collect2: error: ld returned 1 exit status  
make[2]: \*\*\* [api/nblib/samples/CMakeFiles/methane-water-integration.dir/build.make:87: bin/methane-water-integration] Error 1  
make[1]: \*\*\* [CMakeFiles/Makefile2:4767: api/nblib/samples/CMakeFiles/methane-water-integration.dir/all] Error 2  
make: \*\*\* [Makefile:163: all] Error 2

Alternatively I’ve tried to install Gromacs using apt-get but it installed the version 2020.1 which have a bug in the xpm2ps utility.

How could I resolve my issue ? Are there any possibilities to update from 2020.1 to any versions that fixed the xpm2ps on the ubuntu 20.4?

Many thanks in advance  
Enrico

---

<div class="post-metadata">

**Author:** ![Rana](https://avatars.discourse-cdn.com/v4/letter/r/3e96dc/32.png) [@Rana](https://gromacs.bioexcel.eu/u/Rana)\
**Post date:** [August 18, 2023, 7:46pm UTC](https://gromacs.bioexcel.eu/t/problem-with-the-gromacs-installation-on-ubuntu-20-4/5579/2 "2023-08-18T19:46:39Z")

</div>

I am facing the same problem.

---

<div class="post-metadata">

**Author:** ![al42and](https://dub1.discourse-cdn.com/flex017/user_avatar/gromacs.bioexcel.eu/al42and/32/1393_2.png) [@al42and](https://gromacs.bioexcel.eu/u/al42and)\
**Post date:** [August 18, 2023, 8:28pm UTC](https://gromacs.bioexcel.eu/t/problem-with-the-gromacs-installation-on-ubuntu-20-4/5579/3 "2023-08-18T20:28:46Z")

</div>

Hi! Have you tried using the solution from [Regarding the error undefined reference to `srot_', `strsm\_'](https://gromacs.bioexcel.eu/t/regarding-the-error-undefined-reference-to-srot-strsm/3910)? For Ubuntu, the analogous command would be `sudo apt install libblas-dev liblapack-dev`

---

<div class="post-metadata">

**Author:** ![Rana](https://avatars.discourse-cdn.com/v4/letter/r/3e96dc/32.png) [@Rana](https://gromacs.bioexcel.eu/u/Rana)\
**Post date:** [August 18, 2023, 9:59pm UTC](https://gromacs.bioexcel.eu/t/problem-with-the-gromacs-installation-on-ubuntu-20-4/5579/4 "2023-08-18T21:59:01Z")

</div>

i used make -j12 (number of thread in cpu) and compiled successfully.
