How to run shoes built via gem

This is perhaps a silly question.

My platform is:

Red Hat Enterprise Linux Workstation release 6.3 (Santiago)

# ruby -v
ruby 1.9.3p327 (2012-11-10 revision 37606) [x86_64-linux]

# jruby -v
jruby 1.7.3 (1.9.3p385) 2013-02-21 dac429b on IBM J9 VM
pxa6460sr12-20121025_01 (SR12) [linux-amd64]

I installed shoes using the gem install command. But no matter what I try,
I can't execute shoes.

*# gem install shoes*
/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 eliminate this warning, please install libyaml and reinstall your ruby.
Successfully installed shoes-3.0.1
1 gem installed
Installing ri documentation for shoes-3.0.1...
Installing RDoc documentation for shoes-3.0.1...

*# gem list | grep -i shoes*
/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 eliminate this warning, please install libyaml and reinstall your ruby.
green_shoes (1.1.373)
shoes (3.0.1)
shoes-cucumber (0.0.2)
shoes-mocks (0.0.2)

Can anyone tell me how I can execute shoes, which I installed as a gem?

Thank you

···

--
Ruby Student

Suggest you go here and read: https://github.com/shoes/shoes#readme

···

On Sun, May 19, 2013 at 4:17 PM, Ruby Student <ruby.student@gmail.com> wrote:

This is perhaps a silly question.

My platform is:

Red Hat Enterprise Linux Workstation release 6.3 (Santiago)

# ruby -v
ruby 1.9.3p327 (2012-11-10 revision 37606) [x86_64-linux]

# jruby -v
jruby 1.7.3 (1.9.3p385) 2013-02-21 dac429b on IBM J9 VM
pxa6460sr12-20121025_01 (SR12) [linux-amd64]

I installed shoes using the gem install command. But no matter what I try, I
can't execute shoes.

# gem install shoes
/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 eliminate this warning, please install libyaml and reinstall your ruby.
Successfully installed shoes-3.0.1
1 gem installed
Installing ri documentation for shoes-3.0.1...
Installing RDoc documentation for shoes-3.0.1...

# gem list | grep -i shoes
/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 eliminate this warning, please install libyaml and reinstall your ruby.
green_shoes (1.1.373)
shoes (3.0.1)
shoes-cucumber (0.0.2)
shoes-mocks (0.0.2)

Can anyone tell me how I can execute shoes, which I installed as a gem?

Thank you

--
Ruby Student

Ruby Student wrote in post #1109537:

This is perhaps a silly question.

My platform is:

Red Hat Enterprise Linux Workstation release 6.3 (Santiago)

# ruby -v
ruby 1.9.3p327 (2012-11-10 revision 37606) [x86_64-linux]

# jruby -v
jruby 1.7.3 (1.9.3p385) 2013-02-21 dac429b on IBM J9 VM
pxa6460sr12-20121025_01 (SR12) [linux-amd64]

I installed shoes using the gem install command. But no matter what I
try,
I can't execute shoes.

*# gem install shoes*
/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 eliminate this warning, please install libyaml and reinstall your
ruby.
Successfully installed shoes-3.0.1
1 gem installed
Installing ri documentation for shoes-3.0.1...
Installing RDoc documentation for shoes-3.0.1...

*# gem list | grep -i shoes*
/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 eliminate this warning, please install libyaml and reinstall your
ruby.
green_shoes (1.1.373)
shoes (3.0.1)
shoes-cucumber (0.0.2)
shoes-mocks (0.0.2)

Can anyone tell me how I can execute shoes, which I installed as a gem?

Thank you

Could you please post this also on shoes@librelist.com? I am sure
someone will help you.

Meanwhile, I suggest using green shoes (gem install green_shoes) as
there are some issues with shoes3 as I recall and next release is still
in progress.

regards,
seba

···

--
Posted via http://www.ruby-forum.com/.

hi Ruby Student,

  i hope you can get your Shoes up and running - Shoes is awesome!

  as far as i know, shoes3 doesn't install (and never really did) with
the gem. take a look here:
https://github.com/shoes/shoes/wiki/Building-Shoes-on-Linux for help
with building shoes3 from source.

  as seba mentioned, green_shoes is another great option, and usually
