Error: name chosen for NWCHEM TOP is longer than ...


Gets Around
Hi,

can the length limit for NWCHEM_TOP (64 characters) be increased?
It's a problem on HPC installations with long $HOME paths, when users want to install
in subdirectories instead of just under $HOME, and on some automatic build systems.

Example on RHEL6 i386:

mkdir /tmp/this_is_a_veryyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy_longdir
cd /tmp/this_is_a_veryyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy_longdir
su -c "yum -y install http://download.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm"
su -c "yum -y install wget gcc-gfortran openmpi-devel python-devel atlas-devel"
wget http://nwchemgit.github.io/download.php?f=Nwchem-src-2014-01-28.tar.gz -O Nwchem-src-2014-01-28.tar.gz
tar zxf Nwchem-src-2014-01-28.tar.gz
cd nwchem-src-2014-01-28/src
sh ../../compile.sh 2>&1| tee ../build.log


with the following compile.sh:

export NWCHEM_TOP=/tmp/this_is_a_veryyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy_longdir/nwchem-src-2014-01-28
export NWCHEM_TARGET=LINUX
export CC=gcc
export FC=gfortran
export LARGE_FILES=TRUE
export USE_NOFSCHECK=TRUE
export PYTHONHOME=/usr
export PYTHONVERSION=2.6
export PYTHONLIBTYPE=so
export HAS_BLAS=yes
export BLASOPT='-L/usr/lib/atlas -lf77blas -lcblas -latlas'
export MAKE=/usr/bin/make
export ARMCI_NETWORK=SOCKETS
export TCGSSH=ssh
export LD_LIBRARY_PATH=/usr/lib/openmpi/lib
export USE_MPI=y
export USE_MPIF=y
export USE_MPIF4=y
export MPIEXEC=/usr/lib/openmpi/bin/mpiexec
export MPI_LIB=/usr/lib/openmpi/lib
export MPI_INCLUDE=/usr/include/openmpi-i386
export LIBMPI='-lmpi'
$MAKE nwchem_config NWCHEM_MODULES="all python"
export MAKEOPTS=""
$MAKE ${MAKEOPTS}


Result:

The directory name chosen for NWCHEM_TOP is longer than 
the maximum allowed value of 64 characters
      current NWCHEM_TOP/src=/tmp/this_is_a_veryyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy_longdir/nwchem-src-2014-01-28/src equal to 84 characters
please chose a directory with a shorter name

Forum Vet
set NWCHEM_LONG_PATHS
If you recompile the util directory with the env. variable NWCHEM_LONG_PATHS set,
you might be able to bypass the 64 characters limit.
However, some parts of the code might fail.
You'd better run the full QA suite to test the installation


Forum >> NWChem's corner >> Compiling NWChem