3

我已经成功安装了鞋子,但是当我运行启动鞋子的命令时,./dist/shoes 我收到这条消息bash: ./dist/shoes: No such file or directory ,我正在运行 Ubuntu 11.10 并使用 ruby​​ 1.9.3 rvm。我按照此网页https://github.com/shoes/shoes/wiki/Building-Shoes-on-Linux上的说明安装了鞋子

运行 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)
4

2 回答 2

2

发出该命令时,您必须位于安装目录中。

可执行文件是否shoes存在于该路径中?它的可执行位设置了吗?试试看./dist/shoes <yourapp>

根据输出,似乎libgif-dev未安装(您缺少 lib_gif.h ,它该软件包的一部分。)

手册中有一行包含 Ubuntu 的必备软件包,安装这些软件包,然后重试安装鞋子。

于 2012-03-30T00:09:13.343 回答
1

我重新安装了 ruby​​ 1.9.3 rvm 和鞋子。这解决了问题,现在鞋子可以工作了。

于 2012-03-30T21:22:36.780 回答