You are not logged in.

#1 2025-02-08 17:20:28

Bombadilious
Member
Registered: 2025-02-05
Posts: 5

[SOLVED] problem installing Ruby programming environment

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

#2 2025-02-08 17:44:39

Scimmia
Fellow
Registered: 2012-09-01
Posts: 12,453

Re: [SOLVED] problem installing Ruby programming environment

$HOME/home/scott/

Think that one through. What do you get when $HOME is expanded?

Offline

#3 2025-02-08 17:54:01

Bombadilious
Member
Registered: 2025-02-05
Posts: 5

Re: [SOLVED] problem installing Ruby programming environment

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

#4 2025-02-08 17:55:04

Scimmia
Fellow
Registered: 2012-09-01
Posts: 12,453

Re: [SOLVED] problem installing Ruby programming environment

`echo $PATH`

Offline

#5 2025-02-08 17:56:10

Bombadilious
Member
Registered: 2025-02-05
Posts: 5

Re: [SOLVED] problem installing Ruby programming environment

I get /home/scott/

Offline

#6 2025-02-08 17:59:42

Scimmia
Fellow
Registered: 2012-09-01
Posts: 12,453

Re: [SOLVED] problem installing Ruby programming environment

That's it? Then you've got an extra space somewhere

Offline

#7 2025-02-08 18:07:16

Bombadilious
Member
Registered: 2025-02-05
Posts: 5

Re: [SOLVED] problem installing Ruby programming environment

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

Board footer

Powered by FluxBB