You are not logged in.
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 foundcommand: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_perlIs 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
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
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
[[ -s "$HOME/.rvm/scripts/rvm"]] && source "$HOME/.rvm/scripts/rvm"
You are missing a space between the close quote and the ]].
Offline
Thank you!
Offline
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.
Offline
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
1fallen wrote:Hello robby I have used the method in the link below successfully.
https://www.digitalocean.com/community/ … x-with-rvmPlease 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/RubyOP: 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
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
Just do a -Syu.
As for a better approach to managing gems; I use chruby and ruby-build.
Offline
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
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