mint icon indicating copy to clipboard operation
mint copied to clipboard

Can't install from homebrew

Open asterite opened this issue 2 years ago • 7 comments

$ 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.

asterite avatar May 25 '23 12:05 asterite

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

gdotdesign avatar May 25 '23 12:05 gdotdesign

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 avatar May 25 '23 13:05 asterite

@asterite how do you fix the last error, I cant find another issue similar.

Already tried, brew link [email protected] --force but nothing happens

hectorAguero avatar Jul 28 '23 03:07 hectorAguero

I couldn't

asterite avatar Jul 28 '23 10:07 asterite

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.

spritefullake avatar Jan 23 '24 03:01 spritefullake

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.

fabasoad avatar May 01 '24 15:05 fabasoad

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.

ShapeLayer avatar Oct 08 '24 03:10 ShapeLayer

For two reasons, I've decided to end support for distributing with homebrew:

  1. It conflicts with the mint package (from above command)
  2. It's hard to keep the binary working, which are built with GitHub Actions (libssl mismatch).

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.

gdotdesign avatar Nov 06 '24 15:11 gdotdesign