Skip to content
This repository has been archived by the owner on Feb 2, 2023. It is now read-only.

Unclear how to use rust based gems in other projects #158

Open
kirhgoff opened this issue Aug 15, 2018 · 0 comments
Open

Unclear how to use rust based gems in other projects #158

kirhgoff opened this issue Aug 15, 2018 · 0 comments

Comments

@kirhgoff
Copy link

Hello,

I downloaded helix, built gem 'turbo_blank' and tried to use it in irb console, which is failed. Can you add some documentation to explain how it should be done properly?

Building gem

[helix/examples/turbo_blank] at  master ✔
→ gem build turbo_blank.gemspec                                                                                       [239f1de]
WARNING:  open-ended dependency on helix_runtime (>= 0) is not recommended
  if helix_runtime is semantically versioned, use:
    add_runtime_dependency 'helix_runtime', '~> 0'
WARNING:  See http://guides.rubygems.org/specification-reference/ for help
  Successfully built RubyGem
  Name: turbo_blank
  Version: 0.1.0
  File: turbo_blank-0.1.0.gem

Installing:

[helix/examples/turbo_blank] at  master ✔
→ gem install turbo_blank                                                                                             [239f1de]
Fetching: helix_runtime-0.7.5.gem (100%)
Building native extensions.  This could take a while...
Successfully installed helix_runtime-0.7.5
Successfully installed turbo_blank-0.1.0
Parsing documentation for helix_runtime-0.7.5
Installing ri documentation for helix_runtime-0.7.5
Parsing documentation for turbo_blank-0.1.0
Installing ri documentation for turbo_blank-0.1.0
Done installing documentation for helix_runtime, turbo_blank after 0 seconds
2 gems installed

Trying to use it in irb:

[helix/examples/turbo_blank] at  master ✔
→ irb                                                                                                                 [239f1de]
cannot load such file -- irbtools
2.4.4 :001 > require 'turbo_blank'
LoadError: cannot load such file -- turbo_blank/native
  from /Users/xxx/.rvm/rubies/ruby-2.4.4/lib/ruby/2.4.0/rubygems/core_ext/kernel_require.rb:120:in `require'
  from /Users/xxx/.rvm/rubies/ruby-2.4.4/lib/ruby/2.4.0/rubygems/core_ext/kernel_require.rb:120:in `require'
  from /Users/xxx/.rvm/gems/ruby-2.4.4/gems/turbo_blank-0.1.0/lib/turbo_blank.rb:2:in `<top (required)>'
  from /Users/xxx/.rvm/rubies/ruby-2.4.4/lib/ruby/2.4.0/rubygems/core_ext/kernel_require.rb:133:in `require'
  from /Users/xxx/.rvm/rubies/ruby-2.4.4/lib/ruby/2.4.0/rubygems/core_ext/kernel_require.rb:133:in `rescue in require'
  from /Users/xxx/.rvm/rubies/ruby-2.4.4/lib/ruby/2.4.0/rubygems/core_ext/kernel_require.rb:39:in `require'
  from (irb):1
  from /Users/xxx/.rvm/rubies/ruby-2.4.4/bin/irb:11:in `<main>'

I tried the same with duration gem with the same results. What am I doing wrong? Can you help?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant