TODO - add my notes
TODO - absorb
Software > Programming languages[doesn't exist] > Ruby >
(on Wikipedia)
http://shoesrb.com/
A GUI toolkit for Ruby.
Notes ∞
If Shoes gives issues
- use Ruby 1.9.1
-
install from https://github.com/shoes/shoes-deprecated/tree/3.0.0
Installation and Usage ∞
[FAILED] 2011-08-25 ∞
Unity Linux, 2011-08-25, before the repository merger with Mandriva.
That this stuff was done after I had my success on Ubuntu, so lots of fun internal oddities could have been going on. But this was what I did to get it working.
I did not rake
, I used the old compilation.
\smart install \ git-core \ libcairo-devel \ libpixman-1-devel \ libpango1.0-devel \ libungif4-devel \ libjpeg62 \ libjpeg-devel \ libgtk+2.0-devel \ vlc \ libvlc-devel \ libportaudio-devel \ libopenssl0.9.8 \ libsqlite3-devel \ libcurl-devel \ curl \ \cd ~ \git clone git://github.com/shoes/shoes.git \cd shoes #\rake ~/shoes/dist/shoes #(then pick the shoes ruby script to run)
libcurl4-openssl-devel
wasn't found, trying libopenssl-devel
\makeself
wasn't found. is that https://makeself.io/?
It works, but I get these warnings:
/mnt/ssd/projects/ruby/live/shoes/shoes/dist/shoes-bin: /usr/lib/libldap_r-2.4.so.2: no version information available (required by /mnt/ssd/projects/ruby/live/shoes/shoes/dist/libcurl.so.4) /mnt/ssd/projects/ruby/live/shoes/shoes/dist/shoes-bin: /usr/lib/liblber-2.4.so.2: no version information available (required by /mnt/ssd/projects/ruby/live/shoes/shoes/dist/libcurl.so.4) /mnt/ssd/projects/ruby/live/shoes/shoes/dist/shoes-bin: /usr/lib/libcrypto.so.0.9.8: no version information available (required by /mnt/ssd/projects/ruby/live/shoes/shoes/dist/libcurl.so.4) /mnt/ssd/projects/ruby/live/shoes/shoes/dist/shoes-bin: /usr/lib/libssl.so.0.9.8: no version information available (required by /mnt/ssd/projects/ruby/live/shoes/shoes/dist/libcurl.so.4)
[SUCCESS] Ubuntu? ∞
This was probably Ubuntu
My success was when I first Ruby Version Manager with Ruby 1.9.2 and then did:
\sudo \apt-get install \ git-core \ libcairo2-dev \ libpixman-1-dev \ libpango1.0-dev \ libungif4-dev \ libjpeg62-dev \ libgtk2.0-dev \ vlc \ libvlc-dev \ portaudio19-dev \ libsqlite3-dev \ libcurl4-openssl-dev \ makeself \ curl \ \cd ~ \git clone git://github.com/shoes/shoes.git \cd shoes \rake ~/shoes/dist/shoes #(then pick the shoes ruby script to run)
Shoes uses the .rb
or the .shy
extensions
Note that this is cloning the very frontier of shoes development, and may be buggy. I don't have an example script on hand to give you the 3.0.0 release from git.
Example scripts ∞
Text:
Shoes.app do para( "Hello, World!" ) end
A button:
Shoes.app :width => 300, :height => 200 do button("Hello, World!") { alert("Hi!") } end
More examples are found in the Shoes tutorial.
Compiling/Packaging
To compile a standalone program, use the GUI given from shoes -p
.
Previous failed installation ∞
My initial failed attempt:
\sudo \apt-get install \ git-core \ libcairo2-dev \ libpixman-1-dev \ libpango1.0-dev \ libungif4-dev \ libjpeg62-dev \ libgtk2.0-dev \ vlc \ libvlc-dev \ portaudio19-dev \ libsqlite3-dev \ libcurl4-openssl-dev \ ruby1.8-dev \ rake \ rubygems \ makeself \ curl \git clone git://github.com/shoes/shoes.git \cd shoes \rake VIDEO=0
Other failures:
\sudo \gem install extensions
I believe these issues were all with Ruby 1.8.7.
Last updated 2019-12-05 at 19:30:20