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

Suggest you go here and read: GitHub - shoes/shoes-deprecated: Former repo for Shoes... see README for up to date locations!

Ruby S. 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 [email protected]? 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

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 methodprepend_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:inrequire’
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:inrequire’
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:inrequire’
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:inload’
from /usr/local/bin/gshoes:23:in `’

Any words on this?

Thank you

hi Ruby S.,

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:
Building Shoes on Linux · shoes/shoes-deprecated Wiki · GitHub 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

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!

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

Hi Ruby S.,

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

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 methodprepend_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:inrequire’
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:inrequire’
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:inrescue
in require’
from /usr/local/lib/ruby/1.9.1/rubygems/custom_require.rb:35:in
require' from test.rb:1:in

Thank you for your time

Found this:

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

regards
seba

Hi,

In [email protected]
“Re: How to run shoes built via gem” on Wed, 22 May 2013 21:46:38
+0900,
Ruby S. [email protected] 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,

Hi,

In CA+udOVMotQDwQCn6UgKqNEZq3rNjHjSLrdV=removed_email_address@domain.invalid
“Re: How to run shoes built via gem” on Wed, 22 May 2013 22:32:29
+0900,
Ruby S. [email protected] 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,

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.

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 methodprepend_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:inrequire’
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:inrequire’
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:inrescue
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.