Hi,
I am trying to installing CHARMM in Ubuntu 18.04. After providing with make command, I am getting the following error:
/usr/bin/ld: libcharmm_c.a(cstuff.c.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a PIE object; recompile with -fPIC
/usr/bin/ld: libcharmm_cxx.a(uninf.cpp.o): relocation R_X86_64_32 against symbol `_ZSt4cout@@GLIBCXX_3.4' can not be used when making a PIE object; recompile with -fPIC
/usr/bin/ld: final link failed: Nonrepresentable section on output
collect2: error: ld returned 1 exit status
CMakeFiles/charmm.dir/build.make:103: recipe for target 'charmm' failed
make[2]: *** [charmm] Error 1
CMakeFiles/Makefile2:219: recipe for target 'CMakeFiles/charmm.dir/all' failed
make[1]: *** [CMakeFiles/charmm.dir/all] Error 2
Makefile:129: recipe for target 'all' failed
make: *** [all] Error 2
What will be the solution to this?