Ask Your Question

failed make install on lion with latest homebrew instructions

asked 2012-05-16 02:01:42 -0500

rwagner gravatar image

updated 2012-05-26 09:54:00 -0500

Kevin gravatar image

I'm having limited success getting ROS up and running on mac lion and Xcode 4.3.2. I had a version of electric up using dependencies from mac ports, but couldn't get rviz working. Since then fuerte has been released and it looks like that is the only supported install method for mac so I gave it a try. I had a tough time with wxWidgets. The quicktime framework is not 64-bit compatible and I could find a way to rebuild wxWidgets without quicktime. After following the recently updated homebrew instructions ( that includes a pointer to downloading binary versions of wxWidgets, I managed to get a successful build.

I am now stuck at <sudo make="" install="">. The roslib egg has failed dependencies as shown below. It can't seem to find rospkg. rospkg is installed here </library>.

Thanks for any help related to this.

Installed /opt/ros/fuerte/lib/python2.7/site-packages/roslib-0.0.0-py2.7.egg
Processing dependencies for roslib==0.0.0
Searching for rospkg
Best match: rospkg 1.0.2
Processing rospkg-1.0.2.tar.gz
Writing /tmp/easy_install-70FL6f/rospkg-1.0.2/setup.cfg
Running rospkg-1.0.2/ -q bdist_egg --dist-dir /tmp/easy_install-70FL6f/rospkg-1.0.2/egg-dist-tmp-YL0deA
Traceback (most recent call last):
  File "/Users/wagner/ros-underlay/ros/", line 50, in <module>
    license = "BSD"
  File "/usr/local/Cellar/python/2.7.3/lib/python2.7/distutils/", line 152, in setup
  File "/usr/local/Cellar/python/2.7.3/lib/python2.7/distutils/", line 953, in run_commands
  File "/usr/local/Cellar/python/2.7.3/lib/python2.7/distutils/", line 972, in run_command
  File "/usr/local/Cellar/python/2.7.3/lib/python2.7/site-packages/distribute-0.6.26-py2.7.egg/setuptools/command/", line 73, in run
  File "/usr/local/Cellar/python/2.7.3/lib/python2.7/site-packages/distribute-0.6.26-py2.7.egg/setuptools/command/", line 101, in do_egg_install
  File "/usr/local/Cellar/python/2.7.3/lib/python2.7/site-packages/distribute-0.6.26-py2.7.egg/setuptools/command/", line 350, in run
    self.easy_install(spec, not self.no_deps)
  File "/usr/local/Cellar/python/2.7.3/lib/python2.7/site-packages/distribute-0.6.26-py2.7.egg/setuptools/command/", line 570, in easy_install
    return self.install_item(None, spec, tmpdir, deps, True)
  File "/usr/local/Cellar/python/2.7.3/lib/python2.7/site-packages/distribute-0.6.26-py2.7.egg/setuptools/command/", line 622, in install_item
    self.process_distribution(spec, dist, deps)
  File "/usr/local/Cellar/python/2.7.3/lib/python2.7/site-packages/distribute-0.6.26-py2.7.egg/setuptools/command/", line 674 ...
edit retag flag offensive close merge delete


I ran <sudo easy_install -U rosinstall vcstools rospkg rosdep> with no errors. Everything was installed into /Library/Python/2.7/site-packages/.

rwagner gravatar image rwagner  ( 2012-05-16 13:41:59 -0500 )edit

I also have this line in my .bashrc export PYTHONPATH="/usr/local/lib/python2.7/site-packages:/usr/local/lib/python:$PYTHONPATH"

rwagner gravatar image rwagner  ( 2012-05-16 13:43:16 -0500 )edit

$echo $PYTHONPATH /usr/local/lib/python2.7/site-packages:/usr/local/lib/python

rwagner gravatar image rwagner  ( 2012-05-16 13:45:32 -0500 )edit

python -c 'import rospkg' error out if /Library/Python/2.7/site-packages is not on the python path otherwise it finds it. Is the goal for rospkg rosdep and the others to be put in /usr/local/lib/python2.7/site-packages and not /Library/Python/2.7/site-packages?

rwagner gravatar image rwagner  ( 2012-05-16 13:55:50 -0500 )edit

Yes, this stuff is supposed to be installed in /usr/local/lib/python2.7/site-packages. Otherwise the instructions wouldn't tell you to add that to your PYTHONPATH.

Dan Lazewatsky gravatar image Dan Lazewatsky  ( 2012-05-16 13:59:45 -0500 )edit

I thought as much, but it is installed in /Library/Python/2.7/site-packages even when I have /usr/local/lib/python2.7/site-packages in the PYTHONPATH. I need to figure out why that is.

rwagner gravatar image rwagner  ( 2012-05-17 01:11:51 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted

answered 2012-05-16 05:22:37 -0500

updated 2012-05-16 05:23:30 -0500

I would imagine that if you run python -c 'import rospkg' you get an ImportError, right?

Did you make sure to add

export PYTHONPATH="/usr/local/lib/python2.7/site-packages:/usr/local/lib/python:$PYTHONPATH"

to your .bashrc, and source ~/.bashrc?

Were you able to run sudo easy_install -U rosinstall vcstools rospkg rosdep with no errors?

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: 2012-05-16 02:01:42 -0500

Seen: 859 times

Last updated: May 16 '12