diff --git a/bin/CMakeLists.txt b/bin/CMakeLists.txt
index 04ab0d0fd6544b37902e922385ebe26f7cb488e9..85e543abd3b6b370428b0ead5b7347d3b762a552 100644
--- a/bin/CMakeLists.txt
+++ b/bin/CMakeLists.txt
@@ -3,6 +3,7 @@ install(PROGRAMS
   duneproject
   dunecontrol
   dunepackaging.py
+  duneactivate
   dune-git-whitespace-hook
   rmgenerated.py
   setup-dunepy.py
diff --git a/bin/duneactivate b/bin/duneactivate
new file mode 100644
index 0000000000000000000000000000000000000000..4c4e1506d42c12359e5711777e07453a5de1e100
--- /dev/null
+++ b/bin/duneactivate
@@ -0,0 +1,3 @@
+envpath=`dirname "${BASH_SOURCE[0]}"`
+source $envpath/activate
+export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$VIRTUAL_ENV/lib