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

HowTo resolve a problem compiling xapian-full-alaveteli in a phusion docker image #329

Closed
carukc opened this issue Dec 5, 2014 · 2 comments
Labels

Comments

@carukc
Copy link

carukc commented Dec 5, 2014

Hello,

First, many thanks for the cool plugin. it works VERY well!

I've been using it successfully on ubuntu 14.04 with rvm and recently I've decided to dockerize my redmine installs (using the phusion docker image). All is working well except for the xapian-full-alaveteli gem. Compilation of it fails with :

/usr/include/ruby-2.1.0/ruby/ruby.h:24:25: fatal error: ruby/config.h: No such file or directory
 #include "ruby/config.h"

I see that config.h IS NOT in /usr/include/ruby-2.1.0/ruby/ but IS in /usr/include/x86_64-linux-gnu/ruby-2.1.0/ruby/.

I suspect that this is NOT a problem with the gem but rather a problem with the way that ruby is installed in the docker image and I've found that

ln -s /usr/include/x86_64-linux-gnu/ruby-2.1.0/ruby/config.h /usr/include/ruby-2.1.0/ruby/config.h

solves the problem.

Hopefully someone will find this useful.

Chris

@picman picman added the wontfix label Jan 21, 2015
@picman picman closed this as completed Jan 21, 2015
@Vitexus
Copy link

Vitexus commented Jun 27, 2015

Thank you! This problem exist in debian jessie.

@asgh
Copy link

asgh commented Sep 15, 2016

In debian run:

dpkg-divert --rename --divert /usr/include/ruby-2.1.0/ruby/config.h --add /usr/include/x86_64-linux-gnu/ruby-2.1.0/ruby/config.h

or (for 32bit)

dpkg-divert --rename --divert /usr/include/ruby-2.1.0/ruby/config.h --add /usr/include/i386-linux-gnu/ruby-2.1.0/ruby/config.h

Instead of a symlink that will cause you trouble.

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

No branches or pull requests

4 participants