Skip to content

Instantly share code, notes, and snippets.

@Pyppe
Last active December 24, 2015 14:59
Show Gist options
  • Save Pyppe/6816813 to your computer and use it in GitHub Desktop.
Save Pyppe/6816813 to your computer and use it in GitHub Desktop.
#!/bin/bash
# - LightTable 0.5.4 does not run with the provided LightTable script on Linux 64bit
# - @see https://github.com/Kodowa/Light-Table-Playground/issues/810
# - This script links the existing libudev.so.1 as libudev.so.0 *within installation dir*
# - Tested with Ubuntu 13.04 64bit
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
LOCAL_LIB=$DIR/libudev.so.0
if [[ ! -e $LOCAL_LIB ]]; then
ln -sn /lib/x86_64-linux-gnu/libudev.so.1 $LOCAL_LIB
echo "Created $LOCAL_LIB symlink"
fi
if [[ -n "$LD_LIBRARY_PATH" ]]; then
LD_LIBRARY_PATH="$DIR:/lib:$LD_LIBRARY_PATH"
else
LD_LIBRARY_PATH="$DIR:/lib"
fi
export LD_LIBRARY_PATH
$DIR/ltbin
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment