Skip to content

Commit

Permalink
Merge pull request #25 from spaghetti-/master
Browse files Browse the repository at this point in the history
Added warning for SIP and library search path issue
  • Loading branch information
mikepurvis committed Jan 31, 2016
2 parents 4bbb985 + 520c4ff commit c90bbc2
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions install
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,19 @@ do_install()
{
set -e

# Check for SIP if on El Capitan
if [[ `sw_vers -productVersion` == *"10.11"* ]]
then
if `csrutil status | grep -q enabled`
then
echo "You have System Integrity Protection enabled."
echo
echo "This prevents DYLD_LIBRARY_PATH from being exported to subshells"
echo "Please add: export DYLD_LIBRARY_PATH=$DYLD_LIBRARY_PATH:/opt/ros/$ROS_DISTRO/lib"
echo "To the start of /opt/ros/$ROS_DISTRO/bin/rosrun to fix this issue."
fi
fi

# Homebrew
if ! hash brew 2>/dev/null; then
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
Expand Down

0 comments on commit c90bbc2

Please sign in to comment.