2009-01-15 71 views
2

我最近發現Ruby Shoes,這對於像我這樣的初學者來說聽起來很有用。唯一的問題是我的筆記本電腦是x64,而唯一的Linux套件是i686。無論如何,我嘗試過它,它不適合我,我不斷收到錯誤。當然,我沒有想到它會起作用,但是仍然有辦法在x64 Linux上使用Shoes?謝謝!如何在x64 Linux上安裝Ruby Shoes?

回答

3

Linux似乎沒有64位軟件包,所以如果你的發行版不包裝鞋,你需要自己編譯它。這聽起來並不可怕!

首先,確保你有適當的開發庫:

鞋依賴於開羅,攀高,libungif,可以的libjpeg,GTK + 2.0和Ruby, 以及海灣合作委員會及其連接。

要安裝所有在Ubuntu或Debian的這些庫:

#安裝資質的libcairo2-dev的的libpixman-1-dev的libpango1.0-dev的\ libungif4-dev的中的libjpeg62-dev的libgtk2.0-dev的VLC libvlc -dev \ libsqlite3-dev的libcurl4-的OpenSSL開發ruby1.8的-dev的耙

(在Ubuntu年齡大於8.10,實際上你需要libvlc0-dev的。)

在Fedora安裝這些庫:

#百勝安裝-y giflib-devel的開羅-devel的的libpixman-devel的\ 攀高-devel的的libjpeg-devel的GTK2-devel的sqlite的-devel的VLC-devel的\ 的libcurl-devel的紅寶石devel的

我可以得到更多的具體如果我知道你使用的是什麼發行版。準備好之後,從shoooes.net獲取壓縮包並將其解壓。

然後,進入該目錄,並運行

make 

這將構建項目。假設這個成功完成,運行

make install 

如果你需要編譯這個進一步的幫助,可考慮加入mailing list

  • 將消息發送給鞋code.whytheluckystiff.net
  • 抄送:爲何AT爲什麼AT爲什麼要使用這種方法

或irc.freenode.net上的#shoes

0

我使用的是Fedora Core 10.這是我嘗試構建它時得到的結果。

$ ~/shoes-0.r1134 
bash: /home/Alex/shoes-0.r1134: is a directory 
$ make 
make: *** No targets specified and no makefile found. Stop 

或者......

$ make shoes-0.r1134 
make: Nothing to be done for `shoes-0.r1134'. 

另外,我看了看回購的,和紅寶石鞋是不是在裏面。

+0

看起來你是從目錄外面調用make;在調用make時,您必須與Makefile位於相同的目錄中。 – 2009-01-16 03:27:48

0

我嘗試了上面的說明。我得到了

[[email protected] ~/tmp/shoes-0.r1134] make 
build options: shoes raisins (0.r1134) [x86_64-linux] 
CC  = cc 
RUBY  = /usr 
OPTIONS = 
CC shoes/app.c 
CC shoes/canvas.c 
CC shoes/effects.c 
CC shoes/image.c 
CC shoes/internal.c 
CC shoes/ruby.c 
CC shoes/world.c 
CC shoes/native/gtk.c 
CC shoes/http/curl.c 
CC -o dist/libshoes.so 
/usr/lib64/gcc/x86_64-suse-linux/4.3/../../../../x86_64-suse-linux/bin/ld: skipping incompatible /usr/lib/libjpeg.so when searching for -ljpeg 
/usr/lib64/gcc/x86_64-suse-linux/4.3/../../../../x86_64-suse-linux/bin/ld: skipping incompatible /usr/lib/libjpeg.a when searching for -ljpeg 
CC bin/main.c 
CC -o dist/shoes-bin 
/usr/lib64/gcc/x86_64-suse-linux/4.3/../../../../x86_64-suse-linux/bin/ld: skipping incompatible /usr/lib/libjpeg.so when searching for -ljpeg 
/usr/lib64/gcc/x86_64-suse-linux/4.3/../../../../x86_64-suse-linux/bin/ld: skipping incompatible /usr/lib/libjpeg.a when searching for -ljpeg 
cp: cannot stat `/usr/lib/libruby.so': No such file or directory 
make: *** [dist/shoes.launch] Error 1 

顯然我確實安裝了libjpeg。