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

Can't install PCL with Homebrew on OSX 10.9 during ROS Hydro installation

asked 2014-06-14 22:55:07 -0600

jc17 gravatar image

updated 2014-06-16 18:37:11 -0600

Hi everyone! I've been following this tutorial ( and got some great help from you all before. I need a little more help before I can get onto my feet and hopefully start helping others.

I am trying to install ROS Hydro on OSX 10.9 through Homebrew. Following the above linked tutorial, I am stuck trying to run this:

rosdep install --from-paths src --ignore-src --rosdistro hydro -y

And it will fail trying to install PCL. So I try running "brew install pcl" instead. I get:

Configuring incomplete, errors occurred!

make: * * * [cmake_check_build_system] Error 1

...along with a referral to the homebrew troubleshooting page.

Hansg91 suggested trying "brew install pcl -v" for more verbose output. Here's what I saw that I thought might be relevant:

==> make

CMake Error: Parse error in cache file /tmp/vtk5-1lKn/VTK5.10.1/build/CMakeCache.txt. Offending entry: File "", line xxx, in module.

This error was repeated several times with different lines being mentioned and different error reasons mentioned (in module, in get_install_path, TypeError: 'int' object has no attribute 'getitem' - and more).

The final error listed that seemed to sum it all up was that vtk5 5.10.1 did not build - how might I be able to fix this?

I'm dead stuck. I have been following the tutorial to the letter, because otherwise I'd have no idea what I'm doing. Any ideas on how to get past this and continue with the installation? I can always provide more details if necessary. Thank you!

edit retag flag offensive close merge delete


This is perhaps stating the obvious, but do you have vtk5 installed? What does "brew info vtk5" say?

Hansg91 gravatar image Hansg91  ( 2014-06-17 04:05:58 -0600 )edit

It was installed at the time, but following demmeln's suggestion fixed things up

jc17 gravatar image jc17  ( 2014-06-19 13:03:38 -0600 )edit

3 Answers

Sort by ยป oldest newest most voted

answered 2014-06-17 04:39:36 -0600

demmeln gravatar image

In general, it would be good to provide the full verbose output (use a service like and post the link).

With your hint towards vtk5, I just noticed that there were some recent changes with the vtk5 formula, but I'm not sure if that is indeed the problem you are seeing. I would try the following:

brew update
brew tap --repair
brew uninstall vtk5
brew uninstall pcl
brew install pcl --HEAD
edit flag offensive delete link more


This sequence ended up being the answer. D'oh, I'm a newbie to a lot of things in this universe and had no idea how often things update. Thank you!

jc17 gravatar image jc17  ( 2014-06-19 13:02:14 -0600 )edit

Yes there are many moving targets for installing ROS... glad to help.

demmeln gravatar image demmeln  ( 2014-06-19 17:37:58 -0600 )edit

answered 2014-06-15 06:34:31 -0600

Hansg91 gravatar image

You could try "brew install pcl --HEAD" which I believe copies the latest version from git and tries to compile that. You could also try doing "brew install pcl -v" for a more verbose output, so that it is more clear what is going on.

edit flag offensive delete link more


Thanks for the suggestions! Adding "--HEAD" on the end gave an identical result. Trying to add "-v" provided a few more clues. I edited my original question to show what errors were given.

jc17 gravatar image jc17  ( 2014-06-16 18:31:02 -0600 )edit

answered 2014-11-19 17:56:41 -0600

pgorczak gravatar image

updated 2014-11-19 17:57:01 -0600

On OS X Yosemite, the normal brew install pcl failed as well for me. Adding --HEAD did the trick again.

edit flag offensive delete link more

Question Tools

1 follower


Asked: 2014-06-14 22:55:07 -0600

Seen: 1,786 times

Last updated: Nov 19 '14