Move ruby 3 script to note instead

This commit is contained in:
Andrew Tomaka 2022-11-22 20:14:12 -05:00
parent 8bf2d214b6
commit 8ef10b05ac
Signed by: atomaka
GPG key ID: 61209BF70A5B18BE
2 changed files with 10 additions and 16 deletions

View file

@ -21,3 +21,13 @@ brew edit PACKAGE # where there is no local directory named PACKAGE
# add compile options
brew install -s PACKAGE
```
* Minor Ruby conflicts with brew/OpenSSL version/Ruby. This has worked, but also
caused problems
```
export PATH="/home/linuxbrew/.linuxbrew/opt/openssl@3/bin:$PATH"
export LDFLAGS="-L/home/linuxbrew/.linuxbrew/opt/openssl@3/lib"
export CPPFLAGS="-I/home/linuxbrew/.linuxbrew/opt/openssl@3/include"
export PKG_CONFIG_PATH="/home/linuxbrew/.linuxbrew/opt/openssl@3/lib/pkgconfig"
```

View file

@ -1,16 +0,0 @@
#!/usr/bin/env bash
if [ $# -ne a]; then
echo Specify Ruby version
exit
fi
major=$(echo $1 | cut -d. -f1)
minor=$(echo $1 | cut -d. -f2)
patch=$(echo $1 | cut -d. -f3)
PATH="/home/linuxbrew/.linuxbrew/opt/openssl@3/bin:$PATH" \
LDFLAGS="-L/home/linuxbrew/.linuxbrew/opt/openssl@3/lib" \
CPPFLAGS="-I/home/linuxbrew/.linuxbrew/opt/openssl@3/include" \
PKG_CONFIG_PATH="/home/linuxbrew/.linuxbrew/opt/openssl@3/lib/pkgconfig" \
rbenv install $1