+#deal with create creatools_third_party_libraries_config.sh
+
+THIRDPARTY_INSTALL_DIR=$installPrefix/thirdparty_install
+sudo rm $THIRDPARTY_INSTALL_DIR/share/creatools_third_party_library_config.sh
+
+sudo echo export PATH=$PATH:$THIRDPARTY_INSTALL_DIR/bin >> $THIRDPARTY_INSTALL_DIR/share/creatools_third_party_library_config.sh
+sudo echo export VTK_DIR=$THIRDPARTY_INSTALL_DIR/lib/vtk-5.6 >> $THIRDPARTY_INSTALL_DIR/share/creatools_third_party_library_config.sh
+sudo echo export ITK_DIR=$THIRDPARTY_INSTALL_DIR/lib/InsightToolkit >> $THIRDPARTY_INSTALL_DIR/share/creatools_third_party_library_config.sh
+sudo echo export GDCM_DIR=$THIRDPARTY_INSTALL_DIR/lib/gdcm >> $THIRDPARTY_INSTALL_DIR/share/creatools_third_party_library_config.sh
+sudo echo export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$GDCM_DIR >> $THIRDPARTY_INSTALL_DIR/share/creatools_third_party_library_config.sh
+sudo echo export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$ITK_DIR >> $THIRDPARTY_INSTALL_DIR/share/creatools_third_party_library_config.sh
+sudo echo export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$VTK_DIR >> $THIRDPARTY_INSTALL_DIR/share/creatools_third_party_library_config.sh
+
+# modify .bashrc
+# - remove line 'sh $installPrefix/thirdparty_install/share/creatools_third_party_libraries_config.sh' if any (with accurate value for ???)
+sed -i -e 's/.*creatools_third_party_library_config.*/ /g' ~/.bashrc
+
+# - add line 'sh $installPrefix/thirdparty_install/share/creatools_third_party_libraries_config.sh' (with accurate value for ???)
+echo sh $THIRDPARTY_INSTALL_DIR/creatools_third_party_libraries_config.sh >> ~/.bashrc
+
+