I have installed shoes to develop GUI applications but when I try and
run my file.rb I get this error:
no such file to load – rubygems
the command I used was: shoes myfile.rb
I am using ruby 1.9.3.
and my os is ubuntu 11.10.
also I’m using rvm.
I have installed shoes to develop GUI applications but when I try and
run my file.rb I get this error:
no such file to load – rubygems
the command I used was: shoes myfile.rb
I am using ruby 1.9.3.
and my os is ubuntu 11.10.
also I’m using rvm.
How did you install shoes?
Steve K. wrote in post #1054001:
How did you install shoes?
I’ve tried lots of ways
downloaded the file from the website, rvmsudo apt-get install shoes and
from the Ubuntu software center.
I also tried using a different versions of ruby 1.9.2 and 1.8.7
the way it’s installed at the moment is rvmsudo apt-get install shoes.
This error happens when you apt-get install shoes; it has an
incredibly old version, and we can’t upgrade it.
Please make sure to uninstall the apt version, because it will NOT
work.
The best way is to install from source. The linux packages on the
site will work most of the time, but we’re still working out some
kinks. Building from source always works.
Steve K. wrote in post #1054006:
This error happens when you apt-get install shoes; it has an
incredibly old version, and we can’t upgrade it.Please make sure to uninstall the apt version, because it will NOT
work.The best way is to install from source. The linux packages on the
site will work most of the time, but we’re still working out some
kinks. Building from source always works.
Building Shoes on Linux · shoes/shoes-deprecated Wiki · GitHub
I have installed shoes and i have a shoes folder in my documents but how
do I now run shoes I’m a bit confused.
Steve K. wrote in post #1054026:
If you’ve built it successfully, shoes will be in the dist directory.
cd into your shoes directory, then run ./dist/shoes to open Shoes.
I ran the command in the terminal but I get this:
Command: “user@user:~/shoes$ ./dist/shoes”
bash: ./dist/shoes: No such file or directory
If you’ve built it successfully, shoes will be in the dist directory.
cd into your shoes directory, then run ./dist/shoes to open Shoes.
Did you compile Shoes with ‘rake’ first?
Steve K. wrote in post #1054057:
Did you compile Shoes with ‘rake’ first?
I tried but I get this
No such file or directory - curl-config --cflags
I installed cURL but i now get this error when I run rake
gcc -I. -c -o shoes/world.o -Wall -I/usr/include -pthread
-I/usr/include/cairo -I/usr/include/glib-2.0
-I/usr/lib/i386-linux-gnu/glib-2.0/include -I/usr/include/pixman-1
-I/usr/include/freetype2 -I/usr/include/libpng12 -pthread
-I/usr/include/pango-1.0 -I/usr/include/glib-2.0
-I/usr/lib/i386-linux-gnu/glib-2.0/include
-I/home/user/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/1.9.1/i686-linux
-I/home/user/.rvm/rubies/ruby-1.9.3-p125/include/ruby-1.9.1
-I/home/user/.rvm/rubies/ruby-1.9.3-p125/include/ruby-1.9.1/i686-linux
-O -DRUBY_1_9 -DSHOES_GTK -fPIC -pthread -I/usr/include/gtk-2.0
-I/usr/lib/i386-linux-gnu/gtk-2.0/include -I/usr/include/atk-1.0
-I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0
-I/usr/include/pango-1.0 -I/usr/include/gio-unix-2.0/
-I/usr/include/glib-2.0 -I/usr/lib/i386-linux-gnu/glib-2.0/include
-I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12
shoes/world.c
shoes/world.c: In function ‘shoes_ruby_embed’:
shoes/world.c:92:11: warning: unused variable ‘sysinit_argv’
[-Wunused-variable]
gcc -I. -c -o shoes/image.o -Wall -I/usr/include -pthread
-I/usr/include/cairo -I/usr/include/glib-2.0
-I/usr/lib/i386-linux-gnu/glib-2.0/include -I/usr/include/pixman-1
-I/usr/include/freetype2 -I/usr/include/libpng12 -pthread
-I/usr/include/pango-1.0 -I/usr/include/glib-2.0
-I/usr/lib/i386-linux-gnu/glib-2.0/include
-I/home/user/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/1.9.1/i686-linux
-I/home/user/.rvm/rubies/ruby-1.9.3-p125/include/ruby-1.9.1
-I/home/user/.rvm/rubies/ruby-1.9.3-p125/include/ruby-1.9.1/i686-linux
-O -DRUBY_1_9 -DSHOES_GTK -fPIC -pthread -I/usr/include/gtk-2.0
-I/usr/lib/i386-linux-gnu/gtk-2.0/include -I/usr/include/atk-1.0
-I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0
-I/usr/include/pango-1.0 -I/usr/include/gio-unix-2.0/
-I/usr/include/glib-2.0 -I/usr/lib/i386-linux-gnu/glib-2.0/include
-I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12
shoes/image.c
shoes/image.c:31:21: fatal error: gif_lib.h: No such file or directory
compilation terminated.
rake aborted!
Command failed with status (1): [gcc -I. -c -o shoes/image.o -Wall
-I/usr/i…]
Tasks: TOP => default => build => linux:build => old_build => build_os
=> dist/shoes => dist/libshoes.so => shoes/image.o
(See full trace by running task with --trace)
Wow. I’ve never seen this error. Do you have cURL installed?
I reinstalled shoes again and rvm ruby 1.9.3 and shoes now works. Thanks
for your help Steve K…
Woo! Great. Glad you’ve got it going. Those dependencies are hard.
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs