Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Changing KEPLER_DIR to ITM_KEPLER_DIR in few, easy, steps

Make sure you have something to worry about

1. Check whether you have KEPLER_DIR

...

defined inside your environment

Code Block
echo $KEPLER_DIR

...

2. In case you have KEPLER_DIR

...

set, check whether it is set inside startup scripts

Code Block
grep -H -n -s KEPLER_DIR $HOME/.bashrc $HOME/.bash_profile $HOME/.tcshrc $HOME/.cshrc $HOME/.login
 
# empty result - nothing to worry about
# something printed on the screen - make sure to update the file (remove the line that defines KEPLER_DIR)

3. In case you have KEPLER_DIR set, make sure to check whether you have "broken" Kepler installation

In case you have some broken installations (result of command below is not empty), you have to move all these installations to new location (see point 4)

Code Block
find $KEPLER_DIR -name "version" | sed "s|$KEPLER_DIR||" | sed 's/^\///' | cut -f1 -d'/'
 
# empty result - nothing to worry about
# something printed - make sure to move listed directories into new location (see below)

4. Create new location for CPO based Kepler

Make sure to create new location for Keplers in CPO flavour. This directory can have any name, and should be located inside ITMWORK. If you have found some directories in previous step, you can move them here - into new location.

Code Block
cd $ITMWORK
mkdir cpo_-based_-kepler

5. Make sure to update your .cshrc/.bashrc files

 

Info
titleUpdating csh based environment

In case you use tcsh (as default shell) make sure to update ~/.cshrc

Code Block
# make sure to add the line below inside ~/.cshrc
setenv ITM_KEPLER_DIR $ITMWORK/itmcpo-based-kepler-dir
Info
titleUpdating bash based environment

In case you use bash (as default shell) make sure to update ~/.bashrc

Code Block
# make sure to add the line below inside ~/.bashrc
export ITM_KEPLER_DIR $ITMWORK/itmcpo-based-kepler-dir