You are not logged in.
I'm having an issue that I can't figure out regarding the installation of gem modules. It seems that gem is not being pointed to the right export path.
Here is the output I get when runinng "gem install <module>" in this case it is "solargraph":
WARNING: You don't have /home/scott/.local/share/gem/ruby/3.3.0/bin in your PATH,
gem executables will not run.
I have set up the PATH in the Zsh shell (.zshrc) as such:
export PATH=$HOME/home/scott/.local/share/gem/ruby/3.3.0/bin:/usr/lib/ruby/gems/3.3.0:$PATH
Thanks in advance.
Last edited by Bombadilious (2025-02-08 18:16:22)
Offline
$HOME/home/scott/
Think that one through. What do you get when $HOME is expanded?
Offline
i'm guessing that /home/scott doesn't need to be there but if I remove it I get the same error.
and yes the the directories are all there.
Last edited by Bombadilious (2025-02-08 17:55:23)
Offline
`echo $PATH`
Offline
I get /home/scott/
Offline
That's it? Then you've got an extra space somewhere
Offline
Got it:
export PATH=$HOME/.local/share/gem/ruby/3.3.0/bin:/usr/lib/ruby/gems/3.3.0:$PATH:
thanks for the help.
Last edited by Bombadilious (2025-02-08 18:07:44)
Offline