From 8ef10b05aca75d2a3ab593e9035a09646965dc41 Mon Sep 17 00:00:00 2001 From: Andrew Tomaka Date: Tue, 22 Nov 2022 20:14:12 -0500 Subject: [PATCH] Move ruby 3 script to note instead --- README.md | 10 ++++++++++ ruby_with_openssl3.sh | 16 ---------------- 2 files changed, 10 insertions(+), 16 deletions(-) delete mode 100755 ruby_with_openssl3.sh diff --git a/README.md b/README.md index 3bdf98f..e1c2135 100644 --- a/README.md +++ b/README.md @@ -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" +``` diff --git a/ruby_with_openssl3.sh b/ruby_with_openssl3.sh deleted file mode 100755 index 97942f3..0000000 --- a/ruby_with_openssl3.sh +++ /dev/null @@ -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