-sudo rm $CREATOOLS_INSTALL_DIR/share/creatools_base_library_config.sh
-sudo echo export PATH=$PATH:$CREATOOLS_INSTALL_DIR/bin >> $CREATOOLS_INSTALL_DIR/share/creatools_base_library_config.sh
-sudo echo export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$THIRDPARTY_INSTALL_DIR/lib/creatools >> $CREATOOLS_INSTALL_DIR/share/creatools_base_library_config.sh
+sudo rm $CREATOOLS_INSTALL_DIR/share/creatools_base_library_config.sh
+sudo touch $CREATOOLS_INSTALL_DIR/share/creatools_base_library_config.sh
+sudo chmod 666 $CREATOOLS_INSTALL_DIR/share/creatools_base_library_config.sh
+
+#######################################
+
+sudo touch $installPrefix/share/creatools_base_library_config.sh
+sudo chmod 666 $installPrefix/share/creatools_base_library_config.sh
+
+
+sudo echo export PATH='$'PATH:$installPrefix/bin >> $installPrefix/share/creatools_base_library_config.sh
+sudo echo export LD_LIBRARY_PATH='$'LD_LIBRARY_PATH:$installPrefix/lib/creatools >> $installPrefix/share/creatools_base_library_config.sh
+sudo echo export LD_LIBRARY_PATH='$'LD_LIBRARY_PATH:$installPrefix/lib64/creatools >> $installPrefix/share/creatools_base_library_config.sh