我一直在关注这里的指南:http: //spontaneousderivation.com/2012/09/30/rails-3-2-on-a-shared-dreamhost-server/ 以运行 rails 3.2 和 ruby 1.9.3一个dreamhost共享服务器,但我遇到了一个他们没有提到的错误。安装 rvm 后,它无法在没有 root 访问权限的情况下安装要求,而我没有。它列出了以下要求:
libreadline6-dev, libyaml-dev, automake, libtool, libffi-dev
如果我通过设置以下设置 autolibs 忽略这一点
rvm autolibs 1
并运行:
rvm install ruby-1.9.3
然后它到达编译步骤并给出此错误:
Error running 'make -j8',
please read /home/USER/.rvm/log/ruby-1.9.3-p392/make.log
There has been an error while running make. Halting the installation.
有谁知道我可以绕过这个的方法吗?我已经尝试了几天了。
这是make.log的内容:
CC = gcc
LD = ld
LDSHARED = gcc -shared
CFLAGS = -O3 -ggdb -Wall -Wextra -Wno-unused-parameter -Wno-parentheses -Wno-long-long -Wno-missing-field-initializers -Werror=pointer-arith -Werror=write-strings -Werror=declaration-after-statement -Werror=implicit-function-declaration -fPIC
XCFLAGS = -include ruby/config.h -include ruby/missing.h -fvisibility=hidden -DRUBY_EXPORT
CPPFLAGS = -I. -I.ext/include/x86_64-linux -I./include -I.
DLDFLAGS = -Wl,-soname,libruby.so.1.9
SOLIBS = -lpthread -lrt -ldl -lcrypt -lm
compiling main.c
compiling dmydln.c
compiling dmyencoding.c
compiling version.c
compiling array.c
compiling miniprelude.c
compiling bignum.c
compiling class.c
compiling compar.c
compiling complex.c
compiling dir.c
compiling dln_find.c
compiling enum.c
compiling enumerator.c
make: *** [enumerator.o] Killed
make: *** Waiting for unfinished jobs....