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 8565975
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T17:33:05+00:00 2026-06-11T17:33:05+00:00

Could any one help me with this problem, When i am trying to install

  • 0

Could any one help me with this problem, When i am trying to install GTk2 gem in Jruby??

Check http://kenai.com/projects/jruby/pages/Home for alternatives.

checking for -Wall option to compiler... no

checking for -Waggregate-return option to compiler... no

checking for -Wcast-align option to compiler... no


checking for -Wextra option to compiler... no

checking for -Wformat=2 option to compiler... no

checking for -Winit-self option to compiler... no

checking for -Wlarger-than-65500 option to compiler... no

checking for -Wmissing-declarations option to compiler... no

checking for -Wmissing-format-attribute option to compiler... no

checking for -Wmissing-include-dirs option to compiler... no

checking for -Wmissing-noreturn option to compiler... no

checking for -Wmissing-prototypes option to compiler... no

checking for -Wnested-externs option to compiler... no

checking for -Wold-style-definition option to compiler... no

checking for -Wpacked option to compiler... no

checking for -Wp,-D_FORTIFY_SOURCE=2 option to compiler... no

checking for -Wpointer-arith option to compiler... no

checking for -Wswitch-default option to compiler... no

checking for -Wswitch-enum option to compiler... no

checking for -Wundef option to compiler... no

checking for -Wunsafe-loop-optimizations option to compiler... no

checking for -Wwrite-strings option to compiler... no

checking for rb_define_alloc_func() in ruby.h... IOError: Cannot run program "cc" (in directory "C:\jruby-1.6.8\lib\ruby\gems\1.8\gems\glib2-1.1.5\ext\glib2"):
CreateProcess error=2, The system cannot find the file specified

            popen at org/jruby/RubyIO.java:3613

           xpopen at C:/jruby-1.6.8/lib/ruby/site_ruby/shared/mkmf.rb:323

             open at C:/jruby-1.6.8/lib/ruby/site_ruby/shared/mkmf.rb:260

           xpopen at C:/jruby-1.6.8/lib/ruby/site_ruby/shared/mkmf.rb:316

        egrep_cpp at C:/jruby-1.6.8/lib/ruby/site_ruby/shared/mkmf.rb:538

        have_func at C:/jruby-1.6.8/lib/ruby/site_ruby/shared/mkmf.rb:758

     checking_for at C:/jruby-1.6.8/lib/ruby/site_ruby/shared/mkmf.rb:652

         postpone at C:/jruby-1.6.8/lib/ruby/site_ruby/shared/mkmf.rb:286

             open at C:/jruby-1.6.8/lib/ruby/site_ruby/shared/mkmf.rb:260

         postpone at C:/jruby-1.6.8/lib/ruby/site_ruby/shared/mkmf.rb:286

             open at C:/jruby-1.6.8/lib/ruby/site_ruby/shared/mkmf.rb:260

         postpone at C:/jruby-1.6.8/lib/ruby/site_ruby/shared/mkmf.rb:282

     checking_for at C:/jruby-1.6.8/lib/ruby/site_ruby/shared/mkmf.rb:651

        have_func at C:/jruby-1.6.8/lib/ruby/site_ruby/shared/mkmf.rb:755

  check_ruby_func at C:/jruby-1.6.8/lib/ruby/gems/1.8/gems/glib2-1.1.5/lib/mkmf-gnome2.rb:369

           (root) at C:/jruby-1.6.8/lib/ruby/gems/1.8/gems/glib2-1.1.5/lib/mkmf-
gnome2.rb:558

          require at org/jruby/RubyKernel.java:1062

           (root) at extconf.rb:15
*** 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=C:/jruby-1.6.8/bin/jruby    

Gem files will remain installed in C:/jruby-1.6.8/lib/ruby/gems/1.8/gems/glib2-1.1.5 for inspection.

Results logged to C:/jruby-1.6.8/lib/ruby/gems/1.8/gems/glib2-1.1.5/ext/glib2/gem_make.out

I got ruined by this problem… Actually i want to run Real multi-threading in ruby… Already i have coded an application that uses GTk in ruby… Now i want to port that application to JRuby…..

Please help me… any one have short out this before>>?
Thanks in advance

  • 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-06-11T17:33:06+00:00Added an answer on June 11, 2026 at 5:33 pm

    The error here is that you either don’t have a C compiler installed or if you do it can’t find it

    IOError: Cannot run program “cc”

    So it looks like GTK is trying to build native extensions, which aren’t supported very well in Jruby. This blog post discusses some code he’s written to use gtk+ from Jruby https://wordpress.kaspernj.org/?p=85

    Since you’re porting over to Jruby you could also use the Java GTK directly or also use SWT directly. There’s a gem for SWT https://github.com/danlucraft/swt which includes a few simple examples not sure how complete it is though.

    As a sidenote the Redcar Editor is written in Jruby + SWT

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

Sidebar

Related Questions

I wonder if any of you could help with this problem. The following code
I was wondering if any one could help me out; I have a table
I was wondering if someone could help me understand this problem. I prepared a
I'm trying to figure out this problem for one of my comp sci classes,
I'm quite lost on this one and I hope someone here could help. My
Could anyone please help me convert this code to vb.net, I have tried it
Could anyone give me some help with this please? The content needs to appear
I wonder if anyone could help me with a problem I've been having. I
Im asking to see if anyone could help me with my problem which is
I'm hoping to get some help with this weird problem. We're running the Jacorb

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.