如何在 x64 Linux 上安装 Ruby Shoes?

发布于 2024-07-12 02:11:57 字数 233 浏览 11 评论 0原文

我最近发现了 Ruby Shoes,这对于像我这样的初学者来说听起来相当有用。 唯一的问题是我的笔记本电脑是 x64,而唯一的 Linux 软件包是 i686。 无论如何,我尝试了它,但它对我不起作用,我一直收到错误。 当然,我没想到它会起作用,但是还有办法在 x64 Linux 上获取 Shoes 吗? 谢谢!

I recently discovered Ruby Shoes, which sounds rather useful for a beginner like me. The only the problem is that my laptop is x64, while the only Linux package is i686. I tried it anyway and it didn't work for me, I kept getting an error. I didn't expect it to work, of course, but is there still a way to get Shoes on x64 Linux? Thanks!

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

和影子一齐双人舞 2024-07-19 02:11:57

似乎没有适用于 Linux 的 64 位软件包,因此如果您的发行版没有打包 Shoes,您需要自己编译它。 这并不像听起来那么可怕!

首先,确保您拥有正确的开发库:

Shoes 依赖 Cairo、Pango、libungif、libjpeg、GTK+ 2.0 和 Ruby,
以及 GCC 及其链接器。

要在 Ubuntu 或 Debian 上安装所有这些库:

# aptitude 安装 libcairo2-dev libpixman-1-dev libpango1.0-dev \
libungif4-dev libjpeg62-dev libgtk2.0-dev vlc libvlc-dev \
libsqlite3-dev libcurl4-openssl-dev ruby​​1.8-dev rake

(在 8.10 之前的 Ubuntu 上,实际上您需要 libvlc0-dev。)

要在 Fedora 上安装这些库:

# yum install -y giflib-devel cairo-devel libpixman-devel \
pango-devel libjpeg-devel gtk2-devel sqlite-devel vlc-devel \
libcurl-devel ruby​​-devel

如果我知道你正在使用什么发行版,我可以得到更具体的信息。 准备就绪后,从 shoooes.net 获取 tarball 并解压。

然后,进入目录并运行

make

这将构建项目。 假设此操作成功完成,请运行

make install

如果您需要进一步帮助编译此内容,请考虑加入邮件列表< /a>

  • 发送消息至 shoes AT code.whytheluckystiff.net
  • 抄送:why AT Whytheluckystiff.net

或 irc.freenode.net 上的 #shoes

There doesn't appear to be a 64-bit package for Linux, so if your distro doesn't package shoes you'll need to compile it yourself. This isn't as scary as it sounds!

First, make sure you have the proper development libraries:

Shoes relies on Cairo, Pango, libungif, libjpeg, GTK+ 2.0, and Ruby,
as well as GCC and its linker.

To install all of these libraries on Ubuntu or Debian:

# aptitude install libcairo2-dev libpixman-1-dev libpango1.0-dev \
libungif4-dev libjpeg62-dev libgtk2.0-dev vlc libvlc-dev \
libsqlite3-dev libcurl4-openssl-dev ruby1.8-dev rake

(On Ubuntu older than 8.10, actually you'll need libvlc0-dev.)

To install these libraries on Fedora:

# yum install -y giflib-devel cairo-devel libpixman-devel \
pango-devel libjpeg-devel gtk2-devel sqlite-devel vlc-devel \
libcurl-devel ruby-devel

I can get more specific if I knew what distribution you're using. Once you're ready, grab the tarball from shoooes.net and unpack it.

Then, enter the directory and run

make

this will build the project. Assuming this completes successfully, run

make install

If you need further help compiling this, consider joining the mailing list

  • Send a message to shoes AT code.whytheluckystiff.net
  • Cc: why AT whytheluckystiff.net

or #shoes on irc.freenode.net

残龙傲雪 2024-07-19 02:11:57

我正在使用 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'.

另外,我查看了存储库,但 Ruby Shoes 不在其中。

I'm using Fedora Core 10. Here's what I get when I attempt building it.

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

Alternatively...

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

Also, I've looked in the repo's, and Ruby Shoes isn't in it.

多情出卖 2024-07-19 02:11:57

我尝试了上面的说明。 我

[nathan@ebisu ~/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。

I tried the instructions above. I got

[nathan@ebisu ~/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

Obviously I do have libjpeg installed.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文