【发布时间】:2012-05-14 23:21:33
【问题描述】:
我不断收到这些错误:
运行“make”时出错,请阅读 /Users/jason*/.rvm/log/ruby-1.9.2-p320/make.log 运行 make 时出现错误。停止安装。 ls: /Users/jason*/.rvm/rubies/*/bin/ruby: 没有那个文件或目录
我已尝试安装 readline 并确保我拥有最新的 GCC 版本。 这是错误日志。
/usr/bin/gcc-4.2 -dynamic -bundle -o ../../../.ext/x86_64-darwin11.3.0/racc/cparse.bundle cparse.o -L. -L../../.. -L/Users/jasonvdm/.rvm/usr/lib -L. -L/usr/local/lib -Wl,-undefined,dynamic_lookup -Wl,-multiply_defined,suppress -Wl,-flat_namespace -lruby.1.9.1 -lpthread -ldl -lobjc
compiling readline
/usr/bin/gcc-4.2 -I. -I../../.ext/include/x86_64-darwin11.3.0 -I../.././include -I../.././ext/readline -DRUBY_EXTCONF_H=\"extconf.h\" -I/Users/jasonvdm/.rvm/usr/include -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -fno-common -O3 -ggdb -Wextra -Wno-unused-parameter -Wno-parentheses -Wpointer-arith -Wwrite-strings -Wno-missing-field-initializers -Wshorten-64-to-32 -Wno-long-long -fno-common -pipe -o readline.o -c readline.c
readline.c: In function ‘username_completion_proc_call’:
readline.c:1386: error: ‘username_completion_function’ undeclared (first use in this function)
readline.c:1386: error: (Each undeclared identifier is reported only once
readline.c:1386: error: for each function it appears in.)
make[1]: *** [readline.o] Error 1
make: *** [mkmain.sh] Error 1
【问题讨论】:
-
你安装了 Xcode 和命令行工具吗?
-
是的,我有 Xcode 和您注册为开发人员后获得的命令行工具。
-
啊!有用!谢谢!
-
我正在尝试再次安装以工作,这次是 1.9.2p180。你的修复没有出现,不知道为什么。帮忙?
标签: ruby-on-rails ruby error-handling makefile installation