Skip to content

Instantly share code, notes, and snippets.

@mohitsethi
Created August 6, 2012 07:15
Show Gist options
  • Select an option

  • Save mohitsethi/3271866 to your computer and use it in GitHub Desktop.

Select an option

Save mohitsethi/3271866 to your computer and use it in GitHub Desktop.
oniguruma
Installing oniguruma (1.1.0) with native extensions
Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension.
/home/mohit/.rvm/rubies/ruby-1.8.7-p370/bin/ruby extconf.rb
checking for main() in -lonig... no
creating Makefile
make
gcc -I. -I. -I/home/mohit/.rvm/rubies/ruby-1.8.7-p370/lib/ruby/1.8/x86_64-linux -I. -fPIC -Wall -c oregexp.c
oregexp.c:2:23: fatal error: oniguruma.h: No such file or directory
compilation terminated.
make: *** [oregexp.o] Error 1
Gem files will remain installed in /home/mohit/.rvm/gems/ruby-1.8.7-p370/gems/oniguruma-1.1.0 for inspection.
Results logged to /home/mohit/.rvm/gems/ruby-1.8.7-p370/gems/oniguruma-1.1.0/ext/gem_make.out
An error occured while installing oniguruma (1.1.0), and Bundler cannot continue.
Make sure that `gem install oniguruma -v '1.1.0'` succeeds before bundling.
@mohitsethi
Copy link
Author

sudo apt-get -y install libonig-dev

@JamesChevalier
Copy link

Thank you.
This gist helped me move an old inherited Redmine instance.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment