gpt4 book ai didi

ruby - 跑鞋ruby 1.9.3问题

转载 作者:数据小太阳 更新时间:2023-10-29 08:01:16 26 4
gpt4 key购买 nike

我已经成功安装了鞋子,但是当我运行命令启动鞋子./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)

最佳答案

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

可执行文件 shoes存在于那条路上?它的可执行位设置了吗?试试 ./dist/shoes <yourapp> .

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

手册中有一行包含 Ubuntu 的先决条件包,安装它们,然后重试安装鞋。

关于ruby - 跑鞋ruby 1.9.3问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9933170/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com