Skip to content

Commit

Permalink
fix: use .ruby-version file to determine version in shell commands
Browse files Browse the repository at this point in the history
Signed-off-by: Robert Waffen <rw@betadots.de>
  • Loading branch information
rwaffen committed Sep 6, 2024
1 parent c0d041b commit 9edd061
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
8 changes: 5 additions & 3 deletions DEVELOPMENT.md
Original file line number Diff line number Diff line change
Expand Up @@ -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**

Expand Down
5 changes: 3 additions & 2 deletions MANUAL_INSTALL.md
Original file line number Diff line number Diff line change
Expand Up @@ -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**

Expand Down

0 comments on commit 9edd061

Please sign in to comment.