From: Ruby Student Date: 2013-05-22T22:32:29+09:00 Subject: Re: How to run shoes built via gem --047d7bea3e16ca5bee04dd4e9878 Content-Type: text/plain; charset=ISO-8859-1 OK. I followed your instructions and this is what I got: PRIOR to *gem clean * * tmp]# gem list glib2 /usr/local/lib/ruby/1.9.1/yaml.rb:56:in `': It seems your ruby installation is missing psych (for YAML output). To eliminate this warning, please install libyaml and reinstall your ruby. *** LOCAL GEMS *** glib2 (2.0.0, 1.2.6, 1.2.1) [root@oc5204722173 tmp]# gem list gtk2 /usr/local/lib/ruby/1.9.1/yaml.rb:56:in `': It seems your ruby installation is missing psych (for YAML output). To eliminate this warning, please install libyaml and reinstall your ruby. *** LOCAL GEMS *** gtk2 (1.2.1) * AFTER *gem clean* * tmp]# gem list glib2 /usr/local/lib/ruby/1.9.1/yaml.rb:56:in `': It seems your ruby installation is missing psych (for YAML output). To eliminate this warning, please install libyaml and reinstall your ruby. *** LOCAL GEMS *** glib2 (2.0.0) [root@oc5204722173 tmp]# gem list gtk2 /usr/local/lib/ruby/1.9.1/yaml.rb:56:in `': It seems your ruby installation is missing psych (for YAML output). To eliminate this warning, please install libyaml and reinstall your ruby. *** LOCAL GEMS *** gtk2 (1.2.1) * I then tried the test.rb again: tmp]# cat test.rb require "green_shoes" Shoes.app{} [root@oc5204722173 tmp]# ruby test.rb /usr/local/lib/ruby/gems/1.9.1/gems/gtk2-1.2.1/lib/gtk2/base.rb:20:in `': undefined method `prepend_environment_path' for GLib:Module (NoMethodError) from /usr/local/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require' from /usr/local/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require' from /usr/local/lib/ruby/gems/1.9.1/gems/gtk2-1.2.1/lib/gtk2.rb:11:in `' from /usr/local/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require' from /usr/local/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require' from /usr/local/lib/ruby/gems/1.9.1/gems/green_shoes-1.1.374/lib/green_shoes.rb:6:in `' from /usr/local/lib/ruby/1.9.1/rubygems/custom_require.rb:60:in `require' from /usr/local/lib/ruby/1.9.1/rubygems/custom_require.rb:60:in `rescue in require' from /usr/local/lib/ruby/1.9.1/rubygems/custom_require.rb:35:in `require' from test.rb:1:in `
' * * *Again, thank you for your help. * On Wed, May 22, 2013 at 8:50 AM, Kouhei Sutou wrote: > Hi, > > In > "Re: How to run shoes built via gem" on Wed, 22 May 2013 21:46:38 +0900, > Ruby Student wrote: > > > [root@oc5204722173 tmp]# ruby test.rb > > /usr/local/lib/ruby/gems/1.9.1/gems/gtk2-1.2.1/lib/gtk2/base.rb:20:in > ` > (required)>': undefined method `prepend_environment_path' for GLib:Module > > (NoMethodError) > > It seems that you use different version of glib2 gem and > gtk2 gem. Could you show the output of the following > commands? > > # gem list glib2 > # gem list gtk2 > > "gem clean" may solve your problem. > > > Thanks, > -- > kou > > -- Ruby Student --047d7bea3e16ca5bee04dd4e9878 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
OK. I followed your instructions and this i= s what I got:

PRIOR to gem clean

tmp]# gem list glib2
/usr/lo= cal/lib/ruby/1.9.1/yaml.rb:56:in `<top (required)>':
It seems your ruby installation is missing psych (for YAML output).
To e= liminate this warning, please install libyaml and reinstall your ruby.
<= br>*** LOCAL GEMS ***

glib2 (2.0.0, 1.2.6, 1.2.1)
=A0
[root@oc= 5204722173 tmp]# gem list gtk2
/usr/local/lib/ruby/1.9.1/yaml.rb:56:in `<top (required)>':
It= seems your ruby installation is missing psych (for YAML output).
To eli= minate this warning, please install libyaml and reinstall your ruby.

*** LOCAL GEMS ***

gtk2 (1.2.1)


AFTER gem clean

tmp]# gem list gli= b2
/usr/local/lib/ruby/1.9.1/yaml.rb:56:in `<top (required)>':=
It seems your ruby installation is missing psych (for YAML output).
To e= liminate this warning, please install libyaml and reinstall your ruby.
<= br>*** LOCAL GEMS ***

glib2 (2.0.0)
[root@oc5204722173 tmp]# gem = list gtk2
/usr/local/lib/ruby/1.9.1/yaml.rb:56:in `<top (required)>':
It= seems your ruby installation is missing psych (for YAML output).
To eli= minate this warning, please install libyaml and reinstall your ruby.

*** LOCAL GEMS ***

gtk2 (1.2.1)


I then= tried the test.rb again:

tmp]# cat test.rb
require "green_s= hoes"
Shoes.app{}

[root@oc5204722173 tmp]# ruby test.rb

/usr/local/lib/ruby/gems/1.9.1/gems/gtk2-1.2.1/lib/gtk2/base.rb:20:in `= <top (required)>': undefined method `prepend_environment_path'= ; for GLib:Module (NoMethodError)
=A0=A0=A0 from /usr/local/lib/ruby/1.9= .1/rubygems/custom_require.rb:36:in `require'
=A0=A0=A0 from /usr/local/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `= require'
=A0=A0=A0 from /usr/local/lib/ruby/gems/1.9.1/gems/gtk2-1.2= .1/lib/gtk2.rb:11:in `<top (required)>'
=A0=A0=A0 from /usr/lo= cal/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
=A0=A0=A0 from /usr/local/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `= require'
=A0=A0=A0 from /usr/local/lib/ruby/gems/1.9.1/gems/green_sh= oes-1.1.374/lib/green_shoes.rb:6:in `<top (required)>'
=A0=A0= =A0 from /usr/local/lib/ruby/1.9.1/rubygems/custom_require.rb:60:in `requir= e'
=A0=A0=A0 from /usr/local/lib/ruby/1.9.1/rubygems/custom_require.rb:60:in `= rescue in require'
=A0=A0=A0 from /usr/local/lib/ruby/1.9.1/rubygems= /custom_require.rb:35:in `require'
=A0=A0=A0 from test.rb:1:in `<= main>'

Again, thank you for your help.

=


On Wed, May 22, 2013 at 8:50 AM, Kouhei Sutou &l= t;kou@cozmixng.org> wrote:
Hi,

In <
CA+udOVO3pxnvgwCH_k5y-685vcyj9S2N2o+p7btsCAWq04O6fw@m= ail.gmail.com>
=A0 "Re: How to run shoes built via gem" on Wed, 22 May 2013 21:4= 6:38 +0900,
=A0 Ruby Student <ruby.student@gmail.com> wrote:

> [root@oc5204722173 tmp]# ruby test.rb
> /usr/local/lib/ruby/gems/1.9.1/gems/gtk2-1.2.1/lib/gtk2/base.rb:20:in = `<top
> (required)>': undefined method `prepend_environment_path' f= or GLib:Module
> (NoMethodError)

It seems that you use different version of glib2 gem and
gtk2 gem. Could you show the output of the following
commands?

=A0 # gem list glib2
=A0 # gem list gtk2

"gem clean" may solve your problem.


Thanks,
--
kou




--
Ruby Student
--047d7bea3e16ca5bee04dd4e9878--