For those of you who enjoy the excitement of running dangerous commands:
Replace “.log” with the file extension you wish to remove
find . -type f -name "*.log" -exec rm -f {} \;Install rbenv
sudo apt install rbenv
Then initialize the environment:
rbenv init
nano ~/.bashrc
Type or paste the output above, Ctrl +x to save
Apply:
source .bashrc
Install ruby-build
Install git:
sudo apt install git
mkdir -p "$(rbenv root)"/plugins
Clone to local:
git clone https://github.com/rbenv/ruby-build.git "$(rbenv root)"/plugins/ruby-build
curl -fsSL https://github.com/rbenv/rbenv-installer/raw/main/bin/rbenv-doctor | bash
Now install Ruby:
print ruby versions available
rbenv install --list
Install the latest version unless you have a reason otherwise:
rbenv install 3.3.0
On this system there was an error compiling at this point with fiddle, as well as psych:
Therefore manually installing the following filled dependencies
sudo apt install libtool
sudo apt install libffi-dev
rbenv global 3.3.0
print installed ruby version
ruby -v