-
Notifications
You must be signed in to change notification settings - Fork 2.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can't run Modular either Mojo on a Mac M2 #1720
Comments
It looks like you have tried to run code without a function. So, you need to do this: fn main():
print("Hello, world!") |
It says it can't create Can you try starting from scratch. First, remove the PATH and MODULAR_HOME you added for Mojo in your
And add the new PATH and MODULAR_HOME it prompts in your |
Hello jackos, And if I repeat my modular auth I get following error message: "Failed to initialize Crashpad. Crash reporting will not be available. Cause: /home/saket/.modular could not be created: Operation not supported |
@ceha80 It's strange that it's using the path: Make sure that echo $MODULAR_HOME If that's returning The only other thing I can think of is to make sure you're using arm64 homebrew. You can follow the steps here to check and fix that |
Unfortunately, nothing works. I only recently bought this MacBook Air because I'm tired of screwing around with Linux for ages until something works properly. Unfortunately, I have to say that it's at least the same with Mac. Can someone explain to me why this simply doesn't work with a new Mac? |
Review Mojo's priorities
What is your request?
I have installed Modular and Mojo on MacOs M2 as the installation instructions said, but I only get error messages. For example with "modualr --version" I get following error message: "Failed to initialize Crashpad. Crash reporting will not be available. Cause: /home/saket/.modular could not be created: Operation not supported
modular 0.4.1 (2d8afe15)" or when I run a program "mojo test.mojo" I get "Failed to initialize Crashpad. Crash reporting will not be available. Cause: while creating crashpad database: Operation not supported
/Users/ceha/mojo/test.mojo:1:1: error: unable to locate module 'builtin'
fn main()
^
/Users/ceha/mojo/test.mojo:2:1: error: TODO: expressions are not yet supported at the file scope level
print("Hello World")
^
/Users/ceha/mojo/test.mojo:2:1: error: use of unknown declaration 'print'
print("Hello World")
^~~~~
/Users/ceha/mojo/test.mojo:2:1: error: unknown function effect 'print', expected 'raises' or 'capturing'
print("Hello World")
^
/Users/ceha/mojo/test.mojo:2:6: error: expected ':' in function definition
print("Hello World")
^
/Users/ceha/mojo/test.mojo:2:7: error: could not find builtin 'StringLiteral' type
print("Hello World")
^
mojo: error: failed to parse the provided Mojo"
But I've found nozhing about these issues. Please help!
What is your motivation for this change?
I can't work with mojo
Any other details?
No response
The text was updated successfully, but these errors were encountered: