Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

catkin build fails (ruby issue on utilrb) #40

Closed
ntorresalberto opened this issue Dec 8, 2020 · 1 comment
Closed

catkin build fails (ruby issue on utilrb) #40

ntorresalberto opened this issue Dec 8, 2020 · 1 comment

Comments

@ntorresalberto
Copy link

ntorresalberto commented Dec 8, 2020

Setup

I'm on Fedora 32.
I believe there aren't any packages available for the distro (particularly in the copr https://copr.fedorainfracloud.org/coprs/thofmann/ros/).
I know this is not specified in the docs but I'm trying to build the toolchain (orocos-toolchain/orocos_toolchain branch toolchain-2.9) in a clean catkin workspace.

Error log

The catkin error is:

CMake Error at /usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:164 (message):
  Could NOT find Ruby (missing: RUBY_INCLUDE_DIR RUBY_LIBRARY) (found version
  "1.8.0")
Call Stack (most recent call first):
  /usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:445 (_FPHSA_FAILURE_MESSAGE)
  /usr/share/cmake/Modules/FindRuby.cmake:276 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
  CMakeLists.txt:5 (find_package)

Previous issue

@meyerj @mjbogusz
I couldn't comment on #29 but I think it's possibly the same issue.

#13 was replaced by a new installation method based on pure CMake in #34, which does not depend on catkin. Please check the new top-level README.md for further details.

Are there any workarounds to make it work?

Some new info

I saw someone suggest installing the gems rake and hoe would solve the issue so I manually installed the dnf packages rubygem-rake and rubygem-hoe and then the error turns into:

CMake Error at /usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:164 (message):
  Could NOT find Ruby (missing: RUBY_INCLUDE_DIR RUBY_LIBRARY
  RUBY_CONFIG_INCLUDE_DIR) (found version "2.7.2")
Call Stack (most recent call first):
  /usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:445 (_FPHSA_FAILURE_MESSAGE)
  /usr/share/cmake/Modules/FindRuby.cmake:276 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
  CMakeLists.txt:5 (find_package)

Which at least corresponds to my ruby version:

→ ruby --version
ruby 2.7.2p137 (2020-10-01 revision 5445e04352) [x86_64-linux]
@ntorresalberto
Copy link
Author

Turns out I needed to install the development package: sudo dnf install ruby-devel (on Fedora).
The equivalent in ubuntu would be sudo apt install ruby-dev.
I'm leaving this info here for future googlers.

source

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant