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

Cannot load parseconfig on Linux #1

Closed
cacharle opened this issue Apr 1, 2020 · 4 comments
Closed

Cannot load parseconfig on Linux #1

cacharle opened this issue Apr 1, 2020 · 4 comments

Comments

@cacharle
Copy link

cacharle commented Apr 1, 2020

After running bundle install --path ./vendor/bundle, I get the following error when I try to run norminette.rb

Traceback (most recent call last):
        2: from ./norminette.rb:5:in `<main>'
        1: from /usr/lib/ruby/2.7.0/rubygems/core_ext/kernel_require.rb:92:in `require'
/usr/lib/ruby/2.7.0/rubygems/core_ext/kernel_require.rb:92:in `require': cannot load such file -- parseconfig (LoadError)

I 'fixed' it by hardcoding the default value of config.conf in the script.

@jgengo
Copy link
Member

jgengo commented Apr 1, 2020

Hello @HappyTramp !

Could you please specify :

  • your OS / distro
  • ruby and bundle version

Did you follow step by step the instructions of your OS?

@cacharle
Copy link
Author

cacharle commented Apr 1, 2020

❯ uname -a
Linux charleslaptop 5.4.27-1-MANJARO #1 SMP PREEMPT Sat Mar 21 16:33:27 UTC 2020 x86_64 GNU/Linux

❯ ruby --version
ruby 2.7.0p0 (2019-12-25 revision 647ee6f091) [x86_64-linux]

❯ bundler --version
Bundler version 2.1.4

It works when in install the dependencies in the global scope.
I just needed to add the path to load parseconfig:
ruby -I ./vendor/bundle/ruby/2.7.0/gems/parseconfig-1.0.8/lib/ norminette.rb
It's weird that bundler path isnt load by default tho.
Sorry for the waste of time

@cacharle cacharle closed this as completed Apr 1, 2020
@jgengo
Copy link
Member

jgengo commented Apr 1, 2020

Thanks for letting me know.

Have a nice day.
-Jordane

@benjaminmerchin
Copy link

❯ uname -a
Linux charleslaptop 5.4.27-1-MANJARO #1 SMP PREEMPT Sat Mar 21 16:33:27 UTC 2020 x86_64 GNU/Linux

❯ ruby --version
ruby 2.7.0p0 (2019-12-25 revision 647ee6f091) [x86_64-linux]

❯ bundler --version
Bundler version 2.1.4

It works when in install the dependencies in the global scope.
I just needed to add the path to load parseconfig:
ruby -I ./vendor/bundle/ruby/2.7.0/gems/parseconfig-1.0.8/lib/ norminette.rb
It's weird that bundler path isnt load by default tho.
Sorry for the waste of time

Hi, I just had exactly the same issue on macOS and found your answer. I finally found the reason after a long time while trying your solution : I had forgotten to enter "bundle" in the terminal. I guess it is the way to set the path. So if anyone else has the same issue for their norminette the solution is just to enter "bundle". Have a nice day !

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

3 participants