Comments (3)
Hello @fxfactorial and thank you for your questions.
When you say:
So I have successfully created
unf_ext-0.0.7.4-x86-mingw32.gem
on windows, moved that to my project
Please note that the generated binary is bound to Windows platform. Attempt to be use or install on another platform will not work.
Perhaps you might want to use bundle package
instead.
In theory you can place multiple platform gems within vendor/cache
and let bundle install --local
automatically detect them.
You might need to store both ruby (non-platform specific) and platform specific gems in the cache.
Which I guess is because the binary formats are different, but there must be a way to get around this because it shouldn't matter, we're just moving it around, not running it.
Actually, it does matter. A gem for a different platform might no be found on a different one. Also if you're using Bundler lockfiles, it might contain some locked dependencies that are platform-specific and those cannot be installed under a different OS.
On a separate note, I see unf_ext
already provides binaries for different platforms, so I'm not sure the role of gem-compiler on your question.
Hope that helps. Closing this now.
If you have an specific question related to gem-compiler itself, please feel free to open a new issue.
Cheers.
from gem-compiler.
@luislavena Thanks for the quick reply!
ya, I'm building on OS X and want to use on windows, but the hassle of bundle install --local
is that it wants everything in the dir, whereas I just want a selected group of gems to be used locally, rest downloaded from rubygems. I tried in the Gemfile itself, via :path => ./where/unf_ext-0.0.7.4-x86-mingw32.gem/is/located
/ but then I get a Could not find gem 'unf_ext' in source at
./some-path.
from gem-compiler.
Hello @fxfactorial I just realized from your sample:
gem 'unf_ext', :path => './'
The :path
option indicates Bundler to look for unf_ext
source in the given directory, not a packaged gem file.
Please see my response in #26 and reach out to Bundler for further assistance with it's usage.
Cheers.
from gem-compiler.
Related Issues (20)
- Lock down Ruby's ABI when packaging new gem HOT 4
- cannot compile nokogiri HOT 23
- Method to execute commands/scripts before packaging the new gem HOT 7
- Using these compiled gems with bundle HOT 1
- Testing with trunk ruby 2.5.0dev (2017-10-10 trunk 60155) [x64-mingw32] HOT 3
- Packaging gems with non-traditional extensions
- gem compile test-4.0.6.gem HOT 1
- Compiler errors when it finds nothing to do? HOT 5
- Using gem compiler in a restricted server environment HOT 4
- Benchmarks? HOT 3
- Specific case: puma with SSL support HOT 6
- Uploading multiple versions of ABI to rubygems HOT 4
- modify the version of the gem HOT 6
- Thanks!!! HOT 1
- gem-compile fails when gem has no Gemfile (SUSE/OpenSUSE) HOT 11
- Fail when artifacts are empty? HOT 2
- Support for ruby 3.0 HOT 7
- Package not found HOT 4
- mysql2.so is not included in the packed gem HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gem-compiler.