Missing Homebrew OpenSSL path check on M1 Macs (2024)

(1)By BPK (bpk000) on 2021-02-06 21:42:47[source]

The build script fails to check for SSL in /opt/homebrew/opt/openssl which seems to be the default location when installing OpenSSL via Homebrew on Apple Silicon (M1) Macs.

I ran into this issue when trying to build Fossil (version 2.15, 324154e821) on a new M1 Mac Mini (Big Sur, macOS 11.2).

Homebrew now installs to /opt/homebrew for macOS on Apple Silicon and continues to use /usr/local for macOS on Intel. See Homebrew install docs.

Initially running ./configure, yielded the following SSL checks:

Checking for system ssl...noChecking for ssl in /usr/sfw...noChecking for ssl in /usr/local/ssl...noChecking for ssl in /usr/lib/ssl...noChecking for ssl in /usr/ssl...noChecking for ssl in /usr/pkg...noChecking for ssl in /usr/local...noChecking for ssl in /usr...noChecking for ssl in /usr/local/opt/openssl...no

This solved the problem for me:

$ ./configure --with-openssl=/opt/homebrew/opt/openssl

I'm filing this as a bug because the Fossil SSL wiki mentions:

...we recomend that you use Homebrew on macOS to install OpenSSL as above. Fossil's build system will seek it out and use it automatically.

Thanks to everyone working on Fossil.

(2)By Warren Young (wyoung) on 2021-02-06 23:28:05in reply to 1[link][source]

I expect that's a symlink to somewhere under /usr/local/Cellar, and that would be a better place to look for this.

The core problem here is that Apple hasn't shipped an up-to-date OpenSSL in years and years, probably part of this whole anti-GPL thing they've got going on, so we've got to go digging for third-party installs.

I've got an M1 coming, but it's somewhere between here and China at the moment. Maybe someone will beat me to a well-considered fix before it arrives.

(4)By BPK (bpk000) on 2021-02-07 18:12:47in reply to 2[link][source]

Running brew install openssl@1.1 ends up creating both

/opt/homebrew/opt/openssl

and

/opt/homebrew/opt/openssl/openssl@1.1

each is a symlink to

/opt/homebrew/Cellar/openssl@1.1/1.1.1i

In my original post, I suggested checking /opt/homebrew/opt/openssl since that seemed like the equivalent to the existing /usr/local/opt/openssl check (Homebrew Apple Silicon path vs. Homebrew Intel path).

BTW, on my old Intel Mac, /usr/local/opt/openssl is a symlink pointing to /usr/local/Cellar/openssl@1.1/1.1.1h.

Hope that helps.

(10)By Warren Young (wyoung) on 2021-02-12 00:35:46in reply to 4[link][source]

Having received my M1, I'm posting to confirm this diagnosis and to point out that it's an ongoing thing, not a one-time shift. I don't know who decided this was a good idea, but as long as Homebrew remains so popular, it's something we'll have to accommodate on the Fossil side of things.

(3)By Richard Hipp (drh) on 2021-02-06 23:39:23in reply to 1[link][source]

Really? Because on my Big Sur system in which I just ran "brew upgrade openssl"to get OpenSSL 1.1.1i, it still puts the libraries in /usr/local/opt/openssl.

Nevertheless, I have added /opt/homebrew/opt/openssl to the list of directoriessearched. Please try again with the latest trunk check-in and report backwhether or not the problem has been cleared.

Can somebody else with a Mac run brew to install OpenSSL and report back whatdirectory it uses, to confirm bpk000's report?

(5)By BPK (bpk000) on 2021-02-07 18:15:51in reply to 3[link][source]

Thank you. I can confirm that your check-in (Fossil 2.15, 17af40efff) works as expected. When running ./configure, Homebrew's OpenSSL install is found at /opt/homebrew/opt/openssl. Here's the relavent output:

Checking for system ssl...noChecking for ssl in /usr/sfw...noChecking for ssl in /usr/local/ssl...noChecking for ssl in /usr/lib/ssl...noChecking for ssl in /usr/ssl...noChecking for ssl in /usr/pkg...noChecking for ssl in /usr/local...noChecking for ssl in /usr...noChecking for ssl in /usr/local/opt/openssl...noChecking for ssl in /opt/homebrew/opt/openssl...okHTTPS support enabled

