make install fails to install cgnstools into the build prefix directory.

Description

I can compile with ./configure just fine, but the install is broken so I was wondering if the cmake install would work any better. Specifically, when I use the following configure:

./configure --with-hdf5=$PETSC_DIR/$PETSC_ARCH --enable-64bit --prefix=/u/wk/gkenway/packages/CGNS/ --enable-shared=yes --enable-parallel --enable-cgnstools=yes

the make.defs in cgnstools is completely messed up: It generates

BIN_INSTALL_DIR = /u/wk/gkenway/packages/CGNS/src/bin
EXE_INSTALL_DIR = /u/wk/gkenway/packages/CGNS/src/bin/cgnstools
WSH_INSTALL_DIR = $(EXE_INSTALL_DIR)
LIB_INSTALL_DIR = ${prefix}/share

Unfortunately prefix gets undefined somewhere in the melee and without root access the install tries the following


cgnsview -----
/u/wk/gkenway/packages/CGNS/src/CGNS/src/cgnstools/cgnsview
make[2]: Entering directory `/u/wk/gkenway/packages/CGNS/src/CGNS/src/cgnstools/cgnsview'
Making directory /u/wk/gkenway/packages/CGNS/bin/cgnstools
Making directory /share
mkdir: cannot create directory ‘/share’: Permission denied
chmod: cannot access ‘/share’: No such file or directory

which obviously will fail. I can manually overwrite the entries in the make.defs which gets the install to complete, but things like hdf2adf will then fail because it can't fine ../lib/libcgns.so.

Environment

None

Status

Assignee

Unassigned

Reporter

cgns

Components

Fix versions

Affects versions

Priority

Blocker
Configure