File tree Expand file tree Collapse file tree 1 file changed +20
-2
lines changed
Expand file tree Collapse file tree 1 file changed +20
-2
lines changed Original file line number Diff line number Diff line change 1+ echo " Super user authentication required to add packages (you will be \
2+ prompted for confirmation)."
13sudo bash install-ubuntu-packages.sh
24bash install-fftw.sh
35bash install-sundials-2.5.sh
46sudo pip install cython --upgrade
5- cd ..
7+ pushd .. > /dev/null
68make
7- echo " export PYTHONPATH=$( dirname $PWD ) :$PYTHONPATH " >> $HOME /.bashrc
9+
10+ # Adds Fidimag environment variables to profile.d, if they're not already
11+ # there.
12+ FIDIMAG_PROFILE_PATH=/etc/profile.d/fidimag.sh
13+ if [ ! -e " $FIDIMAG_PROFILE_PATH " ]; then
14+ echo " Warning: Adding Fidimag to path at $FIDIMAG_PROFILE_PATH ."
15+ echo " Super user authentication required to add paths."
16+ sudo mkdir --parents " $( dirname $FIDIMAG_PROFILE_PATH ) "
17+ sudo bash -c " echo \" export PYTHONPATH=$PWD /:\\\$ PYTHONPATH\"\
18+ > $FIDIMAG_PROFILE_PATH "
19+ sudo bash -c " echo \" export LD_LIBRARY_PATH=$PWD /local/lib:\
20+ \\\$ LD_LIBRARY_PATH\" >> $FIDIMAG_PROFILE_PATH "
21+ sudo chmod 0644 " $FIDIMAG_PROFILE_PATH "
22+ echo " Path written to $FIDIMAG_PROFILE_PATH ."
23+ else
24+ echo " Path added previously. Skipping."
25+ fi
You can’t perform that action at this time.
0 commit comments