Gromacs patched plumed installation error

GROMACS version: 2016.5
Here post your question

Hi all

I have installed plumed 2.4.1 successfully. Followings are my environment variable in bashrc:

export PATH=$PATH:/home/usr/softwares/plumed_241/bin
export INCLUDE_PATH=$INCLUDE_PATH:/home/usr/softwares/plumed_241/include
export LIBRARY_PATH=$LIBRARY_PATH:/home/usr/softwares/plumed_241/lib
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/home/usr/softwares/plumed_241/lib
export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:/home/usr/softwares/plumed_241/lib/pkgconfig
export PLUMED_KERNEL=/home/usr/softwares/plumed_241/lib/libplumedKernel.so

Plumed works fine after this.
Next, I have patched gromacs 2016.4 with the plumed 2.4.0. I have sourced it in bashrc too. When I type gmx in the terminal, I get the following error.

gmx: error while loading shared libraries: libplumed.so: cannot open shared object file: No such file or directory

The said file is present in the plumed folder. But for some reason, it can’t be accessed.
I am unable to understand what is going wrong. Any help is appreciated. Thanks in advance.