ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
4

ROS installation on Mac with Homebrew--bootstrapping issues?

asked 2012-03-23 03:44:21 -0500

lauras gravatar image

updated 2012-04-02 13:15:54 -0500

Kevin gravatar image

Hi!

I'm trying to install ROS on my MacBook Pro (running Mac OS X 10.7.3). I have followed everything in the installation instructions here (http://www.ros.org/wiki/electric/Installation/OSX/Homebrew), but at the very end of the Desktop-Full Install, I get this:

(Over-)Writing setup.sh, setup.bash, and setup.zsh in /Users/lauraS/ros
Bootstrapping ROS build
Detected ros_comm bootstrapping it too.
sed: illegal option -- s
usage: sed script [-Ealn] [-i extension] [file ...]
       sed [-Ealn] [-i extension] [-e script] ... [-f script_file] ... [file ...]
sed: illegal option -- s
usage: sed script [-Ealn] [-i extension] [file ...]
       sed [-Ealn] [-i extension] [-e script] ... [-f script_file] ... [file ...]
sed: illegal option -- s
usage: sed script [-Ealn] [-i extension] [file ...]
       sed [-Ealn] [-i extension] [-e script] ... [-f script_file] ... [file ...]
/bin/bash: rosmake: command not found
Traceback (most recent call last):
  File "/usr/local/bin/rosinstall", line 5, in <module>
    pkg_resources.run_script('rosinstall==0.6.11', 'rosinstall')
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/pkg_resources.py", 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/pkg_resources.py", line 1214, in run_script
    exec script_code in namespace, namespace
  File "/Library/Python/2.7/site-packages/rosinstall-0.6.11-py2.7.egg/EGG-INFO/scripts/rosinstall", line 11, in <module>

  File "build/bdist.macosx-10.7-intel/egg/rosinstall/rosinstall_cli.py", line 213, in rosinstall_main
  File "build/bdist.macosx-10.7-intel/egg/rosinstall/rosinstall_cmd.py", line 88, in cmd_generate_ros_files
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 504, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command 'source /Users/lauraS/ros/setup.sh && rosmake ros ros_comm --rosdep-install' returned non-zero exit status 127

And if I try to run the next step, source ~/ros/setup.bash, I get:

    sed: illegal option -- s
usage: sed script [-Ealn] [-i extension] [file ...]
       sed [-Ealn] [-i extension] [-e script] ... [-f script_file] ... [file ...]
sed: illegal option -- s
usage: sed script [-Ealn] [-i extension] [file ...]
       sed [-Ealn] [-i extension] [-e script] ... [-f script_file] ... [file ...]
sed: illegal option -- s
usage: sed script [-Ealn] [-i extension] [file ...]
       sed [-Ealn] [-i extension] [-e script] ... [-f script_file] ... [file ...]
rospack could not be found, you cannot have rosbash features until you bootstrap ros

I'm kind of new at this and am not actually sure what bootstrapping is, and I've no idea how to go about getting things installed properly from this point. Any help would be appreciated! Thanks!

Update: After taking tmf's suggestions, I think the installer has gotten further than it got before, but now after rosinstall installs robot_model_tutorials, I get this:

(Over-)Writing setup.sh, setup.bash, and setup.zsh in /Users/lauraS/ros
Bootstrapping ROS build
Detected ros_comm bootstrapping it too.

and then it hangs until I ctrl-c it. For the record, I have tried running the rosinstall command both on a ~/ros folder that has all of the files from the previous install attempts in it and on a ... (more)

edit retag flag offensive close merge delete

Comments

UPDATE: Sorry for the lack of responses--I switched to my Ubuntu VM for this project. But when the project is over, I'll try installing ROS on my Mac again. Thanks for the help (and the bug fix)!

lauras gravatar image lauras  ( 2012-08-08 22:15:12 -0500 )edit

5 Answers

Sort by ยป oldest newest most voted
1

answered 2012-04-02 11:54:31 -0500

tfoote gravatar image

This was a bug in rosinstall. It's fixed in 0.6.12. Ticket

edit flag offensive delete link more
3

answered 2012-03-24 01:25:57 -0500

tmf gravatar image

updated 2012-03-24 01:26:41 -0500

Hi lauras,

I'm also new to homebrew, ros and the way the install scripts usually should be patched, but I solved like this:

  • make sure /usr/local/bin comes before /usr/bin in your $PATH (Lion: /etc/paths)
  • install gnu-sed with homebrew (brew install gnu-sed)
  • link /usr/local/bin/sed to /usr/local/bin/gsed (ln -s /usr/local/bin/gsed /usr/local/bin/sed)

That worked for me...

edit flag offensive delete link more

Comments

Hi tmf, thanks for the answer! I think my installation has gotten further than it was before, but still no dice. I'm updating my original question; if you or anyone else has ideas of how to proceed from here, I'd love to hear. Thanks!

lauras gravatar image lauras  ( 2012-03-24 12:52:21 -0500 )edit

Hi lauras, What was the first error encountered before it hangs after robot_model_tutorials?

tmf gravatar image tmf  ( 2012-03-24 21:16:35 -0500 )edit
2

answered 2012-03-25 01:51:32 -0500

tmf gravatar image

There is a hint that the ROS Installation on OSX can hang for log4cxx and a fresh install of the Apple Java thingy: http://mirror.umd.edu/roswiki/electric(2f)Installation(2f)OSX(2f)Homebrew.html 3.2 Log4cxx Installation Hangs

After that I installed log4cxx manually with brew:

brew install -v log4cxx

When restarting the ROS installation, I had also some error on ros_comm-rosconsole and applied the patch provided in: https://code.ros.org/trac/ros/attachment/ticket/3626/ros_comm-rosconsole-llvm.patch

After that the installation worked on a "clean" Lion install with the new XCode 4.3 compiler tools.

Perhaps that helps....

edit flag offensive delete link more

Comments

Thanks for the info! I tried the log4cxx installation, but the installer still hangs at "Bootstrapping ROS build Detected ros_comm bootstrapping it too." Could you provide more info about how to install the patch you recommended? I don't want to break things by putting the patch in the wrong place.

lauras gravatar image lauras  ( 2012-03-25 03:27:55 -0500 )edit
1

answered 2012-04-17 10:58:08 -0500

gbuzogany gravatar image

updated 2012-04-24 05:49:14 -0500

Same problem here. Seems that rosmake that is hanging. If I run "rosmake" it hangs, independently of which arguments I pass.

UPDATE: Seems that the problem is that ausparc.com is offline (here it is not responding). Just use rosmake --no-rosdep

edit flag offensive delete link more
1

answered 2012-05-03 08:19:25 -0500

seanreynoldscs gravatar image

Run Brew doctor This told me that my xcode command tools were not installed and my path was not correct.

edit flag offensive delete link more

Comments

They are not installed automatically now

Kevin gravatar image Kevin  ( 2012-05-03 12:56:27 -0500 )edit

Question Tools

2 followers

Stats

Asked: 2012-03-23 03:44:21 -0500

Seen: 1,814 times

Last updated: May 03 '12