# Problem in loading files (require...)

**URL:** <https://www.ruby-forum.com/t/problem-in-loading-files-require/124141>\
**Category:** Ruby\
**Created:** [December 25, 2007, 9:23am UTC](https://www.ruby-forum.com/t/problem-in-loading-files-require/124141 "2007-12-25T09:23:31Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![abir84](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/3da27b/32.png) [@abir84](https://www.ruby-forum.com/u/abir84)\
**Post date:** [December 25, 2007, 9:23am UTC](https://www.ruby-forum.com/t/problem-in-loading-files-require/124141/1 "2007-12-25T09:23:31Z")

</div>

Hello  
I’ve installed VimMate, but when I run it I’ve the following error :  
‘Module gtk2 is required to run this program’  
But when I verify, I’ve a folder gtk2, gtk2.rb and gnome2.rb in  
/usr/lib/ruby/site\_ruby/1.8/

And I’ve the same problem with require ‘SVG’, I installed this gem from  
a .gem file and I see it in :  
/usr/local/lib/ruby/site\_ruby/1.8/  
But I can’t use it and it’s not listed in the output of the command ‘gem  
list’

Thanks

---

<div class="post-metadata">

**Author:** ![abir84](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/3da27b/32.png) [@abir84](https://www.ruby-forum.com/u/abir84)\
**Post date:** [December 25, 2007, 1:35pm UTC](https://www.ruby-forum.com/t/problem-in-loading-files-require/124141/2 "2007-12-25T13:35:47Z")

</div>

On Dec 25, 10:23 am, “Abir B.” [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> Hello  
> I’ve installed VimMate, but when I run it I’ve the following error :  
> ‘Module gtk2 is required to run this program’  
> But when I verify, I’ve a folder gtk2, gtk2.rb and gnome2.rb in  
> /usr/lib/ruby/site\_ruby/1.8/
> 
> And I’ve the same problem with require ‘SVG’, I installed this gem from  
> a .gem file and I see it in :  
> /usr/local/lib/ruby/site\_ruby/1.8/

Did you use “gem install …” to install it?  
Looks like your have ruby installed in both /usr and /usr/local, which  
may surely lead to confusion.

---

<div class="post-metadata">

**Author:** ![abir84](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/3da27b/32.png) [@abir84](https://www.ruby-forum.com/u/abir84)\
**Post date:** [December 25, 2007, 2:23pm UTC](https://www.ruby-forum.com/t/problem-in-loading-files-require/124141/3 "2007-12-25T14:23:20Z")

</div>

Vasyl S. wrote:

> On Dec 25, 10:23 am, “Abir B.” [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:
> 
> > Hello  
> > I’ve installed VimMate, but when I run it I’ve the following error :  
> > ‘Module gtk2 is required to run this program’  
> > But when I verify, I’ve a folder gtk2, gtk2.rb and gnome2.rb in  
> > /usr/lib/ruby/site\_ruby/1.8/
> > 
> > And I’ve the same problem with require ‘SVG’, I installed this gem from  
> > a .gem file and I see it in :  
> > /usr/local/lib/ruby/site\_ruby/1.8/
> 
> Did you use “gem install …” to install it?  
> Looks like your have ruby installed in both /usr and /usr/local, which  
> may surely lead to confusion.

Yes I think I have confusion between Ruby versions because I uninstalled  
Ruby from Linux by yum, but I still have it… And this two folders  
still exists
