# GMXcommand not found after source

**URL:** <https://gromacs.bioexcel.eu/t/gmxcommand-not-found-after-source/7440>\
**Category:** User discussions\
**Tags:** installation\
**Created:** [October 20, 2023, 8:25am UTC](https://gromacs.bioexcel.eu/t/gmxcommand-not-found-after-source/7440 "2023-10-20T08:25:37Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ps2pspgood](https://avatars.discourse-cdn.com/v4/letter/p/3e96dc/32.png) [@ps2pspgood](https://gromacs.bioexcel.eu/u/ps2pspgood)\
**Post date:** [October 20, 2023, 8:25am UTC](https://gromacs.bioexcel.eu/t/gmxcommand-not-found-after-source/7440/1 "2023-10-20T08:25:37Z")

</div>

GROMACS version: 2023-3  
GROMACS modification: No  
Here post your question

The way I install the gromacs:

sudo apt install cmake  
sudo apt install ocl-icd-opencl-dev  
sudo apt install build-essential  
tar xfz gromacs-2023.3.tar.gz  
cd gromacs-2023.3  
mkdir build  
cd build  
apt-get install python3-sphinx  
sudo apt install petsc-dev  
cmake … -DGMX\_BUILD\_OWN\_FFTW=ON -DREGRESSIONTEST\_DOWNLOAD=ON -DGMX\_GPU=CUDA -DGMX\_MPI=ON  
make  
make check  
sudo make install  
source /usr/local/gromacs/bin/GMXRC

There was no error and faliure during both installatio and check.  
However, after make install and source it, gmx was not found…

> Command ‘gmx’ not found, but can be installed with:  
> sudo apt install gromacs

The gromacs was installed into the default location.  
I tried to rebuilt twice, but no luck…  
Do you have any ideas?

The OS is ubuntu 22.04.3 server inside the proxmox.

Thank you very much.

---

<div class="post-metadata">

**Author:** ![MagnusL](https://dub1.discourse-cdn.com/flex017/user_avatar/gromacs.bioexcel.eu/magnusl/32/2380_2.png) [@MagnusL](https://gromacs.bioexcel.eu/u/MagnusL)\
**Post date:** [October 20, 2023, 9:13am UTC](https://gromacs.bioexcel.eu/t/gmxcommand-not-found-after-source/7440/2 "2023-10-20T09:13:57Z")

</div>

When you compile with `-DGMX_MPI=ON` the binary will be called `gmx_mpi` (by default). Could you check if that works instead?

---

<div class="post-metadata">

**Author:** ![ps2pspgood](https://avatars.discourse-cdn.com/v4/letter/p/3e96dc/32.png) [@ps2pspgood](https://gromacs.bioexcel.eu/u/ps2pspgood)\
**Post date:** [October 20, 2023, 2:24pm UTC](https://gromacs.bioexcel.eu/t/gmxcommand-not-found-after-source/7440/3 "2023-10-20T14:24:21Z")

</div>

Oh!  
Thank you very much! It worked.  
I did not know that before.  
I think I put that flag unintentionally.
