Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing dependencies? #7

Closed
joshsharp opened this issue Oct 27, 2018 · 5 comments
Closed

Missing dependencies? #7

joshsharp opened this issue Oct 27, 2018 · 5 comments

Comments

@joshsharp
Copy link

Heya, I had a go at installing and running Lard yesterday, and I ran into some issues. I'm not a Ruby person, but I think the issue here was that its dependencies were not being installed when I installed the gem.

The first time I ran it, I got an issue about httparty missing, which I figured out how to install as a gem myself 😇 but since then I'm still getting an error:

hades:~$ lard
Traceback (most recent call last):
        6: from /home/hades/.rvm/gems/ruby-2.5.3/bin/ruby_executable_hooks:24:in `<main>'
        5: from /home/hades/.rvm/gems/ruby-2.5.3/bin/ruby_executable_hooks:24:in `eval'
        4: from /home/hades/.rvm/gems/ruby-2.5.3/bin/lard:23:in `<main>'
        3: from /home/hades/.rvm/gems/ruby-2.5.3/bin/lard:23:in `load'
        2: from /home/hades/.rvm/gems/ruby-2.5.3/gems/lard-0.0.5/bin/lard:3:in `<top (required)>'
        1: from /home/hades/.rvm/rubies/ruby-2.5.3/lib/ruby/site_ruby/2.5.0/rubygems/core_ext/kernel_require.rb:59:in `require'
/home/hades/.rvm/rubies/ruby-2.5.3/lib/ruby/site_ruby/2.5.0/rubygems/core_ext/kernel_require.rb:59:in `require': cannot load such file -- paint (LoadError)

If I'm doing something wrong, please let me know! Otherwise hope this helps you fix an issue.

@hawkins
Copy link
Owner

hawkins commented Oct 27, 2018

Hey thanks so much for trying it out and reporting an issue! 🎉

This is actually my first published ruby gem, so I'm guessing I didn't mark the Gemfile which lists our dependencies (httparty, paint, thor) to be included in the published gem or something to that affect. Oops! Will look into it tonight, thanks a bunch!

In the mean time, if you'd like to keep toying with the app, you might be able to get away with this:

gem install httparty
gem install paint
gem install thor

This will make sure you've got the dependencies installed system-wide, but really, gem install lard should have covered that, so I'll figure out how to cross the T's here. Thanks again!

@hawkins
Copy link
Owner

hawkins commented Oct 27, 2018

I should shut my mouth more - very quick google search revealed this is a rookie gem publisher mistake! 😅 Fixed it with lard@0.0.6, so feel free to run gem uninstall lard and gem install lard to grab the latest version and its dependencies and we can pretend like this never happened. 😉

@hawkins hawkins closed this as completed Oct 27, 2018
@joshsharp
Copy link
Author

Thanks! I'll give it a go soon 😊

@joshsharp
Copy link
Author

Works like a charm 👍

@hawkins
Copy link
Owner

hawkins commented Oct 29, 2018

Awesome! Thanks for both the report and checking it again 😁 👍

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

No branches or pull requests

2 participants