0

我正在尝试安装 radiant cms,当我尝试运行 bundle exec rake db:bootstrap 时,我得到以下输出。现在我选择了 mysql 作为我的数据库,但我不确定它是否设置正确或无法连接。抱歉,如果听起来我不知道我在说什么,这对我来说还是有点新鲜。

Gem.source_index called from /Users/anderskitson/.rbenv/versions/1.9.3-p374/lib/ruby/gems/1.9.1/gems/rails-2.3.18/lib/rails/gem_dependency.rb:21.
rake aborted!
uninitialized constant MysqlCompat::MysqlRes
/Users/anderskitson/Sites/Bray Jorstad/config/environment.rb:14:in `<top (required)>'
Tasks: TOP => db:bootstrap => db:initialize => environment
(See full trace by running task with --trace)
4

1 回答 1

0
  1. 安装 rvm bash -s stable < <(curl -s https://raw.github.com/wayneeseguin/rvm/master/binscripts/rvm-installer )
  2. setup rvm echo '[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm"' >> ~/.bash_profile source ~/.bash_profile
  3. 下载并安装 Xcode 打开 https://developer.apple.com/downloads/download.action?path=Developer_Tools/xcode_4.1_for_lion/xcode_4.1_for_lion.dmg 打开 ~/Downloads/xcode_4.1_for_lion.dmg 打开 "/Volumes/Install Xcode/InstallXcodeLion.pkg"
  4. install ruby​​ & ruby​​gems rvm install 1.9.3 # or 1.9.2 or 1.8.7
  5. 为您的项目设置一个隔离环境 rvm 使用 --create 1.9.3@project-name
  6. install radiant gem install radiant --pre --no-ri --no-rdoc # 安装 Radiant 1.0 RC4
  7. 创建一个新的辐射项目 radiant ~/project-name cd ~/project-name bundle install bundle exec rake db:bootstrap
  8. 安装可选的裁剪依赖项 brew install ghostscript imagemagick # or port install ... brew install --use-gcc ffmpeg # or port install ffmpeg
  9. 启动您的新辐射应用程序包执行脚本/服务器

礼貌:

https://github.com/radiant/radiant/wiki/Installing-on-Mac-OS-X

我今天(22/05/13)在 OSX(10.7.5)中做了这个,一切正常。只是不要摆弄你的 gem 文件。在开发时将数据库保持为 sqlite3,或者至少在一切正常之前。

祝你好运!

于 2013-05-22T11:27:54.783 回答