Forums Archived

The forums are being archived. See this topic for more information.

install help ("require 'rubygame'" fails)

Get help and support with Rubygame

install help ("require 'rubygame'" fails)

Postby CrystalWolf » Fri Apr 09, 2010 6:22 am

i cant seem to get the install to work, i followed the install instructions
i ran "gem install rubygame" and it said
Code: Select all
Successfully installed rake-0.8.7
Successfully installed rubygame-2.6.3
2 gems installed
Installing ri documentation for rake-0.8.7...
Installing ri documentation for rubygame-2.6.3...
Installing RDoc documentation for rake-0.8.7...
Installing RDoc documentation for rubygame-2.6.3...

so when i go to irb and test it out:
Code: Select all
irb(main):001:0> require 'rubygame'
LoadError: no such file to load -- rubygame
     from (irb):1:in 'require'
     from (irb):1

have i installed it right? maybe some files are in the wrong place?
my OS is windows 7
Last edited by jacius on Fri Apr 09, 2010 11:52 pm, edited 1 time in total.
Reason: More detail in thread subject
CrystalWolf
 
Posts: 2
Joined: Fri Apr 09, 2010 4:39 am

Re: install help

Postby jacius » Fri Apr 09, 2010 3:58 pm

Could you try this, and see if it helps?

Code: Select all
require 'rubygems'
require 'rubygame'
User avatar
jacius
Site Admin
 
Posts: 131
Joined: Fri Feb 06, 2009 11:13 pm

Re: install help

Postby CrystalWolf » Fri Apr 09, 2010 6:35 pm

yep that worked, thanks
CrystalWolf
 
Posts: 2
Joined: Fri Apr 09, 2010 4:39 am

Re: install help

Postby jacius » Fri Apr 09, 2010 11:51 pm

Okay, great! That tells us what the problem is, but there are actually better ways to solve it:

1. The easy way: Download Ruby 1.9.1. In addition to fixing your problem, Ruby will run much faster. I highly recommend this way. :D

2. The hard way: Set your RUBYOPT to automatically load rubygems for you. There's some instructions for that in the RubyGems user guide. Here's a snippet from the "Using RUBYOPT" section:
RubyGems User Guide wrote:Windows users will want to set the RUBYOPT environment variable using the appropriate sysetm utility. (On XP you can find it under Settings / Control Panel / System. Click the advanced tab and then the “Environment Variables” button near the bottom. Note that the one-click installer will set up RUBYOPT for you automatically (unless you request it not be done).
User avatar
jacius
Site Admin
 
Posts: 131
Joined: Fri Feb 06, 2009 11:13 pm


Return to Help & Support

Who is online

Users browsing this forum: No registered users and 1 guest

cron