Ruby China
  • Topics
  • 招聘
  • Wiki
  • 酷站
  • Gems
  • Sign Up
  • Sign In
Chris
@evil850209
VIP
NO. 3969 / 2012-10-09

28 Topics / 108 Replies
0 Followers
0 Following
0 Favorites
No GitHub.
  • Overview
  • Topics
  • Replies
  • Favorites
  • Following
  • Followers
  • 用 vim 开发 rails,请有经验的人分享一个 vimrc? at January 05, 2013

    @saberma 您的插件中没有组动补齐关键字,这格对 rails 开发者重要吗?

  • 用 vim 开发 rails,请有经验的人分享一个 vimrc? at January 05, 2013

    @caojunvincent @saberma 谢谢二位。

    ps 好像是 RubyChina 有几天数据丢了,不是帖子被删了。

  • Mac OS 10.7.5 用 RVM 安装 ruby 失败?是 gcc 的问题吗? at December 19, 2012

    @xiaogui 最后解决了,@luikore 的方法奏效。

  • Two Daniel Pair Live Show 2 发布 at December 19, 2012

    希望做成系列!

  • Mac OS 10.7.5 用 RVM 安装 ruby 失败?是 gcc 的问题吗? at December 18, 2012

    @luikore 谢谢,受益匪浅

  • Mac OS 10.7.5 用 RVM 安装 ruby 失败?是 gcc 的问题吗? at December 18, 2012

    终于安装好了,最后卸载 RAILSINSTALLER,就可以了,可能是系统选择 GCC 时选择那个不想用的原因。希望有那位高手给解释一下。

    但现在有了新的问题, 1 每次 shell 启动的时候都有这么两句:

    -bash: /etc/profile.d/sm.sh: No such file or directory
    -bash: /etc/profile.d/rvm.sh: No such file or directory
    

    2 当我想用 taobao 源替换 rvm 默认的时候,出现这个问题:

    sed -i 's/ftp\.ruby-lang\.org\/pub\/ruby/ruby\.taobao\.org\/mirrors\/ruby/g' ~/.rvm/config/db
    sed: 1: "/Users/chris/.rvm/confi ...": command c expects \ followed by text
    

    继续研究中,哎,学习 ruby 最大的障碍难道是不同系统和版本的安装?

  • Mac OS 10.7.5 用 RVM 安装 ruby 失败?是 gcc 的问题吗? at December 18, 2012

    已经安装了一个 RAILSINSTALLER,现在卸载了,然后按照这个做: http://lixiaolai.com/alpha/notes/HomeBrew.html

    目前编译中,应该找到 c 编译器了。

  • Mac OS 10.7.5 用 RVM 安装 ruby 失败?是 gcc 的问题吗? at December 18, 2012

    今天回来首先安装了 xcode4.2,然后安装了 command line tools. 接着按照这个 http://blog.xdite.net/mac-lion-xcode-ruby-rails-192/ 安装了 homebrew,然后安装 brew install apple-gcc42 还是报错,configure: error: C compiler cannot create executables

  • Mac OS 10.7.5 用 RVM 安装 ruby 失败?是 gcc 的问题吗? at December 18, 2012

    这是 log 文件中的日志:

    [2012-12-18 21:08:46] env LDFLAGS=-L/opt/sm/pkg/active/lib CFLAGS=-I/opt/sm/pkg/active/include CPATH=/opt/sm/pkg/active/include ./configure --enable-shared --disable-install-doc --prefix=/Users/chris/.rvm/rubies/ruby-1.9.3-p327 --with-readline --with-opt-dir=/usr/local/Cellar/readline/6.2.4 --with-opt-dir=/Users/chris/.rvm/usr
    configure: WARNING: unrecognized options: --with-readline
    checking build system type... x86_64-apple-darwin11.4.2
    checking host system type... x86_64-apple-darwin11.4.2
    checking target system type... x86_64-apple-darwin11.4.2
    checking whether the C compiler works... no
    configure: error: in `/Users/chris/.rvm/src/ruby-1.9.3-p327':
    configure: error: C compiler cannot create executables
    See `config.log' for more details
    
  • Mac OS 10.7.5 用 RVM 安装 ruby 失败?是 gcc 的问题吗? at December 18, 2012

    是不是 gcc 的版本问题?大家帮我看看我的 gcc 是否不对

    bogon:~ chris$ gcc -v
    Using built-in specs.
    Target: i686-apple-darwin11
    Configured with: /private/var/tmp/llvmgcc42/llvmgcc42-2336.11~67/src/configure --disable-checking --enable-werror --prefix=/Applications/Xcode.app/Contents/Developer/usr/llvm-gcc-4.2 --mandir=/share/man --enable-languages=c,objc,c++,obj-c++ --program-prefix=llvm- --program-transform-name=/^[cg][^.-]*$/s/$/-4.2/ --with-slibdir=/usr/lib --build=i686-apple-darwin11 --enable-llvm=/private/var/tmp/llvmgcc42/llvmgcc42-2336.11~67/dst-llvmCore/Developer/usr/local --program-prefix=i686-apple-darwin11- --host=x86_64-apple-darwin11 --target=i686-apple-darwin11 --with-gxx-include-dir=/usr/include/c++/4.2.1
    Thread model: posix
    gcc version 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2336.11.00)
    
  • Mac OS 10.7.5 用 RVM 安装 ruby 失败?是 gcc 的问题吗? at December 18, 2012

    @xiaogui 对,带不带 gcc 参数都用了

  • Mac OS 10.7.5 用 RVM 安装 ruby 失败?是 gcc 的问题吗? at December 18, 2012

    @xiaogui 现在运行 ruby -v 出现

    bogon:~ chris$ ruby -v /Users/chris/.rvm/bin/ruby: line 6: /Users/chris/.rvm/bin/ruby: Argument list too long /Users/chris/.rvm/bin/ruby: line 6: /Users/chris/.rvm/bin/ruby: Undefined error: 0

    所以 homebrew 都装不了,貌似 rvm 把我系统自带的 ruby 都给卸载了。自带的 ruby 在哪个路径下呢?

  • Mac OS 10.7.5 用 RVM 安装 ruby 失败?是 gcc 的问题吗? at December 18, 2012

    @xiaogui 链接打不开呢?需要翻墙吗?

  • Mac OS 10.7.5 用 RVM 安装 ruby 失败?是 gcc 的问题吗? at December 18, 2012

    @huacnlee 终端中的错误信息一样,具体 log 还没仔细看。但都是 configure: error: C compiler cannot create executables

    有没有具体步骤,我重头来一遍?PS:按照 wiki 上的做了,同样的错误。

  • 在 Mac OS 10.7 上用 rvm 安装 ruby 失败? at December 17, 2012

    谁有类似于傻瓜安装教程的东西,适合我这样的纯入门者。

  • 在 Mac OS 10.7 上用 rvm 安装 ruby 失败? at December 17, 2012

    安装了,有具体的步骤吗?

  • 在 Mac OS 10.7 上用 rvm 安装 ruby 失败? at December 17, 2012

    折腾一个晚上了,还是不行。装 xcode 装 gcc,卸载了又装,装了又卸载。还是不行 sudo 指定 gcc 什么都试过了,还是不行。有没有好心人给指点一下呀!要疯了!

  • 在 Mac OS 10.7 上用 rvm 安装 ruby 失败? at December 17, 2012

    一定要装 Xcode 吗?装什么版本合适?

  • 在 Mac OS 10.7 上用 rvm 安装 ruby 失败? at December 17, 2012

    删除了 xcode4.5,然后重新装了 GCC,还是同样的问题? 现在 rvm 会有一堆提示信息:

    Ruby (and needed base gems) for your selection will be installed shortly. Before it happens, please read and execute the instructions below. Please use a separate terminal to execute any additional commands.

    Notes for Mac OS X 10.7.5, Xcode Error: No developer directory found at /Developer. Run /usr/bin/xcode-select to update the developer directory path..

    For MacRuby: Install LLVM first.

    For JRuby: Install the JDK. See http://developer.apple.com/java/download/ # Current Java version "1.6.0_26" For IronRuby: Install Mono >= 2.6 For Ruby 1.9.3: Install libksba # If using Homebrew, 'brew install libksba' For Opal: Install Nodejs with NPM. See http://nodejs.org/download/

    To use an RVM installed Ruby as default, instead of the system ruby:

    rvm install 1.8.7 # installs patch 357: closest supported version rvm system ; rvm gemset export system.gems ; rvm 1.8.7 ; rvm gemset import system.gems # migrate your gems rvm alias create default 1.8.7

    And reopen your terminal windows.

    小弟是新手,跪求各位给个解决方案,此外再 wiki 上的那个快速安装指南是不是该改一下了,很多版本问题都又有了

  • Mac OS 10.7.5 用 RVM 安装 ruby 失败?是 gcc 的问题吗? at December 17, 2012

    已经安装了 GCC-10.7-v2,并重启电脑,问题依然存在,请问谁能正常再 10.7 OS 安装 ruby 呢?

  • Mac OS 10.7.5 用 RVM 安装 ruby 失败?是 gcc 的问题吗? at December 16, 2012

    rvm 已经更新了,版本号和 xcode 的版本我已经列出

    gcc version 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2336.11.00) rvm 1.17.3 (latest) by Wayne E. Seguin [email protected], Michal Papis [email protected] [https://rvm.io/]

  • Mac OS 10.7.5 用 RVM 安装 ruby 失败?是 gcc 的问题吗? at December 16, 2012

    xcode 已经安装,command tool 也安装了,并且重启电脑。问题依旧。 好像是我的 xcode 版本问题,没有 ruby 需要的 gcc

  • Mac OS 10.7.5 用 RVM 安装 ruby 失败?是 gcc 的问题吗? at December 16, 2012

    @lyfi2003

    [2012-12-16 20:45:44] env LDFLAGS=-L/opt/sm/pkg/active/lib CFLAGS=-I/opt/sm/pkg/active/include CPATH=/opt/sm/pkg/active/include ./configure --enable-shared --disable-install-doc --prefix=/Users/chris/.rvm/rubies/ruby-1.9.3-p327 --enable-shared --with-opt-dir=/Users/chris/.rvm/usr checking build system type... x86_64-apple-darwin11.4.2 checking host system type... x86_64-apple-darwin11.4.2 checking target system type... x86_64-apple-darwin11.4.2 checking whether the C compiler works... no configure: error: in /Users/chris/.rvm/src/ruby-1.9.3-p327': configure: error: C compiler cannot create executables Seeconfig.log' for more details

  • 昨天买了 codeschool 一个月的课程 at December 16, 2012

    在找 rails 的视频,railstutorials.org 很好,但是 125 刀对我们来说有点贵,哪里有便宜些的,或者打折的?

  • 想用 Vim 做 Ruby 和 Rails 开发,有没有纯入门教程? at November 13, 2012

    感谢那么多人的回答,努力中!

  • Prev
  • 1
  • 2
  • 3
关于 / RubyConf / Ruby 镜像 / RubyGems 镜像 / 活跃会员 / 组织 / API / 贡献者
由众多爱好者共同维护的 Ruby 中文社区,本站使用 Homeland 构建,并采用 Docker 部署。
服务器由 赞助 CDN 由 赞助
iOS 客户端 / Android 客户端 简体中文 / English