Re: [AMBER] Amber14/AmberTools15 compliation error

From: Jason Swails <jason.swails.gmail.com>
Date: Wed, 6 Apr 2016 10:42:00 -0400

On Wed, Apr 6, 2016 at 10:34 AM, Kris Feher <kris.feher.yahoo.com> wrote:

> Dear All,
> I tried to install Amber14/AmberTools15 on Ubuntu 14.04 LTS and got an
> error at compliation stage:
> /usr/bin/ld: /home/kris/bin/amber14/lib/libnetcdff.a(fort-attio.o):
> relocation R_X86_64_PC32 against undefined symbol `strlen@@GLIBC_2.2.5'
> can not be used when making a shared object; recompile with -fPIC
> /usr/bin/ld: final link failed: Bad value
> collect2: error: ld returned 1 exit status
> make[2]: *** [/home/kris/bin/amber14/lib/libsander.so] Error 1
> make[2]: Leaving directory `/home/kris/bin/amber14/AmberTools/src/sander'
> make[1]: *** [serial] Error 2
> make[1]: Leaving directory `/home/kris/bin/amber14/AmberTools/src'
> make: *** [install] Error 2
>

​Run the command

make distclean

Then try again. It looks like there's a leftover libnetcdf that was built
without PIC (which is what was done by default in AmberTools 14). When
upgrading to AmberTools 15, this library cannot be reused in the shared
libraries it is bundled in (libsander.so in this case).

HTH,
Jason

-- 
Jason M. Swails
_______________________________________________
AMBER mailing list
AMBER.ambermd.org
http://lists.ambermd.org/mailman/listinfo/amber
Received on Wed Apr 06 2016 - 08:00:05 PDT
Custom Search