yonaskolb / Mint

A package manager that installs and runs executable Swift packages
MIT License
2.26k stars 122 forks source link

Difficulties installing Mint on Linux with Homebrew #210

Open deatondg opened 3 years ago

deatondg commented 3 years ago

I am asking this here as I am not sure where I should really be asking.

I am trying to use Homebrew on Linux (Ubuntu 20.04) to install Mint. I have installed swiftenv using Homebrew, and swift using swiftenv. In my .profile, I have included

export SWIFTENV_ROOT=/home/linuxbrew/.swiftenv
if which swiftenv > /dev/null; then eval "$(swiftenv init -)"; fi

to put swift in my PATH. Running echo $PATH gives

/home/linuxbrew/.swiftenv/shims:/home/linuxbrew/.linuxbrew/bin:/home/linuxbrew/.linuxbrew/sbin:/home/me/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin

and which swift yields /home/linuxbrew/.swiftenv/shims/swift.

However, running brew install mint errors with

swift build --disable-sandbox -c release --arch arm64 --arch x86_64
make: swift: Command not found
make: *** [Makefile:18: build] Error 127

READ THIS: https://docs.brew.sh/Troubleshooting

To explore, I obtain a debug shell after the error with brew install --debug mint In the debug shell, running echo $PATH gives

/home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/shims/linux/super:/usr/bin:/bin:/usr/sbin:/sbin

and which swift turns up nothing.

What am I supposed to do to pass /home/linuxbrew/.swiftenv/shims into brew so that Mint can build? Ideally, the solution would allow me to run (the swiftenv part of) my .profile before building the formula so that I can avoid the possible fragility of swiftenv moving its shims directory.

bdrelling commented 2 years ago

I'm also having issues installing mint via brew. It's discouraging to see that there's no reply on this issue and it's been over six months...

mickeyl commented 2 years ago

Having issues here as well, but in my case it's even more complex, since I'm on arm64 and the official Homebrew does not support arm64-linux easily yet.

A Debian package would solve the bootstrapping issue.