Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Ruby version to 3.4.1 for ubuntu #66

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,6 @@ To install Ruby on Rails development environment, copy and paste this line in th

sudo apt-get install curl
bash <(curl -sL https://raw.github.com/railsgirls/installation-scripts/master/rails-install-ubuntu.sh)
source ~/.profile


12 changes: 6 additions & 6 deletions rails-install-ubuntu.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ echo "Install packages. Enter your password when asked."
sudo apt-get --ignore-missing install build-essential git-core curl openssl libssl-dev libcurl4-openssl-dev zlib1g zlib1g-dev libreadline6-dev libyaml-dev libsqlite3-dev libsqlite3-0 sqlite3 libxml2-dev libxslt1-dev libffi-dev software-properties-common libgdm-dev libncurses5-dev automake autoconf libtool bison postgresql postgresql-contrib libpq-dev libc6-dev -y

echo "Install Node.js"
sudo apt-get install -y snapd
sudo snap install node --classic --channel=18
curl -fsSL https://deb.nodesource.com/setup_23.x | sudo bash -
sudo apt-get install -y nodejs

echo "Install ImageMagick for image processing"
sudo apt-get install imagemagick --fix-missing -y
Expand Down Expand Up @@ -45,7 +45,7 @@ echo "Load rbenv config in install script"
eval "$($HOME/.rbenv/bin/rbenv init - bash)"

echo "Install Ruby"
RUBY_VERSION=3.1.3
RUBY_VERSION=3.4.1
rbenv install "$RUBY_VERSION"
rbenv global "$RUBY_VERSION"

Expand All @@ -56,11 +56,11 @@ gem install bundler rails
echo -e "\n- - - - - -\n"
echo -e "Now we are going to print some information to check that everything is done:\n"

echo -n "Should be SQLite 3.22.0 or higher: sqlite "
echo -n "Should be SQLite 3.45.1 or higher: sqlite "
sqlite3 --version
echo -n "Should be Ruby 3.1.3 or higher: "
echo -n "Should be Ruby $RUBY_VERSION or higher: "
ruby -v | cut -d " " -f 2
echo -n "Should be Rails 7.0 or higher: "
echo -n "Should be Rails 8.0 or higher: "
rails -v
echo -e "\n- - - - - -\n"

Expand Down