Skip to content

Instantly share code, notes, and snippets.

@lcuevastodoit
Created August 11, 2024 20:22
Show Gist options
  • Save lcuevastodoit/bd9eed34a6f0a9c05297e384df40e4b1 to your computer and use it in GitHub Desktop.
Save lcuevastodoit/bd9eed34a6f0a9c05297e384df40e4b1 to your computer and use it in GitHub Desktop.
install rails in fedora silverblue 40
toolbox enter
sudo dnf update && sudo dnf install git curl nodejs
node -v
git clone https://github.com/rbenv/rbenv.git ~/.rbenv
echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bashrc
echo 'eval "$(rbenv init -)"' >> ~/.bashrc
exec $SHELL
git clone https://github.com/rbenv/ruby-build.git ~/.rbenv/plugins/ruby-build
echo 'export PATH="$HOME/.rbenv/plugins/ruby-build/bin:$PATH"' >> ~/.bashrc
exec $SHELL
sudo dnf install perl-FindBin
sudo dnf groupinstall "Development Tools"
sudo dnf install bzip2 openssl-devel libffi-devel readline-devel zlib-devel
sudo dnf install perl-File-Compare
sudo dnf install libyaml-devel
rbenv install 3.0.0
rbenv global 3.0.0
ruby -v
gem install bundler
gem install rails
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.2/install.sh | bash
exec $SHELL
nvm install 14.7
nvm install 20.16
nvm ls
rails new rails_app
cd rails_app/
bundle install
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment