目前我正在尝试在 Haiku R1 aplha 4 OS 上安装 rails。
我必须警告你,我对俳句和 ruby 也很陌生。
我没有找到有类似问题的帖子,如果我错了并且这样的主题已经存在,我非常抱歉。
步骤:
输出:
Fetching ...
Fetching bla bla bla
Fetching: json-1.7.6.gem (100%)
Building native extensions. This could take a while...
ERROR: Error installing rails: ERROR: Failed to build gem native extension.
/boot/common/bin/ruby extconf.rb
creating Makefile
make gcc -I. -I/boot/common/include/ruby-1.9.1/i586-haiku -I/boot/common/include/ruby-> 1.9.1/ruby/backward -I/boot/common/include/ruby-1.9.1 -I. -DJSON_GENERATOR -O2 -g -Wall -Wno-parentheses -O3 -Wall -O0 -ggdb -o generator.o -c generator.c
ld -shared -o generator.so generator.o -L. -L/boot/common/lib -Wl,-R/boot/common/lib -L. -L/boot/develop/lib/x86 -lroot -L/boot/common/lib
ld: unrecognized option '-Wl,-R/boot/common/lib' ld: use the --help option for usage information
make: *** [generator.so] Error 1
我在这里调查过。 -Wl 选项用于间接调用链接器(例如从 gcc 调用)。
ld 没有 -Wl,所以错误似乎很明显 - 我们不需要 -Wl 在 ld 调用中。
然后我问自己“好吧,你有可能的解决方案 - 只是删除这个 -Wl,但是这个脚本位于哪里?”我不知道在哪里看=(
另外问题可能不是那么明显,我应该做一些复杂的事情(包括仪式舞蹈)
所以,我发现我需要帮助,否则我会一辈子坐在显示器前,聪明的脸。
请问,有什么建议吗?我哪里错了?
最佳答案
关于ruby-on-rails - 安装 rails 时出错 : Error building native extension (-Wl insilde ld call),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14121917/