Skip to content
Snippets Groups Projects
Commit ce83ef0c authored by Giovanni Bussi's avatar Giovanni Bussi
Browse files

Changed default install path to /usr/local

This is the standard path for linux distribution. Thus "make install"
will fail unless run with root permission or unless PLUMED_PREFIX is
explicitly set. I also fixed DYLIB path for mac (plumed path
should be prepended)
parent 80ef840c
No related branches found
No related tags found
No related merge requests found
......@@ -36,13 +36,13 @@ esac
echo 'export PATH="'"$PWD"'/src/lib/:$PATH"' >> sourceme.sh
# this is just for mac:
echo 'export DYLD_LIBRARY_PATH="$DYLD_LIBRARY_PATH:'"$PWD"'/src/lib/"' >> sourceme.sh
echo 'export DYLD_LIBRARY_PATH="'"$PWD"'/src/lib:$DYLD_LIBRARY_PATH"' >> sourceme.sh
cat << EOF >> sourceme.sh
export PLUMED_KERNEL="$PWD/src/lib/libplumedKernel.$SOEXT"
EOF
echo "PLUMED will be installed using prefix $HOME/opt"
echo "PLUMED will be installed using prefix /usr/local"
echo "If you wish to change this, set PLUMED_PREFIX environment variable before compiling"
echo "Executable will be named 'plumed'"
echo "To add a suffix to this name, set PLUMED_LIBSUFFIX environment variable before compiling"
......
......@@ -5,7 +5,7 @@ test -n "$1" || {
exit 1
}
PLUMED_PREFIX="${PLUMED_PREFIX:=$HOME/opt}"
PLUMED_PREFIX="${PLUMED_PREFIX:=/usr/local}"
PLUMED_LIBSUFFIX="${PLUMED_LIBSUFFIX:=}"
test -n "$PLUMED_LIBSUFFIX" && PLUMED_LIBSUFFIX="-${PLUMED_LIBSUFFIX}"
PLUMED_ROOT="${PLUMED_PREFIX}/lib/plumed${PLUMED_LIBSUFFIX}/"
......
......@@ -99,7 +99,8 @@ the environment variable PLUMED_PREFIX, then type "make install"
> export PLUMED_PREFIX=$HOME/opt
> make install
\endverbatim
The latest command should be executed with root permissions (e.g. "sudo make install")
If PLUMED_PREFIX is not set, it will be assumed to be /usr/local.
The install command should be executed with root permissions (e.g. "sudo make install")
in case you want to install plumed on a system directory.
An almost full copy of the compilation directory will
be installed into $PLUMED_PREFIX/lib/plumed/ directory. A link to the proper
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment