Can't install from homebrew
$ brew install mint-lang
==> Fetching mint-lang/mint-lang/mint-lang
==> Downloading https://github.com/mint-lang/mint/releases/download/0.17.0/mint-0.17.0-osx
==> Downloading from https://objects.githubusercontent.com/github-production-release-asset-2e65b
######################################################################################### 100.0%
Error: mint-lang: SHA256 mismatch
Expected: ebc67f17eeca18cf8187791ad6b496610064b522eec97bc42fbc59266c5d1761
Actual: 017468e8a34e68fc5eb011a09fb6bc516aab2e738ed0c11080762377faab9fb9
File: /Users/aryborenszweig/Library/Caches/Homebrew/downloads/0c379ea78842c93d69a2c6e690cd35c6cfa0865e254484192c93656d6f1568ff--mint-0.17.0-osx
To retry an incomplete download, remove the file above.
Oops, forgot to bump the version number :facepalm: sorry about that, should be fixed with this https://github.com/mint-lang/homebrew-mint-lang/commit/fe7ccbafc68303f3e5457ddad4f2719c30a8b452
Thank you, it works!
Now I get this, but it's the usual ssl error:
dyld[15351]: Library not loaded: /usr/local/opt/[email protected]/lib/libssl.1.1.dylib
Referenced from: /opt/homebrew/Cellar/mint-lang/0.18.0/bin/mint
Reason: tried: '/usr/local/opt/[email protected]/lib/libssl.1.1.dylib' (no such file), '/usr/local/lib/libssl.1.1.dylib' (no such file), '/usr/lib/libssl.1.1.dylib' (no such file)
[1] 15351 abort mint
@asterite how do you fix the last error, I cant find another issue similar.
Already tried, brew link [email protected] --force but nothing happens
I couldn't
My homebrew-installed Mint also had the same error. So I built mint from source following the steps on the installation page. Now my mint doesn't have any error.
Thank you, it works!
Now I get this, but it's the usual ssl error:
dyld[15351]: Library not loaded: /usr/local/opt/[email protected]/lib/libssl.1.1.dylib Referenced from: /opt/homebrew/Cellar/mint-lang/0.18.0/bin/mint Reason: tried: '/usr/local/opt/[email protected]/lib/libssl.1.1.dylib' (no such file), '/usr/local/lib/libssl.1.1.dylib' (no such file), '/usr/lib/libssl.1.1.dylib' (no such file) [1] 15351 abort mint
This happens on ARM machines. I played around it and was able to ln to the correct openssl but then a new error showed up that revealed the real problem:
dyld[3671]: Library not loaded: /usr/local/opt/[email protected]/lib/libssl.1.1.dylib
<...>
Reason: tried: '/usr/local/opt/[email protected]/lib/libssl.1.1.dylib' (mach-o file, but is an incompatible architecture (have 'arm64', need 'x86_64')), '/System/Volumes/Preboot/Cryptexes/OS/usr/local/opt/[email protected]/lib/libssl.1.1.dylib' (no such file), '/usr/local/opt/[email protected]/lib/libssl.1.1.dylib' (mach-o file, but is an incompatible architecture (have 'arm64', need 'x86_64')), '/usr/local/lib/libssl.1.1.dylib' (no such file), '/usr/lib/libssl.1.1.dylib' (no such file, not in dyld cache), '/opt/homebrew/Cellar/[email protected]/1.1.1w/lib/libssl.1.1.dylib' (mach-o file, but is an incompatible architecture (have 'arm64', need 'x86_64')), '/System/Volumes/Preboot/Cryptexes/OS/opt/homebrew/Cellar/[email protected]/1.1.1w/lib/libssl.1.1.dylib' (no such file), '/opt/homebrew/Cellar/[email protected]/1.1.1w/lib/libssl.1.1.dylib' (mach-o file, but is an incompatible architecture (have 'arm64', need 'x86_64')), '/usr/local/lib/libssl.1.1.dylib' (no such file), '/usr/lib/libssl.1.1.dylib' (no such file, not in dyld cache)
I've already opened a ticket #689 to add ARM binaries. It should solve the real cause.
Not about this exactly, but mint-lang runtime name mint conflicts with the mint package(brew) that can be installed with brew.
❯ brew install mint
==> Auto-updating Homebrew...
Adjust how often this is run with HOMEBREW_AUTO_UPDATE_SECS or disable with
HOMEBREW_NO_AUTO_UPDATE. Hide these hints with HOMEBREW_NO_ENV_HINTS (see `man brew`).
...
❯ brew install mint-lang
Warning: No available formula with the name "mint-lang".
==> Searching for similarly named formulae and casks...
Error: No formulae or casks found for mint-lang.
❯ mint
Usage: mint <command> [options]
Run and install Swift Package Manager executables
Commands:
run Install and then run a package
install Install a package. If the version is already installed no action will be taken
uninstall Uninstall a package by name
list List all the currently installed packages. Globally linked packages are marked with *
bootstrap Installs all the packages in a Mintfile
which Prints the full path to the installed executable
help Prints help information
version Prints the current version of this app
The mint runtime is installed with mint-lang, but the execution is still done with mint I know. It seems to be what's opening the issue in the future.
For two reasons, I've decided to end support for distributing with homebrew:
- It conflicts with the
mintpackage (from above command) - It's hard to keep the binary working, which are built with GitHub Actions (
libsslmismatch).
I've already archived the repository for the flask. If anyone wants to maintain a distribution of Mint for homebrew is free to do so in a fork.