Giter Club home page Giter Club logo

Comments (6)

iamsimakov avatar iamsimakov commented on August 28, 2024

hi, do you know how to force working ./a.out console when compiling Rails application?

from ruby-packer.

tresacton avatar tresacton commented on August 28, 2024

Also experiencing this issue, but for a different dependency:

/__enclose_io_memfs__/lib/ruby/2.4.0/rubygems/core_ext/kernel_require.rb:55:in `require': cannot load such file -- mail (LoadError) from /__enclose_io_memfs__/lib/ruby/2.4.0/rubygems/core_ext/kernel_require.rb:55:in `require' from /__enclose_io_memfs__/local/test-scriptl.rb:4:in `<main>'

from ruby-packer.

Awatatah avatar Awatatah commented on August 28, 2024

I tried another application and still receive dependency errors

/__enclose_io_memfs__/lib/ruby/2.4.0/rubygems/core_ext/kernel_require.rb:55:in `require': cannot load such file -- aws-sdk (LoadError)
	from /__enclose_io_memfs__/lib/ruby/2.4.0/rubygems/core_ext/kernel_require.rb:55:in `require'
	from /__enclose_io_memfs__/local/organize_logs.rb:1:in `<top (required)>'
	from /__enclose_io_memfs__/lib/ruby/2.4.0/rubygems/core_ext/kernel_require.rb:55:in `require'
	from /__enclose_io_memfs__/lib/ruby/2.4.0/rubygems/core_ext/kernel_require.rb:55:in `require'
	from /__enclose_io_memfs__/local/manual_start.rb:2:in `<main>'

from ruby-packer.

Awatatah avatar Awatatah commented on August 28, 2024

@iamsimakov I do not, I do not understand what is wrong... This is my directory tree:

app
├── Gemfile
├── Gemfile.lock
├── auto_pilot.rb
├── config
│   └── auto_pilot_config.yml.example
├── manual_start.rb
├── organize_logs.rb
└── readme.md

in which I stalled rubyc one directory up so I run with command
./rubyc -o app/a.out app/manual_start.rb
but I get the require error anyway...

from ruby-packer.

iamsimakov avatar iamsimakov commented on August 28, 2024

hi @Awatatah in my case I use rails runner '<some ruby code>' for one line script.
and about your question. Maybe create Gemfile with one dependency aws-sdk, one Gemfile.lock from it and simple one line ruby script with text: require aws-sdk``. Run bundle, start script. And after trying to build it with rubyc.

from ruby-packer.

iamsimakov avatar iamsimakov commented on August 28, 2024

I think it's one problem with #39

from ruby-packer.

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.