diff --git a/install b/install index 7225c57..91f3b3a 100755 --- a/install +++ b/install @@ -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)"