installs with no problems through the gem. i'm trying to make some
sense out of the errors you posted, and i'll certainly get back to you
if i do. seba forwarded this thread to the shoes mailing list as well,
and there should be some folks there who can help out more.

  good luck -

  Shoes on!

  - j

···

--
Posted via http://www.ruby-forum.com/.

Hi Ruby Student,

Umm,... how did you get the error?

Could you try the following and confirm to get the same error?

c:\tmp> echo require "green_shoes"; Shoes.app{} > test.rb

c:\tmp> ruby test.rb

ashbb

···

--
Posted via http://www.ruby-forum.com/.

Hi Seba and team

OK, I went ahead installed green_shoes. When I try to run it, I get this:

/usr/local/bin/gshoes
/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)
from /usr/local/lib/ruby/1.9.1/rubygems/custom_require.rb:55:in `require'
from /usr/local/lib/ruby/1.9.1/rubygems/custom_require.rb:55:in `require'
from /usr/local/lib/ruby/gems/1.9.1/gems/gtk2-1.2.1/lib/gtk2.rb:11:in `<top
(required)>'
from /usr/local/lib/ruby/1.9.1/rubygems/custom_require.rb:55:in `require'
from /usr/local/lib/ruby/1.9.1/rubygems/custom_require.rb:55:in `require'
from
/usr/local/lib/ruby/gems/1.9.1/gems/green_shoes-1.1.374/lib/green_shoes.rb:6:in
`<top (required)>'
from /usr/local/lib/ruby/1.9.1/rubygems/custom_require.rb:55:in `require'
from /usr/local/lib/ruby/1.9.1/rubygems/custom_require.rb:55:in `require'
from
/usr/local/lib/ruby/gems/1.9.1/gems/green_shoes-1.1.374/bin/gshoes:2:in
`<top (required)>'
from /usr/local/bin/gshoes:23:in `load'
from /usr/local/bin/gshoes:23:in `<main>'

Any words on this?

Thank you

···

On Mon, May 20, 2013 at 3:39 PM, Sebastjan H. <lists@ruby-forum.com> wrote:

Ruby Student wrote in post #1109537:
> This is perhaps a silly question.
>
> My platform is:
>
> Red Hat Enterprise Linux Workstation release 6.3 (Santiago)
>
> # ruby -v
> ruby 1.9.3p327 (2012-11-10 revision 37606) [x86_64-linux]
>
> # jruby -v
> jruby 1.7.3 (1.9.3p385) 2013-02-21 dac429b on IBM J9 VM
> pxa6460sr12-20121025_01 (SR12) [linux-amd64]
>
> I installed shoes using the gem install command. But no matter what I
> try,
> I can't execute shoes.
>
> *# gem install shoes*
> /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 eliminate this warning, please install libyaml and reinstall your
> ruby.
> Successfully installed shoes-3.0.1
> 1 gem installed
> Installing ri documentation for shoes-3.0.1...
> Installing RDoc documentation for shoes-3.0.1...
>
> *# gem list | grep -i shoes*
> /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 eliminate this warning, please install libyaml and reinstall your
> ruby.
> green_shoes (1.1.373)
> shoes (3.0.1)
> shoes-cucumber (0.0.2)
> shoes-mocks (0.0.2)
>
> Can anyone tell me how I can execute shoes, which I installed as a gem?
>
> Thank you

Could you please post this also on shoes@librelist.com? I am sure
someone will help you.

Meanwhile, I suggest using green shoes (gem install green_shoes) as
there are some issues with shoes3 as I recall and next release is still
in progress.

regards,
seba

--
Posted via http://www.ruby-forum.com/.

--
Ruby Student

Hi,

can you run this and let me know if it works?

···

--------------------------------
require 'green_shoes'

Shoes.app do

para "Can you see me?"

end

--------------------------------

regards
seba
love shoes!

--
Posted via http://www.ruby-forum.com/.

Hi Asbb,

I tried your suggestion and this is the outcome:

tmp]# vi test.rb

[root@oc5204722173 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 `<top
(required)>': undefined method `prepend_environment_path' for GLib:Module
(NoMethodError)
    from /usr/local/lib/ruby/1.9.1/rubygems/custom_require.rb:55:in
