I'm trying to get Bundler to install RedCloth under Windows. If in my
Gemfile I use:
gem 'RedCloth', :require => 'redcloth'
bundle fails to install (it tries to compile the gem). This is the same
error that happens if I try "gem install RedCloth" from the command line.
However, from the command line I can run "gem install RedCloth
--platform=x86-mswin32-60" it works.
Can I make it work through Bundler? I have tried this unsuccessfully:
platforms :mswin do
gem 'RedCloth', :require => 'redcloth'
end
If I add that, RedCloth is ignored and Bundler reports everything is Ok.
Regards,
Daniel
> However, from the command line I can run "gem install RedCloth
> --platform=x86-mswin32-60" it works.
>
> Can I make it work through Bundler?
Thanks for the pointer did read that before posting, but I'm not sure I
understand how it works. From the example:
bundle config build.mysql
--with-mysql-config=/usr/local/mysql/bin/mysql_config
I take this is useful when you need to compile a gem. However I'm just
trying to install a binary gem. The gem line would be:
gem install RedCloth --platform=x86-mswin32-60
I've tried:
bundle config build.RedCloth --platform=x86-mswin32-60
and (just in case)
bundle config install.RedCloth --platform=x86-mswin32-60
But bundle keeps trying to download the wrong version of the gem.
Where can I read a bit more about how to use this config?
Thanks!
Daniel
> I take this is useful when you need to compile a gem. However I'm just
> trying to install a binary gem. The gem line would be:
>
> gem install RedCloth --platform=x86-mswin32-60
Oops! I am sorry, I didn't understand your original message. You are right, and I believe this is not currently working. I have been trying to improve the Windows support in Bundler, but it is hard since I do not personally use Windows, so I am not sure what needs to be done. Would you be willing to work with me to try to make this work? If so, please email me privately or come to the #bundler channel on Freenode.
Thanks,
Andre