0

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を使用しています。)

4

2 に答える 2

2

「bundleconfigbuild.RedCloth--with-cflags = -w」を実行してから、「bundleinstall」を実行してみてください。

于 2012-05-08T04:59:56.430 に答える
0

少し面倒ですが、Gemfileのgitバージョンをmac os xsnowleopardで動作させることができました...

あなたのプロジェクトでは:

bundle install

次のようなエラーメッセージが表示されます。

RedCloth at /Users/kunzmann/.rvm/gems/ruby-1.9.2-p290/bundler/gems/redcloth-9d6d28f93b02 did not have a valid gemspec.

次に、Ragel 6.3以降を使用している場合にこれを行うことができます(私は使用しましbrew install Ragelた)

cd /Users/kunzmann/.rvm/gems/ruby-1.9.2-p290/bundler/gems/redcloth-9d6d28f93b02
bundle install
bundle exec rake compile

次回bundle installプロジェクトに参加するときは、次のように表示されます。

Using RedCloth (4.2.7) from git://github.com/jgarber/redcloth.git (at master) with native extensions
于 2011-08-09T01:58:23.380 に答える