tir38 / ADBX

ADB extensions
2 stars 0 forks source link

Update install docs #23

Open tir38 opened 2 years ago

tir38 commented 2 years ago

After running ax for the first time, the script will try to install any missing gems. You may see this error

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

      bundle install --path vendor/bundle

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

Figure out if I really need to install to system RubyGems (is there a user-specific location?) If not, just update docs to make it clear to enter PW.

tir38 commented 2 years ago

Saw this again after setting up new machine.

tir38 commented 2 years ago

I was hoping that I could easily update inline gemfile to create and install gems in vendor/bundle. I would need to set GEM_HOME env var before requring bundle/inline

https://github.com/rubygems/bundler/pull/7154#issuecomment-495884307

I would also need to make sure that vendor/bundle is created alongside ADBX and not in whatever directory adbx was invoked in. i.e. I think I'd need to use __dir__ https://stackoverflow.com/a/2206731/1650674

It might be easier to just update install instructions to include a $ sudo ax --help command so that first time will install all gems in system directory.