RedClothgemの最新バージョンのリリースである4.2.7で問題が発生しています。具体的には、このコミットで解決されたのはgcc 4.6コンパイルの問題ですが、コミットされてからかなり前のリリースにはまだ含まれていません。
私のGemfileで、これを変更しました:
gem 'RedCloth', '4.2.7'
これに:
gem 'RedCloth', :git => 'git://github.com/jgarber/redcloth.git'
ただし、実行するbundle install
と、次のような警告メッセージが表示されます。
RedCloth at /Users/mhuggins/.rvm/gems/ruby-1.9.2-p180@myapp/bundler/gems/redcloth-9d6d28f93b02 did not have a valid gemspec.
This prevents bundler from installing bins or native extensions, but that may not affect its functionality.
The validation message from Rubygems was:
["ext/redcloth_scan/redcloth_attributes.c", "ext/redcloth_scan/redcloth_inline.c", "ext/redcloth_scan/redcloth_scan.c"] are not files
redcloth.gemspecのこの行が、ソースツリーに存在しない3つのファイルを含めようとしているようです。これが、エラーの原因です。
誰かが私のためにここで何が起こっているのか知っていますか?私は一歩か何かを逃しているに違いありません。(私はRails3.1エッジを使用してOSXを使用しています。)