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

osx error finding boost

asked 2011-03-10 06:57:55 -0600

Nick gravatar image

updated 2011-03-11 00:17:03 -0600

kwc gravatar image

I'm trying to install diamondback on a brand new, fresh out of the box macbook pro, and I'm encountering an error that I've never seen before. I'm getting errors from


about not being able to find boost. The specific error is

rosboost_cfg.rosboost_cfg.BoostError: "Cannot find boost in any of [('/usr', True), ('/usr/local', True)]"

Looking in the python script, it looks like this list should at the very least also include /opt/local/include, which is set in $CPATH.

Here's the relevant python bit:

 _search_paths = [(sysroot+'/usr', True),
                 (sysroot+'/usr/local', True),
                 (None if 'INCLUDE_DIRS' not in os.environ else os.environ['INCLUDE_DIRS'], True),
                 (None if 'CPATH' not in os.environ else os.environ['CPATH'], True),
                 (None if 'C_INCLUDE_PATH' not in os.environ else os.environ['C_INCLUDE_PATH'], True),
                 (None if 'CPLUS_INCLUDE_PATH' not in os.environ else os.environ['CPLUS_INCLUDE_PATH'], True),
                 (None if 'ROS_BOOST_ROOT' not in os.environ else os.environ['ROS_BOOST_ROOT'], False)]

When I do

echo $CPATH

I get


(set from .profile).

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2011-03-10 07:46:51 -0600

Nick gravatar image

I figured out the problem.

It happens when doing sudo rosinstall instead of just rosinstall.

For future reference, rosinstall and sudo don't play well together on OSX currently.

edit flag offensive delete link more

Question Tools


Asked: 2011-03-10 06:57:55 -0600

Seen: 528 times

Last updated: Mar 10 '11