modularml / mojo

The Mojo Programming Language
https://docs.modular.com/mojo
Other
22.05k stars 2.54k forks source link

[BUG]: Manual install on macOS 13.6 fails #1105

Open domesticmouse opened 8 months ago

domesticmouse commented 8 months ago

Bug description

Attempting to manually install mojo fails

$ modular install mojo
modular: error: invalid manifest: root json is missing or invalid.

Steps to reproduce

System information

$ uname -m -r -s -v
Darwin 22.6.0 Darwin Kernel Version 22.6.0: Fri Sep 15 13:41:28 PDT 2023; root:xnu-8796.141.3.700.8~1/RELEASE_ARM64_T6000 arm64
$ mojo -v
zsh: command not found: mojo
$ modular -v
modular 0.2.1 (5144fffe)
Moosems commented 8 months ago

Have you tried reinstalling the modular package manager?

domesticmouse commented 8 months ago
$ brew reinstall modular
==> Fetching modularml/packages/modular
==> Downloading https://dl.modular.com/public/installer/raw/names/modular-mac-arm64/versions/la
Already downloaded: /Users/brettmorgan/Library/Caches/Homebrew/downloads/1f5b8eb993fdfa0f53ff0275ee0a0f95230623bdf58ae0996fd1fd60e3223783--modular-v0.2.1-macos-arm64.tar.gz
==> Reinstalling modularml/packages/modular
==> Caveats
The Modular tool expects or will create a MODULAR_HOME directory.
This defaults to `~/.modular`. You can create your own, and if you do,
please add `MODULAR_HOME=/path/to/your/dir` to your environment.
==> Summary
🍺  /Users/brettmorgan/homebrew/Cellar/modular/0.2.1-final: 6 files, 57.9MB, built in 2 seconds
==> Running `brew cleanup modular`...
Disable this behaviour by setting HOMEBREW_NO_INSTALL_CLEANUP.
Hide these hints with HOMEBREW_NO_ENV_HINTS (see `man brew`).
$ modular install mojo
modular: error: invalid manifest: root json is missing or invalid.
Moosems commented 8 months ago

Very interesting 😄.

domesticmouse commented 8 months ago

Might be due to my non-standard homebrew location in my homedir.

Moosems commented 8 months ago

Possibly 🙂.