Ok guys, I already tried to:
好的,我已经尝试过:
Nothing works for me!
没有什么对我有用!
When I run rvm install ruby-1.9.2
I got this error:
当我运行rvm install ruby-1.9.2时出现此错误:
Searching for binary rubies, this might take some time.
No binary rubies available for: osx/10.10/x86_64/ruby-1.9.2-p330.
It is not possible to build movable binaries for rubies 1.8-1.9.2, but you can do it for your system only.
Continuing with compilation. Please read 'rvm help mount' to get more information on binary rubies.
Checking requirements for osx.
Certificates in '/usr/local/etc/openssl/cert.pem' are already up to date.
Requirements installation successful.
/Users/brunnosantos/.rvm/scripts/functions/build: line 110: 33084 Segmentation fault: 11 ${compiler} "$@" 2>&1
Installing Ruby from source to: /Users/brunnosantos/.rvm/rubies/ruby-1.9.2-p330, this may take a while depending on your cpu(s)...
ruby-1.9.2-p330 - #downloading ruby-1.9.2-p330, this may take a while depending on your connection...
######################################################################## 100.0%
ruby-1.9.2-p330 - #extracting ruby-1.9.2-p330 to /Users/brunnosantos/.rvm/src/ruby-1.9.2-p330....
ruby-1.9.2-p330 - #applying patch /Users/brunnosantos/.rvm/patches/ruby/GH-488.patch.
ruby-1.9.2-p330 - #applying patch /Users/brunnosantos/.rvm/patches/ruby/ssl_no_ec2m.patch.
ruby-1.9.2-p330 - #configuring.
Error running 'env CFLAGS=-O3 -I/usr/local/opt/readline/include -I/usr/local/opt/libksba/include -I/usr/local/opt/openssl/include LDFLAGS=-L/usr/local/opt/readline/lib -L/usr/local/opt/libksba/lib -L/usr/local/opt/openssl/lib ./configure --prefix=/Users/brunnosantos/.rvm/rubies/ruby-1.9.2-p330 --with-opt-dir=/usr/local/opt/libyaml --without-tcl --without-tk --disable-install-doc --enable-shared',
showing last 15 lines of /Users/brunnosantos/.rvm/log/1413833087_ruby-1.9.2-p330/configure.log
[2014-10-20 17:24:50] ./configure
current path: /Users/brunnosantos/.rvm/src/ruby-1.9.2-p330
PATH=/usr/local/opt/pkg-config/bin:/usr/local/opt/libtool/bin:/usr/local/opt/automake/bin:/usr/local/opt/autoconf/bin:/usr/local/heroku/bin:/Users/brunnosantos/dotfiles/powerline/scripts:/usr/local/bin:/Users/brunnosantos/.azk/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/X11/bin:/Users/brunnosantos/bin:/Users/brunnosantos/.rvm/bin:/Users/brunnosantos/go/bin:/usr/local/smlnj/bin
command(10): env CFLAGS=-O3 -I/usr/local/opt/readline/include -I/usr/local/opt/libksba/include -I/usr/local/opt/openssl/include LDFLAGS=-L/usr/local/opt/readline/lib -L/usr/local/opt/libksba/lib -L/usr/local/opt/openssl/lib ./configure --prefix=/Users/brunnosantos/.rvm/rubies/ruby-1.9.2-p330 --with-opt-dir=/usr/local/opt/libyaml --without-tcl --without-tk --disable-install-doc --enable-shared
configure: WARNING: unrecognized options: --without-tcl, --without-tk
checking build system type... i386-apple-darwin14.0.0
checking host system type... i386-apple-darwin14.0.0
checking target system type... i386-apple-darwin14.0.0
checking whether the C compiler works... no
configure: error: in `/Users/brunnosantos/.rvm/src/ruby-1.9.2-p330':
configure: error: C compiler cannot create executables
See `config.log' for more details
There has been an error while running configure. Halting the installation.
When I tried rvm install ruby-1.9.2 --with-gcc=clang
I got:
当我尝试使用rvm install ruby-1.9.2 --with-gcc = clang时,我得到了:
ruby-1.9.2-p330 - #removing src/ruby-1.9.2-p330..
Checking requirements for osx.
Certificates in '/usr/local/etc/openssl/cert.pem' are already up to date.
Requirements installation successful.
Warning: found user selected compiler 'clang', this will suppress RVM auto detection mechanisms.
Installing Ruby from source to: /Users/brunnosantos/.rvm/rubies/ruby-1.9.2-p330, this may take a while depending on your cpu(s)...
ruby-1.9.2-p330 - #downloading ruby-1.9.2-p330, this may take a while depending on your connection...
ruby-1.9.2-p330 - #extracting ruby-1.9.2-p330 to /Users/brunnosantos/.rvm/src/ruby-1.9.2-p330....
ruby-1.9.2-p330 - #applying patch /Users/brunnosantos/.rvm/patches/ruby/GH-488.patch.
ruby-1.9.2-p330 - #applying patch /Users/brunnosantos/.rvm/patches/ruby/ssl_no_ec2m.patch.
ruby-1.9.2-p330 - #configuring..........................................
ruby-1.9.2-p330 - #post-configuration.
ruby-1.9.2-p330 - #compiling...........................................................................................................................................
Error running '__rvm_make -j 1',
showing last 15 lines of /Users/brunnosantos/.rvm/log/1413833194_ruby-1.9.2-p330/make.log
#define UNINITIALIZED_VAR(x) x = x
^
4 warnings generated.
clang -O3 -I/usr/local/opt/readline/include -I/usr/local/opt/libksba/include -I/usr/local/opt/openssl/include -fno-common -pipe -I. -I.ext/include/x86_64-darwin14.0.0 -I./include -I. -DRUBY_EXPORT -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -o cont.o -c cont.c
clang -O3 -I/usr/local/opt/readline/include -I/usr/local/opt/libksba/include -I/usr/local/opt/openssl/include -fno-common -pipe -I. -I.ext/include/x86_64-darwin14.0.0 -I./include -I. -DRUBY_EXPORT -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -o ascii.o -c ./enc/ascii.c
clang -O3 -I/usr/local/opt/readline/include -I/usr/local/opt/libksba/include -I/usr/local/opt/openssl/include -fno-common -pipe -I. -I.ext/include/x86_64-darwin14.0.0 -I./include -I. -DRUBY_EXPORT -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -o us_ascii.o -c ./enc/us_ascii.c
clang -O3 -I/usr/local/opt/readline/include -I/usr/local/opt/libksba/include -I/usr/local/opt/openssl/include -fno-common -pipe -I. -I.ext/include/x86_64-darwin14.0.0 -I./include -I. -DRUBY_EXPORT -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -o unicode.o -c ./enc/unicode.c
clang -O3 -I/usr/local/opt/readline/include -I/usr/local/opt/libksba/include -I/usr/local/opt/openssl/include -fno-common -pipe -I. -I.ext/include/x86_64-darwin14.0.0 -I./include -I. -DRUBY_EXPORT -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -o utf_8.o -c ./enc/utf_8.c
clang -O3 -I/usr/local/opt/readline/include -I/usr/local/opt/libksba/include -I/usr/local/opt/openssl/include -fno-common -pipe -I. -I.ext/include/x86_64-darwin14.0.0 -I./include -I. -DRUBY_EXPORT -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -o newline.o -c newline.c
clang -O3 -I/usr/local/opt/readline/include -I/usr/local/opt/libksba/include -I/usr/local/opt/openssl/include -fno-common -pipe -I. -I.ext/include/x86_64-darwin14.0.0 -I./include -I. -DRUBY_EXPORT -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -o dmyext.o -c dmyext.c
clang -O3 -I/usr/local/opt/readline/include -I/usr/local/opt/libksba/include -I/usr/local/opt/openssl/include -fno-common -pipe -L. -L/usr/local/opt/readline/lib -L/usr/local/opt/libksba/lib -L/usr/local/opt/openssl/lib -Wl,-u,_objc_msgSend main.o dmydln.o dmyencoding.o dmyversion.o miniprelude.o array.o bignum.o class.o compar.o complex.o dir.o dln_find.o enum.o enumerator.o error.o eval.o load.o proc.o file.o gc.o hash.o inits.o io.o marshal.o math.o node.o numeric.o object.o pack.o parse.o process.o random.o range.o rational.o re.o regcomp.o regenc.o regerror.o regexec.o regparse.o regsyntax.o ruby.o safe.o signal.o sprintf.o st.o strftime.o string.o struct.o time.o transcode.o util.o variable.o compile.o debug.o iseq.o vm.o vm_dump.o thread.o cont.o ascii.o us_ascii.o unicode.o utf_8.o newline.o dmyext.o -lpthread -ldl -lobjc -o miniruby
miniruby(46919,0x7fff7a0cc300) malloc: *** error for object 0x7fed53001a08: incorrect checksum for freed object - object was probably modified after being freed.
*** set a breakpoint in malloc_error_break to debug
make: *** [.rbconfig.time] Abort trap: 6
++ return 2
There has been an error while running make. Halting the installation.
Full log file /Users/brunnosantos/.rvm/log/1413833194_ruby-1.9.2-p330/make.log
can be viwed in: https://gist.github.com/squiter/b6c4280946454b6b7764
完整的日志文件/Users/brunnosantos/.rvm/log/1413833194_ruby-1.9.2-p330/make.log可以在以下网址中查看:https://gist.github.com/squiter/b6c4280946454b6b7764
I installed 1.9.3 with rvm install ruby-1.9.3 --with-gcc=clang
, worked well, but no success with 1.9.2.
我用rvm install ruby-1.9.3 --with-gcc = clang安装了1.9.3,运行良好,但1.9.2没有成功。
I don't know what I can try anymore....
我不知道我能再试一次了....
2
Did you try this?
你试过这个吗?
export CC=/usr/bin/gcc
export CC = / usr / bin / gcc
and then trying to install?
然后尝试安装?
Hope it helps!
希望能帮助到你!
0
This is a reported known problem in Ruby on OSX depending on your C compiler version. You might find a solution here: https://github.com/sstephenson/ruby-build/issues/648
这是Ruby on OSX中已报告的已知问题,具体取决于您的C编译器版本。您可以在这里找到解决方案:https://github.com/sstephenson/ruby-build/issues/648
0
I found that reinstalling gcc4.2 (via homebrew, in my case: 'brew install gcc42') and then using that clang compiler when installing older rubies allows the installation to succeed.
我发现重新安装gcc4.2(通过自制程序,在我的情况下:'brew install gcc42')然后在安装旧的rubies时使用该clang编译器允许安装成功。
0
I have the ruby 2.2.0 version installed and I try to install the -v 1.9.2 and I do this previously recommended and when I try to install ruby I have his fail: ``` $ rvm install ruby -v '1.9.2' Already installed ruby-2.2.0. To reinstall use:
我安装了ruby 2.2.0版本,我尝试安装-v 1.9.2并且我之前建议这样做,当我尝试安装ruby时,我有他的失败:```$ rvm install ruby -v'1.9。 2'已安装ruby-2.2.0。要重新安装使用:
rvm reinstall ruby-2.2.0
``` Anyone can Help me, the problem is the new version of Mac OS X Yosemite( I'm so bad about the updating of this OS I has so many errors on drivers(wi-fi, bluetooth, etc...)
```任何人都可以帮助我,问题是Mac OS X Yosemite的新版本(我对这个操作系统的更新非常糟糕我在驱动程序上有很多错误(wi-fi,蓝牙等等)
本站翻译的文章,版权归属于本站,未经许可禁止转摘,转摘请注明本文地址:http://www.silva-art.net/blog/2014/10/20/b9be2147295aaf6052de937f90d2bd66.html。