Like you, on my old Intel Mac, Homebrew has OpenSSL at /usr/local/opt/openssl which is a symlink to /usr/local/Cellar/openssl@1.1/1.1.1h. (I'm unsure how up-to-date that one is).

On my new M1 Mac, running brew install openssl@1.1 ends up creating both

/opt/homebrew/opt/openssl

and

/opt/homebrew/opt/openssl/openssl@1.1

each is a symlink to

/opt/homebrew/Cellar/openssl@1.1/1.1.1i

For background, the M1 Mac was fresh from the factory. Fossil was my first attempted software build on the machine. That first time through was when I encountered the issue of no OpenSSL being found. After that, I installed Homebrew and subsequently used it to install OpenSSL (brew install openssl@1.1). Currently, that's the one and only package I've installed.

I found this Github issue for Homebrew's support of ARM/M1 where they mention a new prefix for macOS ARM:

Set and document the expected default prefix for macOS Intel Homebrew, macOS ARM Homebrew (/opt/homebrew) and Homebrew on Linux

If I can help in any way, please let me know. Again, many thanks.

See Also
ClarisPKB

(6)By Richard Hipp (drh) on 2021-02-07 18:37:07in reply to 5[link][source]

If I can help in any way, please let me know.

Do the precompiled binaries for Mac run on your new M1?

Can you build a Fossil on your M1 and then make it available for usIntel users to try out?

(7)By BPK (bpk000) on 2021-02-07 19:12:05in reply to 6[link][source]

I just built the most recent check-in (eb1a722f). You can access it from my Dropbox account. I included the output from configure and make in case that's helpful.

This may provide a direct download from Dropbox:

https://www.dropbox.com/s/oitn3g7gsafe7bi/Fossil-eb1a722f-build.zip?dl=1

I'll test the precompiled binaries and report back.

(8)By BPK (bpk000) on 2021-02-07 20:19:19in reply to 6[link][source]

I downloaded and tested the preview of 2.15 and 2.14. Both seem to work fine with basic commands. Command summary included below. Please let me know if there is anything else I can do to help.

Note that I have installed Rosetta, but my Terminal is NOT opened using Rosetta as detailed in this article.

Calling the file command on my local build shows:

$ file Fossil-eb1a722f/fossilFossil-eb1a722f/fossil: Mach-O 64-bit executable arm64

The prebuilt binaries show:

$ file ./fossil-macosx-2.15-preview-20210205/fossil./fossil-macosx-2.15-preview-20210205/fossil: Mach-O 64-bit executable x86_64$ file ./fossil-macosx-2.14/fossil ./fossil-macosx-2.14/fossil: Mach-O 64-bit executable x86_64

Summary of commands used to test both prebuilt binaries:

$ archarm64$ fossil infoconfig-db: /Users/bpk/.fossilfossil: /Users/bpk/bin/fossilversion: 2.15 [1ba06268ad] 2021-02-05 18:27:03 UTC$ fossil init test.fossilproject-id: e219daab62c32ba7155af311b90e9e7d28ed70cfserver-id: c8c4efcae3c9cc44501a044b45480067c563c858admin-user: bpk (initial password is "SehRPDiMfw")$ fossil open test.fossil --forceproject-name: <unnamed>repository: /Users/bpk/Downloads/fossil-macosx-2.15-preview-test/test.fossillocal-root: /Users/bpk/Downloads/fossil-macosx-2.15-preview-test/config-db: /Users/bpk/.fossilproject-code: e219daab62c32ba7155af311b90e9e7d28ed70cfcheckout: 16eb00c425b48aad09244d231f9a571f2a4c6ca0 2021-02-07 19:31:59 UTCtags: trunkcomment: initial empty check-in (user: bpk)check-ins: 1$ echo 'New file' > new.txt$ fossil extrasnew.txt$ fossil add new.txtADDED new.txt$ fossil statusrepository: /Users/bpk/Downloads/fossil-macosx-2.15-preview-test/test.fossillocal-root: /Users/bpk/Downloads/fossil-macosx-2.15-preview-test/config-db: /Users/bpk/.fossilcheckout: 16eb00c425b48aad09244d231f9a571f2a4c6ca0 2021-02-07 19:31:59 UTCtags: trunkcomment: initial empty check-in (user: bpk)ADDED new.txt$ fossil commit -m "Adds new.txt file."New_Version: d514605d5119375d5f8dcebb105b30201f4d730d5305b6d1e85cabacbb3519e1$ fossil timeline=== 2021-02-07 ===19:37:20 [d514605d51] *CURRENT* Adds new.txt file. (user: bpk tags: trunk)19:31:59 [16eb00c425] initial empty check-in (user: bpk tags: trunk)+++ no more data (2) +++$ fossil uiListening for HTTP requests on TCP port 8080(Went to configuration and gave project a name.)^C$ fossil infoproject-name: Test Projectrepository: /Users/bpk/Downloads/fossil-macosx-2.15-preview-test/test.fossillocal-root: /Users/bpk/Downloads/fossil-macosx-2.15-preview-test/config-db: /Users/bpk/.fossilproject-code: e219daab62c32ba7155af311b90e9e7d28ed70cfcheckout: d514605d5119375d5f8dcebb105b30201f4d730d 2021-02-07 19:37:20 UTCparent: 16eb00c425b48aad09244d231f9a571f2a4c6ca0 2021-02-07 19:31:59 UTCtags: trunkcomment: Adds new.txt file. (user: bpk)check-ins: 2

(9)By BPK (bpk000) on 2021-02-07 20:40:29in reply to 6[link][source]

Homebrew also has prebuilt binaries of Fossil 2.14:

Big Sur, ARM64: https://homebrew.bintray.com/bottles/fossil-2.14.arm64_big_sur.bottle.tar.gz
sha256: d0ac7394862b01c94118282bc7fe014ecc004818d0bdb5d7ad62ead3a4f8c789

Big Sur, x86_64: https://homebrew.bintray.com/bottles/fossil-2.14.big_sur.bottle.tar.gz
sha256: 47b62a05daf6fc12735cc10ac3d661a058df73c918c0d425c8a06b5d33ceae40

Missing Homebrew OpenSSL path check on M1 Macs (2024)
Top Articles
Using your Skrill card
Crypto.com | Securely Buy, Sell & Trade Bitcoin, Ethereum and 350+ Altcoins
Tattoo Shops Lansing Il
Cranes For Sale in United States| IronPlanet
Frederick County Craigslist
Star Sessions Imx
Regal Amc Near Me
Overnight Cleaner Jobs
Us 25 Yard Sale Map
Lenscrafters Westchester Mall
Mail Healthcare Uiowa
Sinai Web Scheduler
Carter Joseph Hopf
Craigslist Free Grand Rapids
Wnem Radar
Persona 4 Golden Taotie Fusion Calculator
Housework 2 Jab
iLuv Aud Click: Tragbarer Wi-Fi-Lautsprecher für Amazons Alexa - Portable Echo Alternative
Nutrislice Menus
2 Corinthians 6 Nlt
Mflwer
623-250-6295
Gentle Dental Northpointe
If you bought Canned or Pouched Tuna between June 1, 2011 and July 1, 2015, you may qualify to get cash from class action settlements totaling $152.2 million
Healthier Homes | Coronavirus Protocol | Stanley Steemer - Stanley Steemer | The Steem Team
MLB power rankings: Red-hot Chicago Cubs power into September, NL wild-card race
Juicy Deal D-Art
Morse Road Bmv Hours
Is Light Raid Hard
1636 Pokemon Fire Red U Squirrels Download
Tamil Movies - Ogomovies
Emuaid Max First Aid Ointment 2 Ounce Fake Review Analysis
Rek Funerals
Stouffville Tribune (Stouffville, ON), March 27, 1947, p. 1
Perry Inhofe Mansion
Life Insurance Policies | New York Life
Delaware judge sets Twitter, Elon Musk trial for October
Elizaveta Viktorovna Bout
Anya Banerjee Feet
Lake Andes Buy Sell Trade
Lonely Wife Dating Club בקורות וחוות דעת משתמשים 2021
Callie Gullickson Eye Patches
Cleveland Save 25% - Lighthouse Immersive Studios | Buy Tickets
Sara Carter Fox News Photos
Frontier Internet Outage Davenport Fl
Tyco Forums
Myra's Floral Princeton Wv
Mejores páginas para ver deportes gratis y online - VidaBytes
Mytmoclaim Tracking
St Als Elm Clinic
Julies Freebies Instant Win
Tanger Outlets Sevierville Directory Map
Latest Posts
Article information

Author: Pres. Carey Rath

Last Updated:

Views: 6039

Rating: 4 / 5 (41 voted)

Reviews: 80% of readers found this page helpful

Author information

Name: Pres. Carey Rath

Birthday: 1997-03-06

Address: 14955 Ledner Trail, East Rodrickfort, NE 85127-8369

Phone: +18682428114917

Job: National Technology Representative

Hobby: Sand art, Drama, Web surfing, Cycling, Brazilian jiu-jitsu, Leather crafting, Creative writing

Introduction: My name is Pres. Carey Rath, I am a faithful, funny, vast, joyous, lively, brave, glamorous person who loves writing and wants to share my knowledge and understanding with you.