LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 12-19-2007, 04:44 PM   #1
LinuxNoob75
Member
 
Registered: Jan 2007
Posts: 90

Rep: Reputation: 15
Ruby GTK??


Hello-
I'm hopelessly confused with the GTK+ bindings for ruby.

I'm running Ubuntu 7.10 and installed the newest versions of ruby and ruby-gnome2 through apt-get today.

However, when I try and run a Ruby GTK program(normal Ruby programs work fine), I always get:
Code:
helloWorld.rb:1:in `require': no such file to load -- gtk (LoadError)
        from helloWorld.rb:1
I utterly suck at configuring ANYTHING from source, so if possible please point to .DEBs.
Seriously. I've never actually successfully built any software(even my own) using the *shudder* 'make' and 'make install' stuff, even if I do exactly as the readme says. The most discouraging thing for me under linux is those dreaded tar packages.

Well anyways, if someone could tell me why my Ruby's not working it would be great.
Thanks,
LN75
 
Old 12-19-2007, 07:19 PM   #2
95se
Member
 
Registered: Apr 2002
Location: Windsor, ON, CA
Distribution: Ubuntu
Posts: 740

Rep: Reputation: 32
Append a 2 onto that gtk.

Code:
require 'gtk2'
 
Old 12-26-2007, 04:29 PM   #3
MicahCarrick
Member
 
Registered: Jul 2004
Distribution: Fedora
Posts: 241

Rep: Reputation: 31
Nevermind. I see that a correct response was already posted. Sorry.

Last edited by MicahCarrick; 12-26-2007 at 04:31 PM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
PHP v Ruby/Ruby on Rails Neko_D Linux - General 4 02-08-2007 11:56 PM
[Ruby] Tar'ing or Zip'ing with ruby script lmcilwain Programming 2 01-19-2007 06:56 PM
GTK+ programs on Windows without having to install GTK+, GLib, etc Nylex Programming 2 02-19-2006 01:33 PM
Freerock uninstall stole GTK looking for up-to-date pango, atk, gtk, glib and xft tgz Oholiab Slackware 8 09-18-2005 11:57 AM
cant find gtk-config file or gtk-devel to install happychappy Linux - Software 2 02-16-2005 12:46 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 10:37 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration