ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | Q&A
Ask Your Question

ROS install errors on Lion using Homebrew

asked 2011-12-06 08:16:02 -0500

hambucka gravatar image

updated 2012-03-16 15:15:16 -0500

Kevin gravatar image

I am following the most recent Homebrew install instructions for Mac Lion. Before installing ROS, I moved the MacPorts folder (from a previous Macports install attempt) as the instructions said. I unfortunately get the following error insisting I need MacPorts.

Bootstrapping ROS build Detected ros_comm bootstrapping it too. [ rosmake ] Packages requested are: ['ros', 'ros_comm']
[ rosmake ] Logging to directory/Users/khambuch/.ros/rosmake/rosmake_output-20111206-160124 [ rosmake ] Expanded args ['ros', 'ros_comm'] to: ['rosunit', 'rospack', 'rosmake', 'rosemacs', 'rosdep', 'roscreate', 'rosclean', 'rosboost_cfg', 'rosbash', 'test_rospack', 'test_rosmake', 'test_roslib', 'test_rosdep', 'test_roscreate', 'roslib', 'roslang', 'rosbuild', 'mk', 'xmlrpcpp', 'roswtf', 'rostime', 'message_filters', 'cpp_common', 'topic_tools', 'rostopic', 'rostest', 'rosservice', 'rosparam', 'rosout', 'rosnode', 'rosmsg', 'rosmaster', 'roslaunch', 'rosgraph', 'rosconsole', 'rosbagmigration', 'rosbag', 'test_topic_tools', 'test_roswtf', 'test_rostopic', 'test_rostime', 'test_rostest', 'test_rosservice', 'test_rospy', 'test_rosparam', 'test_rosnode', 'test_rosmsg', 'test_rosmaster', 'test_roslib_comm', 'test_roslaunch', 'test_rosgraph', 'test_roscpp_serialization_perf', 'test_roscpp_serialization', 'test_roscpp', 'test_rosbag', 'test_ros', 'test_crosspackage', 'perf_roscpp', 'roscore_migration_rules', 'std_srvs', 'std_msgs', 'rosgraph_msgs', 'rospy', 'roslisp', 'roscpp_traits', 'roscpp_serialization', 'roscpp'] [ rosmake ] Generating Install Script using rosdep then executing. This may take a minute, you will be prompted for permissions. . . Traceback (most recent call last): File "/Users/khambuch/ros/ros/tools/rosdep/src/rosdep/", line 427, in __init__ pop = subprocess.Popen(['port'], stdout=subprocess.PIPE, stderr=subprocess.PIPE) File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/", line 672, in __init__ errread, errwrite) File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/", line 1202, in _execute_child raise child_exception OSError: [Errno 2] No such file or directory There was an error running macports, make sure it is installed properly. Traceback (most recent call last): File "/usr/local/bin/rosinstall", line 5, in <module> pkg_resources.run_script('rosinstall==0.5.22', 'rosinstall') File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/", line 489, in run_script self.require(requires)[0].run_script(script_name, ns) File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/", line 1214, in run_script exec script_code in namespace, namespace File "/Library/Python/2.7/site-packages/rosinstall-0.5.22-py2.7.egg/EGG-INFO/scripts/rosinstall", line 679, in <module>

File "/Library/Python/2.7/site-packages/rosinstall-0.5.22-py2.7.egg/EGG-INFO/scripts/rosinstall", line 670, in rosinstall_main

File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/", line 504, in check_call raise CalledProcessError(retcode, cmd) subprocess.CalledProcessError: Command 'source /Users/khambuch/ros/ && rosmake ros ros_comm --rosdep-install' returned non-zero exit status 255

If I return the MacPorts folder to its original location, I then get the error below, which is exactly like this. Problem is, I used rosinstall, not sudo rosinstall.

{------------------------------------------------------------------------------- mkdir -p bin cd build && cmake -Wdev -DCMAKE_TOOLCHAIN_FILE=rospack find rosbuild/rostoolchain.cmake .. [rosbuild] Building package roslib [rosbuild] Including /Users/khambuch/ros/ros_comm/clients/roslisp/cmake/roslisp.cmake [rosbuild] Including /Users/khambuch/ros/ros_comm/clients/rospy/cmake/rospy.cmake [rosbuild] Including /Users/khambuch/ros/ros_comm/clients/cpp/roscpp/cmake/roscpp.cmake Traceback (most recent call last): File "/Users/khambuch/ros/ros/bin/rosboost-cfg", line 35, in <module> rosboost_cfg.main() File "/Users/khambuch/ros/ros/tools/rosboost_cfg/src/rosboost_cfg/", line ... (more)

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2011-12-06 09:06:25 -0500

William gravatar image

Are you using these instructions:

If you are using those it seems you did not set the ROS_OS_OVERRIDE environment variable:

export ROS_OS_OVERRIDE=osxbrew:lion

This tells rosdep to use Homebrew rather than Macports.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower


Asked: 2011-12-06 08:16:02 -0500

Seen: 600 times

Last updated: Dec 06 '11