# Gromacs-2020.2 installation errors

**URL:** <https://gromacs.bioexcel.eu/t/gromacs-2020-2-installation-errors/274>\
**Category:** User discussions\
**Created:** [June 8, 2020, 11:17pm UTC](https://gromacs.bioexcel.eu/t/gromacs-2020-2-installation-errors/274 "2020-06-08T23:17:28Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rosa\_16](https://avatars.discourse-cdn.com/v4/letter/r/77aa72/32.png) [@Rosa\_16](https://gromacs.bioexcel.eu/u/Rosa_16)\
**Post date:** [June 8, 2020, 11:17pm UTC](https://gromacs.bioexcel.eu/t/gromacs-2020-2-installation-errors/274/1 "2020-06-08T23:17:28Z")

</div>

Dear friends,

I hope you are all well.

I am Rosa Hawlader, a second-year mechanical engineering student at York University.

For the past couple of days, I have been trying to install gromacs-2020.2 onto my Ubuntu Terminal. However, I am running into many errors/problems. I have posted about this before but I do not think anyone will be able to help me unless I state what steps I am taking exactly. Below I have written all the command I am using to install gromacs-2020.2 onto my Ubuntu terminal.

Command lines:

1. sudo apt-get install cmake
2. sudo apt-get install libfftw3-dev
3. sudo wget ftp://ftp.gromacs.org/pub/gromacs/gromacs-2020.2.tar.gz
4. sudo tar xvzf gromacs-2020.2.tar.gz
5. sudo cd gromacs-2020.2
6. sudo mkdir build
7. sudo cd build
8. sudo cmake … -DGMX\_GPU=OFF -DGMX\_BUILD\_OWN\_FFTW=ON -DREGRESSIONTEST\_DOWNLOAD=ON -DCMAKE\_INSTALL\_PREFIX=/opt/gromacs-2020.1/
9. sudo make check
10. sudo make -j 4
11. sudo make install
12. sudo source /opt/gromacs-2020.1/bin/GMXRC

With that in mind, please note that I am very inexperienced with both Ubuntu (I have used Windows my whole life) and gromacs which I did not know about until a few months ago. This leaves a lot of room for me to make many mistakes during this installation process. If you see any errors please do point them out. Any help is appreciated.

As for why I am using Ubuntu and gromaces, I am currently researching the aggregation of asphaltenes in crude oil and to do that I need to run several MD simulation which where gromacs ad Ubuntu come into play.

---

<div class="post-metadata">

**Author:** ![mijiddorj](https://avatars.discourse-cdn.com/v4/letter/m/779978/32.png) [@mijiddorj](https://gromacs.bioexcel.eu/u/mijiddorj)\
**Post date:** [June 9, 2020, 5:06am UTC](https://gromacs.bioexcel.eu/t/gromacs-2020-2-installation-errors/274/2 "2020-06-09T05:06:29Z")

</div>

> [@Rosa\_16](#):
>
> why I am using Ubuntu and gromaces, I am currently researching the aggregation of asphaltenes in crude oil and to do that I need to run several MD simulation which where gromacs ad Ubuntu come into play.

what is your problem?

---

<div class="post-metadata">

**Author:** ![Rosa\_16](https://avatars.discourse-cdn.com/v4/letter/r/77aa72/32.png) [@Rosa\_16](https://gromacs.bioexcel.eu/u/Rosa_16)\
**Post date:** [June 9, 2020, 2:36pm UTC](https://gromacs.bioexcel.eu/t/gromacs-2020-2-installation-errors/274/3 "2020-06-09T14:36:10Z")

</div>

I have installed for gromacs-2020.2 on to my Ubuntu terminal. (Please see images attached to the post)

 ![gromacs-2020.2 (Intsallation complete)](https://europe1.discourse-cdn.com/flex017/uploads/bioexcel1/original/1X/60b8c1b2ad93f550ea474cae6f2558540a155f22.png)

However, when I tried to run my simulations with the 2020.2 version, the terminal could not find the gmx with sudo, however it did recognize the gmx by itself but that was not enough since Ubuntu requires sudo to access and write into file.

 ![2020_Error](https://europe1.discourse-cdn.com/flex017/uploads/bioexcel1/original/1X/6e1d6777046bfe6ba7707355f5e1c89c83cc94b0.png)

Once again, I ran the sudo gmx mdrun … command line and received a suggestion from Ubuntu to install gromacs using sudo apt-get gromacs, which changed my gromacs-2020.2 version to . (Please see images attached to the email)

 ![gromacs-5.1.1(Installationg of updates version reversed)](https://europe1.discourse-cdn.com/flex017/uploads/bioexcel1/original/1X/9428510eff076c066fd77ade15ec048edbd26977.png)

---

<div class="post-metadata">

**Author:** ![mijiddorj](https://avatars.discourse-cdn.com/v4/letter/m/779978/32.png) [@mijiddorj](https://gromacs.bioexcel.eu/u/mijiddorj)\
**Post date:** [June 9, 2020, 3:00pm UTC](https://gromacs.bioexcel.eu/t/gromacs-2020-2-installation-errors/274/4 "2020-06-09T15:00:24Z")

</div>

First, you should run without sudo. Why did you install it in /opt? If you really new user, please follow the quick installation guide in gromacs page. It is a safe and easy way.  
Second, you should export your path of gmx in .bashrc.  
There is a .bashrc file in your home directory.  
you can open it using gedit, nano or vi editors.  
for example: Open brand new Terminal window:

gedit .bashrc

This command opens your .bashrc file. Then, at the end of this file, you can specify your gmx path as follows:  
such as  
export PATH=/usr/local/gromacs/bin:$PATH

I hope these steps could help you. Good luck.

---

<div class="post-metadata">

**Author:** ![jalemkul](https://dub1.discourse-cdn.com/flex017/user_avatar/gromacs.bioexcel.eu/jalemkul/32/18_2.png) [@jalemkul](https://gromacs.bioexcel.eu/u/jalemkul)\
**Post date:** [June 9, 2020, 3:03pm UTC](https://gromacs.bioexcel.eu/t/gromacs-2020-2-installation-errors/274/5 "2020-06-09T15:03:30Z")

</div>

Again, I must emphasize that if you need `sudo` to carry out routine commands, something is wildly wrong with your setup. If you are unable to write files in your own home filesystem, you’ve messed up permissions somewhere (perhaps due to routine and inappropriate use of `sudo`?) and this is not a GROMACS issue.

---

<div class="post-metadata">

**Author:** ![Rosa\_16](https://avatars.discourse-cdn.com/v4/letter/r/77aa72/32.png) [@Rosa\_16](https://gromacs.bioexcel.eu/u/Rosa_16)\
**Post date:** [June 9, 2020, 3:12pm UTC](https://gromacs.bioexcel.eu/t/gromacs-2020-2-installation-errors/274/6 "2020-06-09T15:12:24Z")

</div>

Dear Justin,

Thank you for you response. I am looking into this issue right now.

---

<div class="post-metadata">

**Author:** ![Rosa\_16](https://avatars.discourse-cdn.com/v4/letter/r/77aa72/32.png) [@Rosa\_16](https://gromacs.bioexcel.eu/u/Rosa_16)\
**Post date:** [June 9, 2020, 3:13pm UTC](https://gromacs.bioexcel.eu/t/gromacs-2020-2-installation-errors/274/7 "2020-06-09T15:13:36Z")

</div>

Dear Mijiddorj,

Thank you very much. I will try this.

---

<div class="post-metadata">

**Author:** ![zhmurov](https://avatars.discourse-cdn.com/v4/letter/z/dc4da7/32.png) [@zhmurov](https://gromacs.bioexcel.eu/u/zhmurov)\
**Post date:** [June 9, 2020, 7:57pm UTC](https://gromacs.bioexcel.eu/t/gromacs-2020-2-installation-errors/274/8 "2020-06-09T19:57:22Z")

</div>

instead of “sudo gmx”, try typing the full path to your newly buld binaries, as far as I can tell this should be: “~/gromacs-2020.2/build/bin/gmx insert-molecule…”

---

<div class="post-metadata">

**Author:** ![Rosa\_16](https://avatars.discourse-cdn.com/v4/letter/r/77aa72/32.png) [@Rosa\_16](https://gromacs.bioexcel.eu/u/Rosa_16)\
**Post date:** [June 10, 2020, 2:26am UTC](https://gromacs.bioexcel.eu/t/gromacs-2020-2-installation-errors/274/9 "2020-06-10T02:26:51Z")

</div>

Hello,

Thank you for you reply. I have resolveed the issue.

---

<div class="post-metadata">

**Author:** ![Dr\_DBW](https://dub1.discourse-cdn.com/flex017/user_avatar/gromacs.bioexcel.eu/dr_dbw/32/42_2.png) [@Dr\_DBW](https://gromacs.bioexcel.eu/u/Dr_DBW)\
**Post date:** [June 10, 2020, 6:46am UTC](https://gromacs.bioexcel.eu/t/gromacs-2020-2-installation-errors/274/10 "2020-06-10T06:46:41Z")

</div>

Could you reply with how you resolved the issue exactly?

Then if someone encounters a similar issue in the future, they have the suggested actions plus how it was actually resolved to refer too. The thread becomes much more useful for those in the future.
