0

I need to upload vendorize a gem which is causing problems at my host - in this case nokogiri. My host is using linux, my development system is windows. The gem contains binaries and so my local gem downloads the win32 binaries. Is there any way I can get gem to download the linux binaries, so I can vendorize and upload them?

2 Answers 2

1

You won't be able to build the Linux version of a gem on Windows. That's why there are multiple platform versions for some gems.

You could download the original source of the Linux version, then simply store that in your repository, if you really want to have a copy of it with your app.

Or you could do all your development in a Linux virtual machine in your Windows box - then you'd have no vendoring problems.

Other than that, don't think you can do it.

1
  • My hosting company vendorised the gem on the server for me and I can download that to my source control. Apr 12, 2010 at 19:08
0

Try below command

gem install YOUR_GEM_NAME --platform=mswin32

example

gem install hpricot --platform=mswin32

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.