Error installing ruby 1.9.3

后端 未结 4 896
小蘑菇
小蘑菇 2021-01-01 02:02

I\'m trying to install Ruby 1.9.3 using rvm. However, when I type:

rvm install 1.9.3

I get the following error:

ERROR: Erro         


        
4条回答
  •  孤城傲影
    2021-01-01 03:01

    I have been running into issues on 1.9.3 on Snow Leopard, too. My make.log looks like this:

    [2011-11-06 16:22:52] make 
    CC = /usr/bin/gcc-4.2
    LD = ld
    LDSHARED = /usr/bin/gcc-4.2 -dynamiclib
    CFLAGS = -O3 -ggdb -Wextra -Wno-unused-parameter -Wno-parentheses -Wno-long-long -Wno-missing-field-initializers -Werror=pointer-arith -Werror=write-strings -Werror=declaration-after-statement -Werror=shorten-64-to-32 -Werror=implicit-function-declaration  -fno-common -pipe
    XCFLAGS = -include ruby/config.h -include ruby/missing.h -fvisibility=hidden -DRUBY_EXPORT
    CPPFLAGS = -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE   -I. -I.ext/include/x86_64-darwin10.8.0 -I./include -I.
    DLDFLAGS = -Wl,-undefined,dynamic_lookup -Wl,-multiply_defined,suppress -Wl,-flat_namespace -install_name /Users/strike/.rvm/rubies/ruby-1.9.3-p0/lib/libruby.1.9.1.dylib -current_version 1.9.1 -compatibility_version 1.9.1 -Wl,-unexported_symbol,_Init_* -Wl,-unexported_symbol,*_threadptr_*  -Wl,-u,_objc_msgSend   
    SOLIBS = 
    compiling dmyencoding.c
    compiling array.c
    compiling bignum.c
    compiling dir.c
    compiling enum.c
    compiling load.c
    compiling file.c
    compiling gc.c
    gc.c: In function ‘initial_expand_heap’:
    gc.c:1112: warning: implicit conversion shortens 64-bit value into a 32-bit value
    compiling hash.c
    compiling io.c
    compiling marshal.c
    compiling numeric.c
    compiling object.c
    compiling parse.c
    compiling process.c
    compiling re.c
    compiling ruby.c
    compiling util.c
    compiling variable.c
    compiling debug.c
    linking miniruby
    rbconfig.rb unchanged
    generating enc.mk
    compiling encoding.c
    generating prelude.c
    compiling prelude.c
    linking static-library libruby.1.9.1-static.a
    linking shared-library libruby.1.9.1.dylib
    generating encdb.h
    encdb.h unchanged
    making enc
    make[1]: Nothing to be done for `enc'.
    making srcs under enc
    make[1]: Nothing to be done for `srcs'.
    generating transdb.h
    transdb.h unchanged
    making trans
    make[1]: Nothing to be done for `./enc/trans'.
    making encs
    file2lastrev.rb: does not seem to be under a vcs: .
    make: [.revision.time] Error 1 (ignored)
    ./revision.h unchanged
    /bin/sh: line 0: cd: ext/-test-/add_suffix: No such file or directory
    make[1]: *** [ext/-test-/add_suffix/all] Error 1
    make: *** [build-ext] Error 2
    

提交回复
热议问题