Giter Club home page Giter Club logo

Comments (3)

luislavena avatar luislavena commented on August 16, 2024

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.

fxfactorial avatar fxfactorial commented on August 16, 2024

@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.

luislavena avatar luislavena commented on August 16, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.