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

Fixed install suffix.

Using "_" instead of "-" to avoid clashes.

Actually, the problem was that doing
make install PLUMED_SUFFIX=2
make install
The second install would have canceled the executables installed
by the first install. This is because install assumes names such as
plumed-* to be scripts installed for cross compiling
parent 922f253a
No related branches found
No related tags found
No related merge requests found
......@@ -227,6 +227,9 @@ For users:
Notice that this bug was present also in v2.0 but in a different form.
More information here (\issue{162}), including a workaround that allows masses to be fixed
without repatching.
- When installing with PLUMED_LIBSUFFIX an underscore is used as separator instead of a dash.
E.g. `make install PLUMED_LIBSUFFIX=2.1` will result in an executable named `plumed_v2.1`.
This fix a potential problem (see \ref Installation).
- Fixed erroneously reported message about MPI at the end of ./configure.
- Changed warning message about undocumented components.
- PLUMED now says in the log file if it was compiled from a dirty git repository.
......
......@@ -14,7 +14,7 @@ prefix="${prefix:=/usr/local}"
PLUMED_PREFIX="${PLUMED_PREFIX:=$prefix}"
PLUMED_LIBSUFFIX="${PLUMED_LIBSUFFIX:=}"
test -n "$PLUMED_LIBSUFFIX" && PLUMED_LIBSUFFIX="-${PLUMED_LIBSUFFIX}"
test -n "$PLUMED_LIBSUFFIX" && PLUMED_LIBSUFFIX="_${PLUMED_LIBSUFFIX}"
PLUMED_ROOT="${PLUMED_PREFIX}/lib/plumed${PLUMED_LIBSUFFIX}/"
{
......
......@@ -341,11 +341,21 @@ define the environment variable PLUMED_LIBSUFFIX using:
> export PLUMED_LIBSUFFIX=v2.0
> make install
\endverbatim
This will install a plumed executable named "plumed-v2.0". All the other files will be renamed similarly,
e.g. the PLUMED library will be loaded with "-lplumed-v2.0" and the PLUMED header files
will be included with "#include <plumed-v2.0/tools/Vector.h>". This trick is useful if you
This will install a plumed executable named "plumed_v2.0". All the other files will be renamed similarly,
e.g. the PLUMED library will be loaded with "-lplumed_v2.0" and the PLUMED header files
will be included with "#include <plumed_v2.0/tools/Vector.h>". This trick is useful if you
do not want to set up modules, but we believe that using modules as described above is more flexible.
\warning Until version 2.1.3, the added suffix was in the form `-suffix` instead of `_suffix`.
This could cause clashes with the fact that plumed reserved names with a `-something` appended
for scripts used in cross compiling (see below).
As a consequence, by doing
\verbatim
> make install PLUMED_LIBSUFFIX=v2.0
> make install
\endverbatim
The second install would remove all the executables installed by the first install.
\section Patching Patching your MD code
In case your MD code is not supporting PLUMED already, you should modify it.
......
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