From a4e6a5fa6bf31fa6b743853bda2e2ada8a18be46 Mon Sep 17 00:00:00 2001 From: Robert Waffen Date: Fri, 6 Sep 2024 11:10:35 +0200 Subject: [PATCH] fix: use .ruby-version file to determine version in shell commands Signed-off-by: Robert Waffen --- DEVELOPMENT.md | 8 +++++--- MANUAL_INSTALL.md | 5 +++-- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/DEVELOPMENT.md b/DEVELOPMENT.md index 71ad2cbc..0b2c75a6 100644 --- a/DEVELOPMENT.md +++ b/DEVELOPMENT.md @@ -10,12 +10,14 @@ In case you are using an Apple M1 Chip you might run into trouble building Ruby. A work around for that is using the command - rvm reinstall 3.3.5 --with-openssl-dir=$(brew --prefix openssl) --with-readline-dir=$(brew --prefix readline) --with-libyaml-dir=$(brew --prefix libyaml) --disable-dtrace --disable-docs + cd hdm + rvm reinstall $(cat .ruby-version) --with-openssl-dir=$(brew --prefix openssl) --with-readline-dir=$(brew --prefix readline) --with-libyaml-dir=$(brew --prefix libyaml) --disable-dtrace --disable-docs On intel you can proceed with the following: - rvm install 3.3.5 - rvm use 3.3.5 + cd hdm + rvm install $(cat .ruby-version) + rvm use $(cat .ruby-version) ## **Main part** diff --git a/MANUAL_INSTALL.md b/MANUAL_INSTALL.md index 5f536f5a..e3464c54 100644 --- a/MANUAL_INSTALL.md +++ b/MANUAL_INSTALL.md @@ -27,8 +27,9 @@ On Alma 8 you must install libyaml-devel: Now you can install the required ruby version: - rvm install 3.3.5 - rvm use 3.3.5 + cd hdm + rvm install $(cat .ruby-version) + rvm use $(cat .ruby-version) ### **Main part**