0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

テスト投稿

Last updated at Posted at 2025-08-17
sudo apt update
sudo apt upgrade -y

追加

sudo apt install -y \
 libffi-dev \
 libyaml-dev \
 libgdbm-dev libgdbm-compat-dev \
 libncurses-dev \
 pkg-config
sudo apt install -y git curl build-essential libssl-dev libreadline-dev zlib1g-dev

git clone https://github.com/rbenv/rbenv.git ~/.rbenv
echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bashrc
echo 'eval "$(rbenv init - bash)"' >> ~/.bashrc
source ~/.bashrc

git clone https://github.com/rbenv/ruby-build.git ~/.rbenv/plugins/ruby-build
rbenv install 3.3.4
rbenv global 3.3.4
ruby -v

追加

rbenv install -f 3.3.4
rbenv global 3.3.4
ruby -v
# Node.js
sudo apt install -y nodejs npm

# Yarn
sudo npm install -g yarn
sudo apt install -y postgresql postgresql-contrib libpq-dev
gem install rails -v 7.1.3
rbenv rehash
rails -v
rails new myapp -d postgresql

cd myapp
rails s
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?