I have already installed openssl via homebrew using brew install openssl and added the following lines to Makevars LDFLAGS=-L/usr/local/opt/openssl@3/lib CPPFLAGS=-I/usr/local/opt/openssl@3/include
I think you have the wrong homebrew installed on your machine. It looks like you have intel homebrew; you need the M1 homebrew, which lives in /opt/homebrew/bin and not /usr/local.
When i try to install openssl by running
install.packages("openssl")
I get the following very long error.I have already installed openssl via homebrew using
brew install openssl
and added the following lines toMakevars
LDFLAGS=-L/usr/local/opt/openssl@3/lib CPPFLAGS=-I/usr/local/opt/openssl@3/include
This is the Makevars file that i currently have.
I have no idea what error is telling me, i think i have problems with both gcc and openssl
Edit : Removing
CFLAGS
andCXXFLAGS
lines from Makevars returns different error