ruby-on-rails – rails s – > dyld:懒惰符号绑定失败:找
所以rails不能和rails一起工作.我以为这个问题是heroku工具带,所以我删除了它,但是没有这样做.然后我检查了我的.zshrc文件,看到它有一个不同版本的
ruby,它正在调用PATH,所以我更新了.但是没有这样做.我没有想法有人可以帮忙吗?
#(05/06/13 @ 10:01AM)(admin @ Administrators-MacBook-Pro):?/ desktop / scratch dyld: Symbol not found: _rb_intern2 Referenced from: /Users/admin/.rvm/gems/ruby-1.9.3-p392/gems/sqlite3-1.3.7/lib/sqlite3/sqlite3_native.bundle Expected in: flat namespace [1] 69741 trace trap rails s #(05/06/13 @ 10:02AM)(admin @ Administrators-MacBook-Pro):?/ desktop / scratch Default Ruby (for new shells) ruby-1.9.3-p392 [ x86_64 ] (05/06/13 @ 10:11AM)(admin @ Administrators-MacBook-Pro):?/ desktop / scratch ruby 1.8.7 (2012-02-08 patchlevel 358) [universal-darwin12.0] #(05/06/13 @ 10:11AM)(admin @ Administrators-MacBook-Pro):?/ desktop / scratch Rails 3.2.12 的Gemfile: source 'https://rubygems.org' gem 'rails','3.2.12' # Bundle edge Rails instead: # gem 'rails',:git => 'git://github.com/rails/rails.git' gem 'sqlite3' # gem 'pg' gem "bootstrap-sass",">= 2.3.0.0" # Gems used only for assets and not required # in production environments by default. group :assets do gem 'sass-rails','~> 3.2.3' gem 'coffee-rails','~> 3.2.1' # See https://github.com/sstephenson/execjs#readme for more supported runtimes # gem 'therubyracer',:platforms => :ruby gem 'uglifier','>= 1.0.3' end gem 'jquery-rails' # To use ActiveModel has_secure_password # gem 'bcrypt-ruby','~> 3.0.0' # To use Jbuilder templates for JSON # gem 'jbuilder' # Use unicorn as the app server # gem 'unicorn' # Deploy with Capistrano # gem 'capistrano' # To use debugger # gem 'debugger' .zshrc文件: # Path to your oh-my-zsh configuration. ZSH=$HOME/.oh-my-zsh # Set name of the theme to load. # Look in ~/.oh-my-zsh/themes/ # Optionally,if you set this to "random",it'll load a random theme each # time that oh-my-zsh is loaded. ZSH_THEME="junkfood" # Example aliases # alias zshconfig="mate ~/.zshrc" # alias ohmyzsh="mate ~/.oh-my-zsh" # Set to this to use case-sensitive completion # CASE_SENSITIVE="true" # Comment this out to disable bi-weekly auto-update checks # DISABLE_AUTO_UPDATE="true" # Uncomment to change how many often would you like to wait before auto-updates occur? (in days) # export UPDATE_ZSH_DAYS=13 # Uncomment following line if you want to disable colors in ls # DISABLE_LS_COLORS="true" # Uncomment following line if you want to disable autosetting terminal title. # DISABLE_AUTO_TITLE="true" # Uncomment following line if you want red dots to be displayed while waiting for completion # COMPLETION_WAITING_DOTS="true" # Which plugins would you like to load? (plugins can be found in ~/.oh-my-zsh/plugins/*) # Custom plugins may be added to ~/.oh-my-zsh/custom/plugins/ # Example format: plugins=(rails git textmate ruby lighthouse) plugins=(git) source $ZSH/oh-my-zsh.sh # Customize to your needs... export PATH=//opt/local/bin:/opt/local/sbin://usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/opt/X11/bin:/usr/local/git/bin:/opt/local/bin:/opt/local/sbin:/Users/admin/.rvm/gems/ruby-1.9.3-p392/bin:/Users/admin/.rvm/gems/ruby-1.9.3-p392@global/bin:/Users/admin/.rvm/rubies/ruby-1.9.3-p392/bin:/Users/admin/.rvm/bin:/usr/local/mysql/bin:/Users/admin/.rvm/bin PATH=$PATH:$HOME/.rvm/bin # Add RVM to PATH for scripting 解决方法
如果你使用rvm,你应该让它添加路径到$PATH,而不是自己做.就像它一样,看起来你是一半使用rvm:你正在拾取为rvm安装的ruby安装的宝石,但是由于rvm ruby??路径是在$PATH的结尾运行ruby正在拾取一个ruby安装通过一些其他的方法(可能是系统提供的一个)
结果,你有一个红宝石1.8.7试图加载为ruby 1.9.3编译的扩展,这不起作用 (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |