Ask Your Question
0

osx error finding boost

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

Nick gravatar image

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

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

diamondback/ros/tools/rosboost_cfg/src/rosboost_cfg/rosboost_cfg.py

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

/opt/local/include

(set from .profile).

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
2

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

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

Your Answer

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

Add Answer

Question Tools

Stats

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

Seen: 420 times

Last updated: Mar 10 '11