From 520c4ffd0e944a38254c0499ec76507784626780 Mon Sep 17 00:00:00 2001 From: Alex Date: Sat, 9 Jan 2016 16:38:32 +0800 Subject: [PATCH] Added warning for SIP and library search path issue --- install | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/install b/install index 908d238..366b4d8 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)"