Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6120305
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T15:39:12+00:00 2026-05-23T15:39:12+00:00

I have tried to install ruby-opencv and I can’t get it to work. I

  • 0

I have tried to install ruby-opencv and I can’t get it to work.

I am running fedora 15 with rvm using ruby 1.8.7

I have tried this fork as it seems most up to date:
https://github.com/ser1zw/ruby-opencv

I have installed the packages opencv and opencv-devel both of which are version 2.2

When I try to compile the native extensions by running:

ruby extconf.rb

I get the error:

>> check require headers...
checking for core/core_c.h... no
*** extconf.rb failed ***

The mkmf.log file provides this information:

have_header: checking for core/core_c.h... -------------------- no

"gcc -E -I. -I/home/derek/.rvm/rubies/ruby-1.8.7-p302/lib/ruby/1.8/x86_64-linux -I. -I/usr
/include -I/usr/local/include -I/usr/local/include/opencv2    -g -O2  -fPIC    conftest.c -o conftest.i"
conftest.c:1:25: fatal error: core/core_c.h: No such file or directory
compilation terminated.
checked program was:
/* begin */
1: #include <core/core_c.h>
/* end */

does anyone know how to fix this error?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T15:39:12+00:00Added an answer on May 23, 2026 at 3:39 pm

    Did you check where opencv-devel was installed?
    This is from the github page:

    ruby extconf.rb \
      --with-opencv-lib=/opt/local/lib \
      --with-opencv-include=/opt/local/include/opencv2
    

    Notice the -I lines on your compilation message, they did not include those locations. So double-check where opencv-devel went to, and fix the locations with the --with-opencv flags.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have tried everything I can think of to get this to work, to
I have installed rvm (mutiuser option) and ruby using rvm install on my test
I have tried several times to install rails. Using RVM, then compiling the source
I have installed Ubuntu 11.04 and tried to install Ruby as apt-get install ruby
I have stupid question, on which can't find answer. I tried to install Selenium
Have tried to find solutions for this and can't really come up with anything.
I have tried this but it does not work (even if I specify .wav
I tried to install a new ruby version with rvm on my mac. There
I have tried this $ sudo gem install sass and it gives me an
I have tried to install each of the following three versions of Ruby via

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.