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

  • Home
  • SEARCH
  • 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 697641
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T03:11:20+00:00 2026-05-14T03:11:20+00:00

How can I fix this error, and install thin or other gems? $ sudo

  • 0

How can I fix this error, and install thin or other gems?

$ sudo gem install thin
Building native extensions.  This could take a while...
ERROR:  Error installing thin:
    ERROR: Failed to build gem native extension.

/usr/bin/ruby1.9.1 extconf.rb
checking for rb_trap_immediate in ruby.h,rubysig.h... *** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of
necessary libraries and/or headers.  Check the mkmf.log file for more
details.  You may need configuration options.

Provided configuration options:
    --with-opt-dir
    --without-opt-dir
    --with-opt-include
    --without-opt-include=${opt-dir}/include
    --with-opt-lib
    --without-opt-lib=${opt-dir}/lib
    --with-make-prog
    --without-make-prog
    --srcdir=.
    --curdir
    --ruby=/usr/bin/ruby1.9.1
/usr/lib/ruby/1.9.1/mkmf.rb:362:in `try_do': The complier failed to generate an executable file. (RuntimeError)
You have to install development tools first.
    from /usr/lib/ruby/1.9.1/mkmf.rb:425:in `try_compile'
    from /usr/lib/ruby/1.9.1/mkmf.rb:543:in `try_var'
    from /usr/lib/ruby/1.9.1/mkmf.rb:791:in `block in have_var'
    from /usr/lib/ruby/1.9.1/mkmf.rb:668:in `block in checking_for'
    from /usr/lib/ruby/1.9.1/mkmf.rb:274:in `block (2 levels) in postpone'
    from /usr/lib/ruby/1.9.1/mkmf.rb:248:in `open'
    from /usr/lib/ruby/1.9.1/mkmf.rb:274:in `block in postpone'
    from /usr/lib/ruby/1.9.1/mkmf.rb:248:in `open'
    from /usr/lib/ruby/1.9.1/mkmf.rb:270:in `postpone'
    from /usr/lib/ruby/1.9.1/mkmf.rb:667:in `checking_for'
    from /usr/lib/ruby/1.9.1/mkmf.rb:790:in `have_var'
    from extconf.rb:16:in `'


Gem files will remain installed in /var/lib/gems/1.9.1/gems/eventmachine-0.12.10 for inspection.
Results logged to /var/lib/gems/1.9.1/gems/eventmachine-0.12.10/ext/gem_make.out

Addtional Infomation as below

$ cat /etc/issue
Ubuntu 9.10 \n \l
$ dpkg -l | grep ruby
ii  libreadline-ruby1.9.1             1.9.1.243-2                   Readline interface for Ruby 1.9.1
ii  libruby1.9.1                      1.9.1.243-2                   Libraries necessary to run Ruby 1.9.1
ii  ruby1.9.1                         1.9.1.243-2                   Interpreter of object-oriented scripting lan
ii  ruby1.9.1-dev                     1.9.1.243-2                   Header files for compiling extension modules
ii  rubygems1.9.1                     1.3.5-1ubuntu2                package management framework for Ruby librar
$ ruby -v
ruby 1.9.1p243 (2009-07-16 revision 24175) [x86_64-linux]
$ gem list

*** LOCAL GEMS ***

rack (1.1.0)
sinatra (1.0)
  • 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-14T03:11:21+00:00Added an answer on May 14, 2026 at 3:11 am

    i had:

    ERROR:  Error installing thin:
        ERROR: Failed to build gem native extension.
    
    /usr/bin/ruby1.8 extconf.rb
    checking for rb_trap_immediate in ruby.h,rubysig.h... yes
    checking for rb_thread_blocking_region()... no
    checking for inotify_init() in sys/inotify.h... yes
    checking for writev() in sys/uio.h... yes
    checking for rb_thread_check_ints()... no
    checking for rb_time_new()... yes
    checking for sys/event.h... no
    checking for epoll_create() in sys/epoll.h... yes
    checking for main() in -lcrypto... no
    creating Makefile
    
    make
    g++ -I. -I. -I/usr/lib/ruby/1.8/x86_64-linux -I. -DBUILD_FOR_RUBY -DHAVE_RB_TRAP_IMMEDIATE -DHAVE_RBTRAP -DHAVE_INOTIFY_INIT -DHAVE_INOTIFY -DHAVE_WRITEV -DHAVE_WRITEV -DHAVE_RB_TIME_NEW -DOS_UNIX -DHAVE_EPOLL_CREATE -DHAVE_EPOLL -DWITHOUT_SSL -I/include/include    -fPIC -fno-strict-aliasing -g -g -O2  -fPIC    -c emwin.cpp
    make: g++: Command not found
    make: *** [emwin.o] Error 127
    

    it mentioned that g++ was missing, so i did:

    sudo apt-get install g++
    

    and then ran:

    sudo gem install thin
    

    and it worked

    also, i’m not sure if it may have anything to do with this install, but since it’s a 64-bit install, sometimes as precaution, I install the 32 libs:

    sudo apt-get install ia32libs
    

    but i always install the 32libs as soon as i setup a new 64-bit server

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

Sidebar

Related Questions

This sure seems like a simple error to fix. However, I somehow can't figure
all, I get this error when building with maven ( mvn clean install ).
Ok I want some opinions how I can fix this mess of a method!
Does anyone have an idea how can I fix this vulnerability in Apache 2.2.4
I've been trying to fix this for two hours straight and I can't figure
I got a very similar error to the one below: How can I fix
I'm using Rails 3.0.1. I installed the native pg gem for postgresql with this
Can someone show me how to fix the width of a column in a
ModelMultipleChoiceField doesn't select initial choices and I can't make the following fix (link below)
Can you cast a List<int> to List<string> somehow? I know I could loop through

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.