Created
January 11, 2024 00:55
-
-
Save kobaltz/fc6d7ebfc8c3cd9f288ed1f077a943cf to your computer and use it in GitHub Desktop.
Raspberry Pi 5 - Ruby 3.3.0 + YJIT
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
``` | |
# Monitor CPU TEMP | |
watch -n1 vcgencmd measure_temp | |
``` | |
``` | |
sudo apt update | |
sudo apt upgrade -y | |
sudo apt install curl zsh -y | |
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" | |
git clone https://github.com/asdf-vm/asdf.git ~/.asdf --branch v0.13.1 | |
nano .zshrc | |
source ~/.devrc | |
nano .devrc | |
. "$HOME/.asdf/asdf.sh" | |
. "$HOME/.asdf/completions/asdf.bash" | |
export RUBY_YJIT_ENABLE=1 | |
asdf plugin add ruby | |
sudo apt-get install autoconf patch build-essential rustc libssl-dev libyaml-dev libreadline6-dev zlib1g-dev libgmp-dev libncurses5-dev libffi-dev libgdbm6 libgdbm-dev libdb-dev uuid-dev -y | |
asdf install ruby 3.3.0 | |
asdf global ruby 3.3.0 | |
gem update --system | |
ruby -v | |
echo 'gem: --no-document' >> ~/.gemrc | |
sudo apt install nodejs npm -y | |
sudo npm -g install yarn | |
rails new example --css bootstrap --js esbuild | |
``` | |
``` | |
git clone https://github.com/rails/rails.git | |
cd rails | |
sudo apt-get install libmariadb-dev libpq-dev sqlite3 -y | |
bundle install -j 4 | |
cd actionview | |
bundle exec rake test | |
PARALLEL_WORKERS=4 | |
bundle exec rake test | |
``` |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment