国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > 系統 > Linux > 正文

解決rails server 錯誤問題

2024-08-27 23:59:21
字體:
來源:轉載
供稿:網友

在我安裝好 Ruby on Rails 后,使用 rails new 命令新建一個項目,然后切換到項目下執行 rails server,出現如下錯誤:

  1. sam@linux-qo4p:~/front/ror|master?⇒  rails server 
  2. Ignoring RedCloth-4.2.9 because its extensions are not built.  Try: gem pristine RedCloth-4.2.9 
  3. Ignoring posix-spawn-0.3.9 because its extensions are not built.  Try: gem pristine posix-spawn-0.3.9 
  4. Ignoring rdiscount-2.1.7.1 because its extensions are not built.  Try: gem pristine rdiscount-2.1.7.1 
  5. /usr/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_require.rb:54:in `require': cannot load such file -- bundler/setup (LoadError) 
  6.         from /usr/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_require.rb:54:in `require'  --Vevb.com 
  7.         from /home/sam/front/ror/config/boot.rb:4:in `<top (required)>' 
  8.         from bin/rails:3:in `require_relative' 
  9.         from bin/rails:3:in `<main>' 

這似乎是我把 openSUSE 系統從 13.1 升級到 13.2 后才出現的錯誤,我的情況里,嘗試錯誤信息中的提示方法 gem pristine RedCloth 并不能消除以上錯誤.

最后的解決辦法是:gem pristine --all,切換到項目根目錄,bundle install,再次跑 rails server,可以正常啟動不報錯,此后,rails new 新建的項目也不再報錯.

發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表
主站蜘蛛池模板: 金门县| 邛崃市| 福泉市| 顺义区| 贵定县| 祥云县| 磴口县| 怀化市| 建水县| 成安县| 昆山市| 宁河县| 张家口市| 嘉兴市| 稷山县| 电白县| 富裕县| 施甸县| 阿巴嘎旗| 云龙县| 微博| 大余县| 永靖县| 内江市| 澄城县| 清新县| 浠水县| 青州市| 遂宁市| 博湖县| 开阳县| 沙洋县| 长垣县| 通榆县| 武功县| 邢台市| 安多县| 微博| 西安市| 汕尾市| 江陵县|