1.An error occurred while installing rmagick (2.16.0), and Bundler cannot continue.
Make sure that `gem install rmagick -v '2.16.0'` succeeds before bundling.
>yum install ImageMagick-devel
2./usr/local/lib/ruby/gems/2.3.0/gems/htmlentities-4.3.1/lib/htmlentities/mappings/expanded.rb:465: warning: key "inodot" is duplicated and overwritten on line 466
(1)./usr/local/lib/ruby/gems/2.3.0/gems/htmlentities-4.3.1/lib/htmlentities/mappings/expanded.rb:
(2)按下Esc,输入 冒号 ,:set number
(3)找到第466行,把它用井号“#”注释掉
原因可能是你曾经安装过一次ruby
3.访问web页面500拒绝访问ruby bin/rails server webrick -e production -d -b 【ip】要给IP地址
本文介绍了在Ruby环境中遇到的三个常见问题及解决方案:1. 安装rmagick失败;2. htmlentities gem中出现重复键警告;3. 访问Rails应用时出现500错误。针对这些问题给出了具体的解决步骤。
1035

被折叠的 条评论
为什么被折叠?