`require'
    from /usr/local/lib/ruby/1.9.1/rubygems/custom_require.rb:55:in
`require'
    from /usr/local/lib/ruby/gems/1.9.1/gems/gtk2-1.2.1/lib/gtk2.rb:11:in
`<top (required)>'
    from /usr/local/lib/ruby/1.9.1/rubygems/custom_require.rb:55:in
`require'
    from /usr/local/lib/ruby/1.9.1/rubygems/custom_require.rb:55:in
`require'
    from
/usr/local/lib/ruby/gems/1.9.1/gems/green_shoes-1.1.374/lib/green_shoes.rb:6:in
`<top (required)>'
    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 `<main>'

Thank you for your time

···

On Wed, May 22, 2013 at 7:14 AM, ashbb shoeser <lists@ruby-forum.com> wrote:

Hi Ruby Student,

Umm,... how did you get the error?

Could you try the following and confirm to get the same error?

c:\tmp> echo require "green_shoes"; Shoes.app{} > test.rb

c:\tmp> ruby test.rb

ashbb

--
Posted via http://www.ruby-forum.com/.

--
Ruby Student

what exactly are you running?
I've linked this to librelist so others can have a look.
regards
seba

···

--
Posted via http://www.ruby-forum.com/.

Found this:

http://www.ruby-forum.com/topic/4413004

regards
seba

···

--
Posted via http://www.ruby-forum.com/.

Hi,

In <CA+udOVO3pxnvgwCH_k5y-685vcyj9S2N2o+p7btsCAWq04O6fw@mail.gmail.com>
  "Re: How to run shoes built via gem" on Wed, 22 May 2013 21:46:38 +0900,

[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)

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,

···

Ruby Student <ruby.student@gmail.com> wrote:
--
kou

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 `<top (required)>':
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 `<top (required)>':
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 `<top (required)>':
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 `<top (required)>':
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 `<top
(required)>': 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
`<top (required)>'
    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
`<top (required)>'
    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 `<main>'
*
*
*Again, thank you for your help.

*

On Wed, May 22, 2013 at 8:50 AM, Kouhei Sutou <kou@cozmixng.org> wrote:

Hi,

In <CA+udOVO3pxnvgwCH_k5y-685vcyj9S2N2o+p7btsCAWq04O6fw@mail.gmail.com>
  "Re: How to run shoes built via gem" on Wed, 22 May 2013 21:46:38 +0900,
  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' 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

Hi,

In <CA+udOVMotQDwQCn6UgKqNEZq3rNjHjSLrdV=oTD8Nfa-WP0zuQ@mail.gmail.com>
  "Re: How to run shoes built via gem" on Wed, 22 May 2013 22:32:29 +0900,

PRIOR to gem clean

tmp]# gem list glib2

....

glib2 (2.0.0, 1.2.6, 1.2.1)

...

[root@oc5204722173 tmp]# gem list gtk2

...

gtk2 (1.2.1)

Your gtk2 gem is old. You need "gtk2 (2.0.0)" because your
latest glib2 gem is 2.0.0. Try "gem install gtk2".

Thanks,

···

Ruby Student <ruby.student@gmail.com> wrote:
--
kou

Alright! Success at last!
I upgraded gtk2 and now I got my Green Shoes on.

Thank you guys for your help. I truly appreciate your time.

···

On Wed, May 22, 2013 at 9:48 AM, Kouhei Sutou <kou@cozmixng.org> wrote:

Hi,

In <CA+udOVMotQDwQCn6UgKqNEZq3rNjHjSLrdV=oTD8Nfa-WP0zuQ@mail.gmail.com>
  "Re: How to run shoes built via gem" on Wed, 22 May 2013 22:32:29 +0900,
  Ruby Student <ruby.student@gmail.com> wrote:

> PRIOR to gem clean
>
> tmp]# gem list glib2
....
> glib2 (2.0.0, 1.2.6, 1.2.1)
...
> [root@oc5204722173 tmp]# gem list gtk2
...
> gtk2 (1.2.1)

Your gtk2 gem is old. You need "gtk2 (2.0.0)" because your
latest glib2 gem is 2.0.0. Try "gem install gtk2".

Thanks,
--
kou

--
Ruby Student