Andre Antonov

Joined

6,710 Experience
67 Lessons Completed
0 Questions Solved

Activity

Posted in Deploy Ubuntu 18.04 Bionic Beaver Discussion

Ubuntu 18.04, Digitalocean

rbenv getting error with information that it can be installed with apt package.

root@testinghttp:~# git clone https://github.com/rbenv/rbenv-vars.git ~/.rbenv/plugins/rbenv-vars
Cloning into '/root/.rbenv/plugins/rbenv-vars'...
remote: Enumerating objects: 97, done.
remote: Total 97 (delta 0), reused 0 (delta 0), pack-reused 97
Unpacking objects: 100% (97/97), done.
root@testinghttp:~# exec $SHELL

Command 'rbenv' not found, but can be installed with:

apt install rbenv

root@testinghttp:~# rbenv install 2.6.5

Command 'rbenv' not found, but can be installed with:

rbenv cloned.

-rw-------  1 root root 1057 Dec 21 13:58 .bash_history
-rw-r--r--  1 root root 3222 Dec 21 13:57 .bashrc
drwx------  2 root root 4096 Dec 21 13:53 .cache/
-rw-r--r--  1 root root    0 Dec 21 13:37 .cloud-locale-test.skip
drwxr-xr-x  3 root root 4096 Dec 21 14:08 .gem/
-rw-r--r--  1 root root  148 Aug 17  2015 .profile
drwxr-xr-x  5 root root 4096 Dec 21 14:07 .rbenv/
drwx------  2 root root 4096 Dec 21 13:37 .ssh/
-rw-------  1 root root  761 Dec 21 14:09 .viminfo

.bashrc

# enable programmable completion features (you don't need to enable
# this, if it's already enabled in /etc/bash.bashrc and /etc/profile
# sources /etc/bash.bashrc).
#if [ -f /etc/bash_completion ] && ! shopt -oq posix; then
#    . /etc/bash_completion
#fi
export PATH="$HOME/.rbenv/bin:$PATH"
eval "$(rbenv init -)"
export PATH="$HOME/.rbenv/plugins/ruby-build/bin:$PATH"

please give it a fresh install test :thumbsup

logo Created with Sketch.

Screencast tutorials to help you learn Ruby on Rails, Javascript, Hotwire, Turbo, Stimulus.js, PostgreSQL, MySQL, Ubuntu, and more. Icons by Icons8

© 2022 GoRails, LLC. All rights reserved.