# Can't Install VisualRuby

**URL:** <https://www.ruby-forum.com/t/cant-install-visualruby/242140>\
**Category:** Ruby-Gnome 2\
**Created:** [May 30, 2015, 5:13pm UTC](https://www.ruby-forum.com/t/cant-install-visualruby/242140 "2015-05-30T17:13:25Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![musicdenotation](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/ea666f/32.png) [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Post date:** [May 30, 2015, 5:13pm UTC](https://www.ruby-forum.com/t/cant-install-visualruby/242140/1 "2015-05-30T17:13:25Z")

</div>

Hi, this is my first post in the forums, so forgive me if this is in a  
wrong place.

My problem is, I can’t install visualruby because, gtksourceview2 gem  
fails to install, attached is error message produced.

I already have it installed and running about a year ago, and I decided  
to delete all my rubies and start fresh again. And now, I can’t install  
it anymore.

I’m running Windows XP 32-bit.  
I also installed the GTK in the [Visualruby.net](http://Visualruby.net) website.

Ruby Version  
ruby 1.9.3p551 (2014-11-13) [i386-mingw32]

Installed GEMS  
atk (2.2.5 x86-mingw32)  
bigdecimal (1.1.0)  
bundler (1.10.1)  
cairo (1.14.1 x86-mingw32)  
gdk\_pixbuf2 (2.2.5 x86-mingw32)  
glib2 (2.2.5 x86-mingw32)  
gtk2 (2.2.5 x86-mingw32)  
io-console (0.3)  
json (1.5.5)  
minitest (2.5.1)  
pango (2.2.5 x86-mingw32)  
pkg-config (1.1.6)  
rake (0.9.2.2)  
rdoc (3.9.5)  
require\_all (1.3.2)  
rubygems-update (2.4.7)  
vrlib (1.0.16)

---

<div class="post-metadata">

**Author:** ![lycaon](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/5f9b8f/32.png) [@lycaon](https://www.ruby-forum.com/u/lycaon)\
**Post date:** [June 22, 2015, 9:34am UTC](https://www.ruby-forum.com/t/cant-install-visualruby/242140/2 "2015-06-22T09:34:44Z")

</div>

Solved it. Use version 2.1.0 of gtksourceview2 gem and it will work  
fine.

---

<div class="post-metadata">

**Author:** ![lycaon](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/5f9b8f/32.png) [@lycaon](https://www.ruby-forum.com/u/lycaon)\
**Post date:** [July 23, 2015, 2:01am UTC](https://www.ruby-forum.com/t/cant-install-visualruby/242140/3 "2015-07-23T02:01:05Z")

</div>

Hi,

One first post deserves another!

Did you actually manage to run visualruby?

I had the same problem as you, and used your suggestion. This allowed me  
to install vr successfully, however, when it comes to run I get  
following error:

C:\Documents and Settings\Owner\>vr  
C:/Ruby193/lib/ruby/site\_ruby/1.9.1/rubygems/custom\_require.rb:36:in  
`require’: cannot load such file – cairo.so (LoadError)

etc…

I am using the same setup:  
Windows XP  
ruby 1.9.3

Gems:  
atk (2.2.5 x86-mingw32, 2.1.0 x86-mingw32)  
bigdecimal (1.1.0)  
cairo (1.14.1 x86-mingw32)  
gdk\_pixbuf2 (2.2.5 x86-mingw32, 2.1.0 x86-mingw32)  
glib2 (2.2.5 x86-mingw32, 2.1.0 x86-mingw32)  
gtk2 (2.2.5 x86-mingw32, 2.1.0 x86-mingw32)  
gtksourceview2 (2.1.0 x86-mingw32)  
io-console (0.3)  
json (1.5.5)  
minitest (2.5.1)  
pango (2.2.5 x86-mingw32, 2.1.0 x86-mingw32)  
pkg-config (1.1.6)  
rake (0.9.2.2)  
rdoc (3.9.5)  
require\_all (1.3.2)  
visualruby (1.0.16)  
vrlib (1.0.16)

---

<div class="post-metadata">

**Author:** ![lycaon](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/5f9b8f/32.png) [@lycaon](https://www.ruby-forum.com/u/lycaon)\
**Post date:** [July 27, 2015, 7:53am UTC](https://www.ruby-forum.com/t/cant-install-visualruby/242140/4 "2015-07-27T07:53:19Z")

</div>

Hi!

Try to upgrade to Ruby 2.0.0 or higher. The latest cairo gem dropped  
support for 1.9.3.

For reference:  
[https://www.ruby-forum.com/topic/44870501](https://www.ruby-forum.com/topic/44870501)

Also, try and uninstall version 2.2.5 of the gems because visualruby  
will try to load the latest version.
