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

Error running 'sudo pip install -U rosinstall vcstools' on MacOS 10.6.8

asked 2012-07-31 22:46:45 -0500

shinko gravatar image

updated 2012-07-31 22:48:52 -0500

I've port install yaml, python selected 2.6, ran easy_install-2.6, and then ran pip below. but it gives me erorr saying yaml.h couldn't be found. I look at the g++ command for it, and it shows a include directory /opt/local/Frameworks/.../include...What does that mean? How do i provide /opt/local/include only?

shinkostation:beginner_tutorials sycheng$ sudo pip-2.6 install -U rosinstall
Downloading/unpacking rosinstall
  Downloading rosinstall-0.6.17.tar.gz (42Kb): 42Kb downloaded
  Running egg_info for package rosinstall
Downloading/unpacking vcstools (from rosinstall)
  Downloading vcstools-0.1.18.tar.gz
  Running egg_info for package vcstools
Downloading/unpacking pyyaml (from rosinstall)
  Downloading (364Kb): 364Kb downloaded
  Running egg_info for package pyyaml
Installing collected packages: rosinstall, vcstools, pyyaml
  Found existing installation: rosinstall 0.6.17
    Uninstalling rosinstall:
      Successfully uninstalled rosinstall
  Running install for rosinstall
    changing mode of build/scripts-2.6/rosinstall from 644 to 755
    changing mode of build/scripts-2.6/roslocate from 644 to 755
    changing mode of build/scripts-2.6/rosws from 644 to 755
    changing mode of build/scripts-2.6/rosco from 644 to 755
    changing mode of /opt/local/Library/Frameworks/Python.framework/Versions/2.6/bin/rosco to 755
    changing mode of /opt/local/Library/Frameworks/Python.framework/Versions/2.6/bin/rosinstall to 755
    changing mode of /opt/local/Library/Frameworks/Python.framework/Versions/2.6/bin/roslocate to 755
    changing mode of /opt/local/Library/Frameworks/Python.framework/Versions/2.6/bin/rosws to 755
  Found existing installation: vcstools 0.1.18
    Uninstalling vcstools:
      Successfully uninstalled vcstools
  Running install for vcstools
  Found existing installation: PyYAML 3.10
    Uninstalling PyYAML:
      Successfully uninstalled PyYAML
  Running install for pyyaml
    checking if libyaml is compilable
    /usr/bin/gcc-4.2 -fno-strict-aliasing -fno-common -dynamic -pipe -O2 -fwrapv -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/opt/local/Library/Frameworks/Python.framework/Versions/2.6/include/python2.6 -c build/temp.macosx-10.6-x86_64-2.6/check_libyaml.c -o build/temp.macosx-10.6-x86_64-2.6/check_libyaml.o
    build/temp.macosx-10.6-x86_64-2.6/check_libyaml.c:2:18: error: yaml.h: No such file or directory
    build/temp.macosx-10.6-x86_64-2.6/check_libyaml.c: In function ‘main’:
    build/temp.macosx-10.6-x86_64-2.6/check_libyaml.c:5: error: ‘yaml_parser_t’ undeclared (first use in this function)
    build/temp.macosx-10.6-x86_64-2.6/check_libyaml.c:5: error: (Each undeclared identifier is reported only once
    build/temp.macosx-10.6-x86_64-2.6/check_libyaml.c:5: error: for each function it appears in.)
    build/temp.macosx-10.6-x86_64-2.6/check_libyaml.c:5: error: expected ‘;’ before ‘parser’
    build/temp.macosx-10.6-x86_64-2.6/check_libyaml.c:6: error: ‘yaml_emitter_t’ undeclared (first use in this function)
    build/temp.macosx-10.6-x86_64-2.6/check_libyaml.c:6: error: expected ‘;’ before ‘emitter’
    build/temp.macosx-10.6-x86_64-2.6/check_libyaml.c:8: warning: implicit declaration of function ‘yaml_parser_initialize’
    build/temp.macosx-10.6-x86_64-2.6/check_libyaml.c:8: error: ‘parser’ undeclared (first use in this function)
    build/temp.macosx-10.6-x86_64-2.6/check_libyaml.c:9: warning: implicit declaration of function ‘yaml_parser_delete ...
edit retag flag offensive close merge delete

1 Answer

Sort by » oldest newest most voted

answered 2013-01-24 20:27:47 -0500

tfoote gravatar image

It looks like you need to install libyaml which pyyaml will depend upon. Or if you pass the --without-libyaml it will probably use a pure python implementation that will likely be slower.

edit flag offensive delete link more

Question Tools


Asked: 2012-07-31 22:46:45 -0500

Seen: 359 times

Last updated: Jan 24 '13