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

Linux Setup Instructions incomplete #553

Closed
colinsauze opened this issue Mar 2, 2021 · 2 comments
Closed

Linux Setup Instructions incomplete #553

colinsauze opened this issue Mar 2, 2021 · 2 comments

Comments

@colinsauze
Copy link

colinsauze commented Mar 2, 2021

The Linux Setup instructions (in setup.md) miss several steps that are required (at least for me on Ubuntu 18.04) to get the Gems configured and installed.

After running gem install bundler --user-install I get the error:

Fetching: bundler-2.2.12.gem (100%)
WARNING:  You don't have /home/colin/.gem/ruby/2.5.0/bin in your PATH,
          gem executables will not run.
Successfully installed bundler-2.2.12
Parsing documentation for bundler-2.2.12
Installing ri documentation for bundler-2.2.12
Done installing documentation for bundler after 3 seconds
1 gem installed

so after running this the bundle(r) command is not in my path. I either need to add ~/.gem/ruby/2.5.0/bin to my path or prefix all commands with it.

When trying to run bundle update

I get the error:

Fetching gem metadata from https://rubygems.org/...........
Resolving dependencies.....
Following files may not be writable, so sudo is needed:
  /usr/local/bin                                                                                                                                                                                      
  /var/lib/gems/2.5.0                                                                                                                                                                                 
Fetching concurrent-ruby 1.1.8
Fetching zeitwerk 2.4.2
Fetching minitest 5.14.4
Fetching thread_safe 0.3.6


Your user account isn't allowed to install to the system RubyGems.
  You can cancel this installation and run:

      bundle config set --local path 'vendor/bundle'
      bundle install

  to install the gems into ./vendor/bundle/, or you can enter your password
  and install the bundled gems to RubyGems using sudo.

  Password: 

This can be solved by running bundle config set --local path 'vendor/bundle' and bundle install first.

@colinsauze colinsauze changed the title Linux Setup Instructions missing Linux Setup Instructions incomplete Mar 2, 2021
@fmichonneau fmichonneau transferred this issue from carpentries/lesson-example Mar 4, 2021
@maxim-belkin
Copy link
Contributor

maxim-belkin commented Mar 4, 2021

@fmichonneau, I think lesson-example was the right repo for this report... This repo doesn't provide setup.md.
The order of bundle config flags will be fixed in #495 was fixed in #559.

@fmichonneau
Copy link
Contributor

I think that was addressed in the installation instructions in the lesson-example repository.

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