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.
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.
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.
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)
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
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.
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…”
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.