if [ -h $INSTALL_ROOT/usr/lib/octave ]; then
  rm -f $INSTALL_ROOT/usr/lib/octave
fi &&

ln -sf ${INSTALL_ROOT}/usr/lib/octave-$VERSION ${INSTALL_ROOT}/usr/lib/octave &&

if ! grep -q "\/usr\/lib\/octave" /etc/ld.so.conf; then
  echo '/usr/lib/octave' >> /etc/ld.so.conf
fi &&
ldconfig
