Skip to content

Commit

Permalink
Added warning for SIP and library search path issue
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex committed Jan 9, 2016
1 parent 477758a commit 520c4ff
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 520c4ff

Please sign in to comment.