# Help me install my own program

**URL:** <https://www.ruby-forum.com/t/help-me-install-my-own-program/218417>\
**Category:** Ruby-Gnome 2\
**Created:** [March 30, 2012, 10:21pm UTC](https://www.ruby-forum.com/t/help-me-install-my-own-program/218417 "2012-03-30T22:21:18Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![dubstep](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/cdc98d/32.png) [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Post date:** [March 30, 2012, 10:21pm UTC](https://www.ruby-forum.com/t/help-me-install-my-own-program/218417/1 "2012-03-30T22:21:18Z")

</div>

Hi y’all:

I’m trying to install my visualruby gem on a windows machine, and I  
don’t understand the requirements.

First, I installed ruby’s one click installer ver1.9.2 from here:

> **[Downloads](https://rubyinstaller.org/downloads/)**
>
> The easy way to install Ruby on Windows This is a self-contained Windows-based installer that includes the Ruby language, an execution environment, important...

Also, I installed glade+GTK+ from this site:

[http://ftp.gnome.org/pub/GNOME/binaries/win32/glade3/3.6/](http://ftp.gnome.org/pub/GNOME/binaries/win32/glade3/3.6/)

Then I type:

gem install visualruby

It complains that I need the development package because there is a  
problem with “cairo.”

So I went back to the rubyinstaller page, and installed the developent  
package using their instructions. It seemed to install successfully.  
But now when I try to install the visualruby gem, I get the message:

looking for cairo etc…  
extconf.rb failed

I’m trying to update my install instructions, so my program is usable.  
It sucks when you can’t even install your own program. Help.  
Andrea???

I hope I can have simple install instructions like:

1. Install glade+GTK+
2. Install ruby 1 click installer
3. Install visualruby gem

What am I missing? What is the problem?

Thanks,  
Eric

---

<div class="post-metadata">

**Author:** ![ericrchr](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/e/8baadc/32.png) [@ericrchr](https://www.ruby-forum.com/u/ericrchr)\
**Post date:** [March 31, 2012, 5:24am UTC](https://www.ruby-forum.com/t/help-me-install-my-own-program/218417/2 "2012-03-31T05:24:32Z")

</div>

Hi,

In [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
“[ruby-gnome2-devel-en] Help me install my own program” on Fri, 30 Mar  
2012 22:21:18 +0200,  
“Eric C.” [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> Then I type:
> 
> gem install visualruby
> 
> It complains that I need the development package because there is a  
> problem with “cairo.”

Could you try again the command?  
I updated a Windows binary bundled cairo gem. It will solve  
your problem.

## Thanks,

kou

---

<div class="post-metadata">

**Author:** ![ericrchr](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/e/8baadc/32.png) [@ericrchr](https://www.ruby-forum.com/u/ericrchr)\
**Post date:** [March 31, 2012, 6:29am UTC](https://www.ruby-forum.com/t/help-me-install-my-own-program/218417/3 "2012-03-31T06:29:34Z")

</div>

Thanks for getting back to me kou.

I’m still getting the cairo problem, and its in Windows and Ubuntu.

Here’s the message from ubuntu:

Fetching: vrlib-0.0.31.gem (100%)  
Fetching: pkg-config-1.1.3.gem (100%)  
Fetching: glib2-1.1.2.gem (100%)  
Building native extensions. This could take a while…  
Fetching: atk-1.1.2.gem (100%)  
Building native extensions. This could take a while…  
Building native extensions. This could take a while…  
ERROR: Error installing visualruby:  
ERROR: Failed to build gem native extension.

```
    /home/eric/.rvm/rubies/ruby-1.9.3-p125/bin/ruby extconf.rb

```

checking for GCC… yes  
checking for Win32 OS… no  
checking for Mac OS X… no  
checking for cairo version (\>= 1.2.0)… yes  
checking for HAVE\_RUBY\_ST\_H in ruby.h… yes  
checking for HAVE\_RUBY\_IO\_H in ruby.h… yes  
checking for rb\_errinfo() in ruby.h… yes  
checking for enum ruby\_value\_type in ruby.h… yes  
creating Makefile

make  
compiling rb\_cairo\_font\_options.c  
compiling rb\_cairo\_text\_extents.c  
compiling rb\_cairo\_context.c  
compiling rb\_cairo\_scaled\_font.c  
compiling rb\_cairo\_font\_face.c  
compiling rb\_cairo\_glyph.c  
compiling rb\_cairo\_surface.c  
compiling rb\_cairo\_private.c  
compiling rb\_cairo\_constants.c  
rb\_cairo\_constants.c: In function ‘rb\_cairo\_operator\_from\_ruby\_object’:  
rb\_cairo\_constants.c:152: warning: comparison of unsigned expression \< 0  
is always false  
rb\_cairo\_constants.c: In function ‘rb\_cairo\_antialias\_from\_ruby\_object’:  
rb\_cairo\_constants.c:153: warning: comparison of unsigned expression \< 0  
is always false  
rb\_cairo\_constants.c: In function ‘rb\_cairo\_fill\_rule\_from\_ruby\_object’:  
rb\_cairo\_constants.c:154: warning: comparison of unsigned expression \< 0  
is always false  
rb\_cairo\_constants.c: In function ‘rb\_cairo\_line\_cap\_from\_ruby\_object’:  
rb\_cairo\_constants.c:155: warning: comparison of unsigned expression \< 0  
is always false  
rb\_cairo\_constants.c: In function ‘rb\_cairo\_line\_join\_from\_ruby\_object’:  
rb\_cairo\_constants.c:156: warning: comparison of unsigned expression \< 0  
is always false  
rb\_cairo\_constants.c: In function  
‘rb\_cairo\_font\_slant\_from\_ruby\_object’:  
rb\_cairo\_constants.c:157: warning: comparison of unsigned expression \< 0  
is always false  
rb\_cairo\_constants.c: In function  
‘rb\_cairo\_font\_weight\_from\_ruby\_object’:  
rb\_cairo\_constants.c:158: warning: comparison of unsigned expression \< 0  
is always false  
rb\_cairo\_constants.c: In function  
‘rb\_cairo\_subpixel\_order\_from\_ruby\_object’:  
rb\_cairo\_constants.c:159: warning: comparison of unsigned expression \< 0  
is always false  
rb\_cairo\_constants.c: In function  
‘rb\_cairo\_hint\_style\_from\_ruby\_object’:  
rb\_cairo\_constants.c:160: warning: comparison of unsigned expression \< 0  
is always false  
rb\_cairo\_constants.c: In function  
‘rb\_cairo\_hint\_metrics\_from\_ruby\_object’:  
rb\_cairo\_constants.c:161: warning: comparison of unsigned expression \< 0  
is always false  
rb\_cairo\_constants.c: In function  
‘rb\_cairo\_path\_data\_type\_from\_ruby\_object’:  
rb\_cairo\_constants.c:162: warning: comparison of unsigned expression \< 0  
is always false  
rb\_cairo\_constants.c: In function ‘rb\_cairo\_format\_from\_ruby\_object’:  
rb\_cairo\_constants.c:164: warning: comparison of unsigned expression \< 0  
is always false  
rb\_cairo\_constants.c: In function ‘rb\_cairo\_extend\_from\_ruby\_object’:  
rb\_cairo\_constants.c:165: warning: comparison of unsigned expression \< 0  
is always false  
rb\_cairo\_constants.c: In function ‘rb\_cairo\_filter\_from\_ruby\_object’:  
rb\_cairo\_constants.c:166: warning: comparison of unsigned expression \< 0  
is always false  
rb\_cairo\_constants.c: In function  
‘rb\_cairo\_svg\_version\_from\_ruby\_object’:  
rb\_cairo\_constants.c:168: warning: comparison of unsigned expression \< 0  
is always false  
rb\_cairo\_constants.c: In function ‘rb\_cairo\_ps\_level\_from\_ruby\_object’:  
rb\_cairo\_constants.c:173: warning: comparison of unsigned expression \< 0  
is always false  
rb\_cairo\_constants.c: In function  
‘rb\_cairo\_text\_cluster\_flags\_from\_ruby\_object’:  
rb\_cairo\_constants.c:186: warning: comparison of unsigned expression \< 0  
is always false  
compiling rb\_cairo\_font\_extents.c  
compiling rb\_cairo\_matrix.c  
compiling rb\_cairo\_path.c  
compiling rb\_cairo\_io.c  
compiling rb\_cairo\_region.c  
compiling rb\_cairo\_device.c  
compiling rb\_cairo\_text\_cluster.c  
compiling rb\_cairo\_exception.c  
rb\_cairo\_exception.c: In function ‘rb\_cairo\_check\_status’:  
rb\_cairo\_exception.c:195: error: ‘CAIRO\_STATUS\_LAST\_STATUS’ undeclared  
(first use in this function)  
rb\_cairo\_exception.c:195: error: (Each undeclared identifier is reported  
only once  
rb\_cairo\_exception.c:195: error: for each function it appears in.)  
make: \*\*\* [rb\_cairo\_exception.o] Error 1

Gem files will remain installed in  
/home/eric/.rvm/gems/ruby-1.9.3-p125/gems/cairo-1.12.0 for inspection.  
Results logged to  
/home/eric/.rvm/gems/ruby-1.9.3-p125/gems/cairo-1.12.0/ext/cairo/gem\_make.out

---

<div class="post-metadata">

**Author:** ![ericrchr](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/e/8baadc/32.png) [@ericrchr](https://www.ruby-forum.com/u/ericrchr)\
**Post date:** [March 31, 2012, 6:32am UTC](https://www.ruby-forum.com/t/help-me-install-my-own-program/218417/4 "2012-03-31T06:32:32Z")

</div>

It must be a problem with the gem because I’m installing glade 3.6.7  
which iss an old program, and has worked before. The windows gtk is  
also mature.

---

<div class="post-metadata">

**Author:** ![ericrchr](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/e/8baadc/32.png) [@ericrchr](https://www.ruby-forum.com/u/ericrchr)\
**Post date:** [March 31, 2012, 6:47am UTC](https://www.ruby-forum.com/t/help-me-install-my-own-program/218417/5 "2012-03-31T06:47:33Z")

</div>

I’m getting the same error when I just try to install the cairo gem:

gem install cairo

Eric

---

<div class="post-metadata">

**Author:** ![ericrchr](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/e/8baadc/32.png) [@ericrchr](https://www.ruby-forum.com/u/ericrchr)\
**Post date:** [March 31, 2012, 6:59am UTC](https://www.ruby-forum.com/t/help-me-install-my-own-program/218417/6 "2012-03-31T06:59:54Z")

</div>

In [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
“Re: [ruby-gnome2-devel-en] Help me install my own program” on Sat, 31  
Mar 2012 06:47:33 +0200,  
“Eric C.” [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> I’m getting the same error when I just try to install the cairo gem:
> 
> gem install cairo

Could you install the following gem on Windows?

[https://rubygems.org/downloads/cairo-1.12.0-x86-mingw32.gem](https://rubygems.org/downloads/cairo-1.12.0-x86-mingw32.gem)

## Thanks,

kou

---

<div class="post-metadata">

**Author:** ![ericrchr](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/e/8baadc/32.png) [@ericrchr](https://www.ruby-forum.com/u/ericrchr)\
**Post date:** [March 31, 2012, 6:59am UTC](https://www.ruby-forum.com/t/help-me-install-my-own-program/218417/7 "2012-03-31T06:59:17Z")

</div>

Hi,

In [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
“Re: [ruby-gnome2-devel-en] Help me install my own program” on Sat, 31  
Mar 2012 06:29:34 +0200,  
“Eric C.” [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> Here’s the message from ubuntu:  
> …  
> rb\_cairo\_exception.c: In function rb\_cairo\_check\_status:  
> rb\_cairo\_exception.c:195: error: CAIRO\_STATUS\_LAST\_STATUS undeclared  
> (first use in this function)  
> rb\_cairo\_exception.c:195: error: (Each undeclared identifier is reported  
> only once  
> rb\_cairo\_exception.c:195: error: for each function it appears in.)  
> make: \*\*\* [rb\_cairo\_exception.o] Error 1

(Maybe) I fixed the problem.  
Could you try the following commands on Ubuntu?

% wget [http://pub.cozmixng.org/~kou/archives/cairo-1.12.1.gem](http://pub.cozmixng.org/~kou/archives/cairo-1.12.1.gem)  
% gem install cairo-1.12.1.gem

## Thanks,

kou

---

<div class="post-metadata">

**Author:** ![ericrchr](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/e/8baadc/32.png) [@ericrchr](https://www.ruby-forum.com/u/ericrchr)\
**Post date:** [March 31, 2012, 8:03am UTC](https://www.ruby-forum.com/t/help-me-install-my-own-program/218417/8 "2012-03-31T08:03:21Z")

</div>

Thanks kou!!! You’re a genius!! That fixed the install for cairo on  
Ubuntu and Windows.

However, now I’m getting an error when it tries to install psych.

Its saying psych failed to install, checking for yaml.h …no!

So the yaml.h is missing due to not having libyaml (???) installed?

I could probibly try to fix this but I’m going to need to understand  
what’s going on to write my install instructions. Does anyone know what  
this means? I know that when I use rubygems api to install gems, it  
breaks due to a bug in yaml. Installing psych fixes the bug.
