- xml - AJAX/Jquery XML 解析
- 具有多重继承的 XML 模式
- .net - 枚举序列化 Json 与 XML
- XML 简单类型、简单内容、复杂类型、复杂内容
好的,我已经尝试过:
对我来说没有任何用处!
当我运行 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.
当我尝试 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.
完整日志文件 /Users/brunnosantos/.rvm/log/1413833194_ruby-1.9.2-p330/make.log
可以在以下位置查看:https://gist.github.com/squiter/b6c4280946454b6b7764
我用 rvm install ruby-1.9.3 --with-gcc=clang
安装了 1.9.3,运行良好,但在 1.9.2 上没有成功。
我不知道我还能尝试什么......
最佳答案
你试过吗?
export CC=/usr/bin/gcc
然后尝试安装?
希望对您有所帮助!
关于ruby - 无法在 OSX 10.10 Yosemite 上的 RVM 中安装 ruby 1.9.2,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/26473428/
我正在 Mac OS X 上安装 Ruby on Rails。我遵循的教程说要添加: [[ -s "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/script
RVM 可以做的一件事是在您更改目录时注意,查找 .rvmrc ,并根据该文件的内容更改您当前的 Ruby 版本和 gemset。只要您更改到该目录,它就会进行此更改并相应地输出一条消息。 它如何检测
我最近看到了曙光,并改用了 Zsh。我很自然地使用 Oh My Zsh 来配置它,因为我是菜鸟。因此,有几个主题具有 rvm-prompt包括在内,这是我的问题开始了。每次我加载 Zsh 我都必须 r
我正在通过示例教程系列来了解 Rails。在提出问题之前,我会尽力找到解决方案,因此,如果我错过了任何内容,我深表歉意。 每次我需要从终端的命令行启动 RVM 时,我都需要敲一个命令,以便 RVM 初
我正在尝试在 Ubuntu 上使用 RVM 在 rails 上安装 Ruby,但是当我运行此命令时: source ~/.rvm/scripts/rvm 我收到这个错误: bash: /home/u
所以我不确定我是否遗漏了什么,但是是否有自动库的特定设置 rvm requirements 显示要求而不是检查它们是否已安装?或者我是否缺少其他选项来简单地显示要求?我使用的是 1.19.0 版 最佳
有没有办法摆脱警告,当我遍历一个文件夹时,有 .rvmrc文件。 ===================================================================
所以我安装了 fish 和 oh-my-fish,当我想使用 rvm 时出现此错误: ➜ avalancha git:(services) ✗ rvm use 2.1.0 Using /home/ma
我正在使用capistrano,bundler和rvm将Rails应用程序部署到VPS。 这是我的deploy.rb的一部分 $:.unshift(File.expand_path('./lib',
我在 OS X 主机上安装了 RubyMine (7) 和最后一个 Vagrant。我已经准备了 shell 脚本,用于为我的 vagrant box 提供 RVM、ruby (2.1.2)、捆绑我的
我需要在 Cloud9 中使用 Ruby 2.1.2。 rvm 已经安装,所以这很好: samueller@test2:~/workspace $ rvm -v Warning! PATH is no
我想在 ubuntu 中安装 RVM,我正在按照这些步骤操作 root@jaskaran-Vostro-1550:/home/user_name# sudo apt-get install curl
首先我要说我不是命令行专家,所以我真的几乎不知道自己在做什么。 我无法让 RVM 和 oh-my-zsh 一起玩得很好。我尝试了几种不同的解决方案,其中一些是在 SO 上发布的,但我发现似乎没有任何解
我第一次尝试在 ubuntu 服务器上部署我的应用程序。 我一直遇到这个错误: 2013-03-24 15:13:36 executing `deploy:run_migrations' * e
我了解 Boxen不适用于 RVM ,我不明白为什么。是否有一些限制阻止 Boxen 能够使用 RVM 而不是 rbenv? Boxen 的核心是 Puppet,它确实支持安装 RVM 模块,所以我不
在我删除 rvm(ruby 版本管理器)后,zsh 就出来了: zsh: command not found: rvm-prompt 有什么我没弄清楚的吗?但是我已经删除了 zshrc 或 bash_
我一直在使用 RoR 3.0.3 和 2.8.4 开发几个应用程序,这意味着我必须经常在 RVM 环境之间来回切换。我的 3.0.3 RVM 被称为 ruby-1.9.2-p0@ror3 ,而另一个是
我很平静(回复:rbenv),但我对 rvm 和 .rvmrc 感到非常沮丧。我一直遇到问题,我 cd 到我的项目文件夹中,却发现我的 ruby & gemset 环境没有正确设置。所以有人可以一
为什么在/home/user/.rvm/gems/ruby-2.2.3/bin之前加nvm 在 PATH ? echo $PATH /home/user/.rvm/bin:/home/user/.nv
我正在使用Vagrant安装了docker的VM 它还安装了RVM和Ruby 2.1: # -*- mode: ruby -*- # vi: set ft=ruby : $rvm= > .bash_h
我是一名优秀的程序员,十分优秀!