zoukankan      html  css  js  c++  java
  • 安装配置rails环境

    我的ubuntu已经安装ruby1.9.3,安装rails的时候提示错误

    Building native extensions.  This could take a while...
    ERROR:  Error installing rails:
        ERROR: Failed to build gem native extension.
    
            /usr/bin/ruby1.9.1 extconf.rb
    /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require': cannot load such file -- mkmf (LoadError)
        from /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
        from extconf.rb:13:in `<main>'
    
    
    Gem files will remain installed in /var/lib/gems/1.9.1/gems/atomic-1.1.14 for inspection.
    Results logged to /var/lib/gems/1.9.1/gems/atomic-1.1.14/ext/gem_make.out

     据说是,需要ruby1.9.1的版本才能编译?先试试看吧

    sudo apt-get install ruby1.9.1-dev
    sudo gem install rails

    居然就通过了......好吧

  • 相关阅读:
    11111
    JavaScript基础
    CSS使用
    CSS 基本
    前端之HTML
    Python 迭代器和生成器
    Python day11
    Python 函数
    第十七篇:django基础(二)
    第十六篇:django基础
  • 原文地址:https://www.cnblogs.com/valleylord/p/3506775.html
Copyright © 2011-2022 走看看