【问题标题】:cannot install RedCloth无法安装 RedCloth
【发布时间】:2012-12-24 03:01:40
【问题描述】:

如标题所示,我在安装 gem RedCloth 时遇到问题。我下载了 RubyGems v1.8.24,并使用 ubuntu 12.04,这是我的控制台日志:

kuba@kuba-P5Q-SE:~$ sudo gem install RedCloth
[sudo] password for kuba: 
Building native extensions.  This could take a while...
ERROR:  Error installing RedCloth:
    ERROR: Failed to build gem native extension.

        /usr/bin/ruby1.9.1 extconf.rb
/usr/local/lib/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require': cannot load     such file -- mkmf (LoadError)
    from /usr/local/lib/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
    from extconf.rb:1:in `<main>'


Gem files will remain installed in /usr/lib/ruby/gems/1.9.1/gems/RedCloth-4.2.9 for     inspection.
Results logged to /usr/lib/ruby/gems/1.9.1/gems/RedCloth-    4.2.9/ext/redcloth_scan/gem_make.out

我试图查看这个最后给定的文件,但是当我查找它时,它会打开 chrome,并给我错误。:(

【问题讨论】:

  • 您是否考虑过使用 RVM 来管理您的红宝石?

标签: ruby gem redcloth


【解决方案1】:

尝试从 Synaptic 安装 ruby​​1.9.1-dev 软件包,或使用 apt-get。

在命令提示符下: sudo apt-get install ruby​​1.9.1-dev

mkmf(加载失败的模块)是only included in the development package for ruby on ubuntu

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2012-08-20
    • 1970-01-01
    • 2023-03-21
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多