You are not logged in.

#1 2016-11-07 16:05:14

robby
Member
Registered: 2016-08-07
Posts: 69

[solved]WARN: You don't have /home/rob/.gem/ruby/2.3.0/bin in PATH,

command: gem install rails

[rob@archpc ~]$ gem install rails
WARNING:  You don't have /home/rob/.gem/ruby/2.3.0/bin in your PATH,
	  gem executables will not run.
Successfully installed rails-5.0.0.1
Parsing documentation for rails-5.0.0.1
Done installing documentation for rails after 0 seconds
1 gem installed
[rob@archpc ~]$ rails --version
bash: rails: command not found

command:printenv

PATH=/usr/local/sbin:/usr/local/bin:/usr/bin:/usr/lib/jvm/default/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl

Is there a better way to install rails so I wont have to edit my path variable?

Last edited by robby (2016-11-08 17:56:31)

Offline

#2 2016-11-07 16:32:00

1fallen
Member
From: The Back 9
Registered: 2016-09-12
Posts: 6

Re: [solved]WARN: You don't have /home/rob/.gem/ruby/2.3.0/bin in PATH,

Hello robby I have used the method in the link below successfully.
https://www.digitalocean.com/community/ … x-with-rvm


Determine the direction...Applaud the spirit.

Offline

#3 2016-11-07 18:17:51

robby
Member
Registered: 2016-08-07
Posts: 69

Re: [solved]WARN: You don't have /home/rob/.gem/ruby/2.3.0/bin in PATH,

Followed the guide and now I get this when I open my terminal.

bash: /home/rob/.bashrc: line 11: conditional binary operator expected
bash: /home/rob/.bashrc: line 11: syntax error near `"$HOME/.rvm/scripts/rvm"'
bash: /home/rob/.bashrc: line 11: `[[ -s "$HOME/.rvm/scripts/rvm"]] && source "$HOME/.rvm/scripts/rvm"'
[rob@archpc ~]$ 

bashrc

#
# ~/.bashrc
#

# If not running interactively, don't do anything
[[ $- != *i* ]] && return

alias ls='ls --color=auto'
PS1='[\u@\h \W]\$ '

[[ -s "$HOME/.rvm/scripts/rvm"]] && source "$HOME/.rvm/scripts/rvm"

Offline

#4 2016-11-07 18:24:25

2ManyDogs
Forum Fellow
Registered: 2012-01-15
Posts: 4,648

Re: [solved]WARN: You don't have /home/rob/.gem/ruby/2.3.0/bin in PATH,

robby wrote:
[[ -s "$HOME/.rvm/scripts/rvm"]] && source "$HOME/.rvm/scripts/rvm"

You are missing a space between the close quote and the ]].

Offline

#5 2016-11-07 19:22:42

robby
Member
Registered: 2016-08-07
Posts: 69

Re: [solved]WARN: You don't have /home/rob/.gem/ruby/2.3.0/bin in PATH,

Thank you!

Offline

#6 2016-11-07 19:38:02

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: [solved]WARN: You don't have /home/rob/.gem/ruby/2.3.0/bin in PATH,

1fallen wrote:

Hello robby I have used the method in the link below successfully.
https://www.digitalocean.com/community/ … x-with-rvm

Please don't recommend third-party documentation, it quickly becomes outdated if it isn't already wrong. Use the community provided wiki if you want support here:
https://wiki.archlinux.org/index.php/Ruby

OP: Please remember to mark your thread as [Solved] by editing your first post and prepending it to the title.


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#7 2016-11-07 19:42:52

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,456
Website

Re: [solved]WARN: You don't have /home/rob/.gem/ruby/2.3.0/bin in PATH,

Worse yet, that digitalocean guide starts with a partial upgrade.  Don't follow that if you want your system to keep working.


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#8 2016-11-07 21:05:07

1fallen
Member
From: The Back 9
Registered: 2016-09-12
Posts: 6

Re: [solved]WARN: You don't have /home/rob/.gem/ruby/2.3.0/bin in PATH,

jasonwryan wrote:
1fallen wrote:

Hello robby I have used the method in the link below successfully.
https://www.digitalocean.com/community/ … x-with-rvm

Please don't recommend third-party documentation, it quickly becomes outdated if it isn't already wrong. Use the community provided wiki if you want support here:
https://wiki.archlinux.org/index.php/Ruby

OP: Please remember to mark your thread as [Solved] by editing your first post and prepending it to the title.

Understood... I should have been more specific in regards to the path... meaculpa.
But in my defense I just used it today to install "rails" . But forward now.... I know better.
Kind Regards

Last edited by 1fallen (2016-11-07 21:05:54)


Determine the direction...Applaud the spirit.

Offline

#9 2016-11-08 17:46:53

robby
Member
Registered: 2016-08-07
Posts: 69

Re: [solved]WARN: You don't have /home/rob/.gem/ruby/2.3.0/bin in PATH,

Trilby wrote:

Worse yet, that digitalocean guide starts with a partial upgrade.  Don't follow that if you want your system to keep working.

I did the partial upgrade. Is there anything I should do to "undo" this mistake? Also, does anyone have a comment about my origional post?

Offline

#10 2016-11-08 17:49:42

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: [solved]WARN: You don't have /home/rob/.gem/ruby/2.3.0/bin in PATH,

Just do a -Syu.

As for a better approach to managing gems; I use chruby and ruby-build.


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#11 2016-11-08 17:54:06

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,456
Website

Re: [solved]WARN: You don't have /home/rob/.gem/ruby/2.3.0/bin in PATH,

robby wrote:

I did the partial upgrade...

While such partial upgrades *can* be a real problem, a fair portion of the time they can also be harmless.  The more often you update (`pacman -Syu`) in general, the less likely that a partial upgrade will cause any real trouble.  A pacman -Syu is always the first fix.  If the upgrade proceeds without issue, you're perfectly in the clear.

Partial upgrades are like playing Russian Roulette.  Five out of six times absolutely nothing bad will happen...


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#12 2016-11-08 17:55:29

robby
Member
Registered: 2016-08-07
Posts: 69

Re: [solved]WARN: You don't have /home/rob/.gem/ruby/2.3.0/bin in PATH,

jasonwryan wrote:

Just do a -Syu.

As for a better approach to managing gems; I use chruby and ruby-build.

Thank you for your continued support and quick reply.
My problem was solved when I added

PATH="$(ruby -e 'print Gem.user_dir')/bin:$PATH"

to bashrc

Offline

Board footer

Powered by FluxBB