2012-03-29 95 views
3

我已經成功安裝了鞋子,但是當我運行命令啓動鞋子時./dist/shoes我收到此消息bash: ./dist/shoes: No such file or directory 我正在運行Ubuntu 11.10並使用紅寶石1.9.3 rvm。 我按照這個網頁https://github.com/shoes/shoes/wiki/Building-Shoes-on-Linux跑步鞋紅寶石1.9.3問題

上的說明安裝鞋,當我運行耙

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) 

回答

1

我重新安裝了紅寶石1.9.3 rvm和鞋子。這解決了這個問題,現在鞋子可以工作。

2

你必須在你的安裝目錄,當你發出一個命令,我得到這個錯誤。

可執行文件shoes是否存在於該路徑?它的可執行位已設置?嘗試使用./dist/shoes <yourapp>

基於它似乎libgif-dev未安裝(你缺少lib_gif.h這是包的一部分。)

沒有與必備軟件包的Ubuntu手冊中的線路輸出,安裝這些,然後重試安裝鞋子。

+0

./dist/shoes在shoes目錄中不存在 – 2012-03-30 06:41:08

+0

然後你的安裝不成功:-)你能重新安裝它並粘貼一些輸出嗎?你安裝了哪些鞋?紅鞋(http://shoes.heroku.com/)或綠鞋(https://github.com/ashbb/green_shoes)? – karatedog 2012-03-30 08:42:17

+0

我安裝了紅鞋 – 2012-03-30 14:11:02