Compiling NWChem 6.6 (ubuntu 14.04)

From NWChem

You are viewing a single post from the thread title above
Jump to: navigation, search

Click here for full thread
Gets Around
Threads 24
Posts 86
Hi, NwChem developers.

Some old issue returns

in Ubuntu python-config --libs returns:
-lpthread -ldl -lutil -lm -lpython2.7
without -lz for some reason.

therefore linking fails.

For this reason in NWChem 6.5 source -lz added to python-config --libs returns

But this is not in version 6.6


To make situation a bit clearer I want to add two links:


to link an embedded interpreter, SYSLIBS should be used,
which might not be complete.
However in this case MODLIBS is missing.

run python
>>> import sysconfig
>>> sysconfig.get_config_var('LIBS')
'-lpthread -ldl  -lutil'
>>> sysconfig.get_config_var('SYSLIBS')
>>> sysconfig.get_config_var('MODLIBS')
'-L/usr/lib -lz'

python-config --libs returns same as sysconfig.get_config_var('LIBS') and sysconfig.get_config_var('SYSLIBS') but sysconfig.get_config_var('MODLIBS') output is obviously missing.

with respect
Edited On 3:23:59 AM PDT - Wed, Sep 30th 2015 by Vladimir

Who's here now Members 0 Guests 0 Bots/Crawler 0

AWC's: 2.5.10 MediaWiki - Stand Alone Forum Extension
Forum theme style by: AWC