Is Julia compatible with Mac OS Monterey?

I plan to upgrade my operating system to the latest Mac OS Monterey. Anyone knows if Julia is compatible with it?

Many thanks.

Hey!

Great question,
Julia is currently compatible with macOS 10.9 Mavericks and later releases.

L

I think there is an issue with updating packages. It’s already being taken care of, judging by the issue in github.

edit: here is the issue

3 Likes

FWIW, I’m on Monterey and Julia runs just fine for me (Intel MacBook).

2 Likes

I am on Monterey with my M1 MacBook, I get the errors mentioned in the issue, but compared to my comments in there, in the final (non-beta) version fro yesterday, the packages seem to still be downloaded and seem to work.

So it seems if you are on an M1 chip, maybe wait for the next Julia release, where the issue mentioned should be fixed (both in 1.6 and in the next 1.7rc).

1 Like

Hmm, encouraged by these messages I also installed Monterey 12.0.1 this morning.

Julia 1.6.3 produces the Curl messages but otherwise seems to work fine.

Julia 1.7-RC2 immediately fails with:

rob@Rob-16-MBP ~ % exec '/Applications/Julia-1.7.app/Contents/Resources/julia/bin/julia'
fatal: error thrown and no exception handler available.
InitError(mod=:Sys, error=ErrorException("PCRE compilation error: unrecognised compile-time option bit(s) at offset 0"))
error at ./error.jl:33
compile at ./pcre.jl:155
compile at ./regex.jl:82
#occursin#442 at ./regex.jl:265 [inlined]
occursin at ./regex.jl:265 [inlined]
isdirpath at ./path.jl:117 [inlined]
normpath at ./path.jl:369
abspath at ./path.jl:426
abspath at ./path.jl:435 [inlined]
__init_build at ./sysinfo.jl:125
__init__ at ./sysinfo.jl:117
jfptr___init___27501.clone_1 at /Applications/Julia-1.7.app/Contents/Resources/julia/lib/julia/sys.dylib (unknown line)
jl_apply_generic at /Applications/Julia-1.7.app/Contents/Resources/julia/lib/julia/libjulia-internal.1.7.dylib (unknown line)
jl_module_run_initializer at /Applications/Julia-1.7.app/Contents/Resources/julia/lib/julia/libjulia-internal.1.7.dylib (unknown line)
_finish_julia_init at /Applications/Julia-1.7.app/Contents/Resources/julia/lib/julia/libjulia-internal.1.7.dylib (unknown line)
julia_init at /Applications/Julia-1.7.app/Contents/Resources/julia/lib/julia/libjulia-internal.1.7.dylib (unknown line)
jl_repl_entrypoint at /Applications/Julia-1.7.app/Contents/Resources/julia/lib/julia/libjulia-internal.1.7.dylib (unknown line)

Building Julia 1.8-DEV fails with:

...

./pcre_h.jl
parse.jl
shell.jl
error during bootstrap:
LoadError(at "sysimg.jl" line 3: LoadError(at "Base.jl" line 234: LoadError(at "shell.jl" line 266: LoadError(at "shell.jl" line 295: MethodError(f=Base.show, args=(Base.GenericIOBuffer{Array{UInt8, 1}}(data=Array{UInt8, (82,)}[0x50, 0x43, 0x52, 0x45, 0x20, 0x63, 0x6f, 0x6d, 0x70, 0x69, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x20, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x3a, 0x20, 0x75, 0x6e, 0x72, 0x65, 0x63, 0x6f, 0x67, 0x6e, 0x69, 0x73, 0x65, 0x64, 0x20, 0x63, 0x6f, 0x6d, 0x70, 0x69, 0x6c, 0x65, 0x2d, 0x74, 0x69, 0x6d, 0x65, 0x20, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x20, 0x62, 0x69, 0x74, 0x28, 0x73, 0x29, 0x20, 0x61, 0x74, 0x20, 0x6f, 0x66, 0x66, 0x73, 0x65, 0x74, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00], readable=true, writable=true, seekable=true, append=false, size=74, maxsize=9223372036854775807, ptr=75, mark=-1), 0x0000000000000000), world=0x0000000000002a86)))))
jl_method_error_bare at /Users/rob/Projects/Julia/julia/src/gf.c:1824
jl_method_error at /Users/rob/Projects/Julia/julia/src/gf.c:1842
jl_lookup_generic_ at /Users/rob/Projects/Julia/julia/src/gf.c:2419 [inlined]
ijl_apply_generic at /Users/rob/Projects/Julia/julia/src/gf.c:2434
print at ./strings/io.jl:35
unknown function (ip: 0x10a004f59)
_jl_invoke at /Users/rob/Projects/Julia/julia/src/gf.c:0 [inlined]
ijl_apply_generic at /Users/rob/Projects/Julia/julia/src/gf.c:2438
print_to_string at ./strings/io.jl:144
string at ./strings/io.jl:185 [inlined]
compile at ./pcre.jl:155
compile at ./regex.jl:75
Regex at ./regex.jl:47
Regex at ./regex.jl:70
_jl_invoke at /Users/rob/Projects/Julia/julia/src/gf.c:0 [inlined]
ijl_apply_generic at /Users/rob/Projects/Julia/julia/src/gf.c:2438
jl_apply at /Users/rob/Projects/Julia/julia/src/./julia.h:1773 [inlined]
do_apply at /Users/rob/Projects/Julia/julia/src/builtins.c:713
@r_str at ./regex.jl:119
jl_invoke_julia_macro at /Users/rob/Projects/Julia/julia/src/ast.c:1126
jl_expand_macros at /Users/rob/Projects/Julia/julia/src/ast.c:1182
jl_expand_macros at /Users/rob/Projects/Julia/julia/src/ast.c:1225
jl_expand_macros at /Users/rob/Projects/Julia/julia/src/ast.c:1225
jl_expand_macros at /Users/rob/Projects/Julia/julia/src/ast.c:1225
jl_expand_macros at /Users/rob/Projects/Julia/julia/src/ast.c:1225
jl_expand_macros at /Users/rob/Projects/Julia/julia/src/ast.c:1225
jl_expand_macros at /Users/rob/Projects/Julia/julia/src/ast.c:1225
jl_expand_macros at /Users/rob/Projects/Julia/julia/src/ast.c:1225
jl_expand_macros at /Users/rob/Projects/Julia/julia/src/ast.c:1225
jl_expand_macros at /Users/rob/Projects/Julia/julia/src/ast.c:1225
jl_expand_macros at /Users/rob/Projects/Julia/julia/src/ast.c:1225
jl_expand_macros at /Users/rob/Projects/Julia/julia/src/ast.c:1225
jl_expand_macros at /Users/rob/Projects/Julia/julia/src/ast.c:1192
ijl_expand_with_loc_warn at /Users/rob/Projects/Julia/julia/src/ast.c:1287
jl_parse_eval_all at /Users/rob/Projects/Julia/julia/src/toplevel.c:1020
ijl_load_ at /Users/rob/Projects/Julia/julia/src/toplevel.c:1070
include at ./boot.jl:366 [inlined]
include at ./Base.jl:15
include at ./Base.jl:17
_jl_invoke at /Users/rob/Projects/Julia/julia/src/gf.c:0 [inlined]
ijl_apply_generic at /Users/rob/Projects/Julia/julia/src/gf.c:2438
jl_apply at /Users/rob/Projects/Julia/julia/src/./julia.h:1773 [inlined]
do_call at /Users/rob/Projects/Julia/julia/src/interpreter.c:126
eval_body at /Users/rob/Projects/Julia/julia/src/interpreter.c:0
jl_interpret_toplevel_thunk at /Users/rob/Projects/Julia/julia/src/interpreter.c:739
top-level scope at Base.jl:234
jl_toplevel_eval_flex at /Users/rob/Projects/Julia/julia/src/toplevel.c:889
jl_eval_module_expr at /Users/rob/Projects/Julia/julia/src/toplevel.c:196 [inlined]
jl_toplevel_eval_flex at /Users/rob/Projects/Julia/julia/src/toplevel.c:676
jl_parse_eval_all at /Users/rob/Projects/Julia/julia/src/toplevel.c:1023
ijl_load_ at /Users/rob/Projects/Julia/julia/src/toplevel.c:1070
include at ./boot.jl:366
_jl_invoke at /Users/rob/Projects/Julia/julia/src/gf.c:0 [inlined]
ijl_apply_generic at /Users/rob/Projects/Julia/julia/src/gf.c:2438
jl_apply at /Users/rob/Projects/Julia/julia/src/./julia.h:1773 [inlined]
do_call at /Users/rob/Projects/Julia/julia/src/interpreter.c:126
eval_body at /Users/rob/Projects/Julia/julia/src/interpreter.c:0
jl_interpret_toplevel_thunk at /Users/rob/Projects/Julia/julia/src/interpreter.c:739
top-level scope at sysimg.jl:3
jl_toplevel_eval_flex at /Users/rob/Projects/Julia/julia/src/toplevel.c:889
jl_parse_eval_all at /Users/rob/Projects/Julia/julia/src/toplevel.c:1023
ijl_load_ at /Users/rob/Projects/Julia/julia/src/toplevel.c:1070
ijl_load at /Users/rob/Projects/Julia/julia/src/toplevel.c:1083
exec_program at /Users/rob/Projects/Julia/julia/src/jlapi.c:521
true_main at /Users/rob/Projects/Julia/julia/src/jlapi.c:574
jl_repl_entrypoint at /Users/rob/Projects/Julia/julia/src/jlapi.c:706

*** This error might be fixed by running `make clean`. If the error persists, try `make cleanall`. ***
make[1]: *** [/Users/rob/Projects/Julia/julia/usr/lib/julia/sys.ji] Error 1
make: *** [julia-sysimg-ji] Error 2
rob@Rob-16-MBP julia % 

Same issue as Cannot start Julia 1.7 rc2

1 Like

Hm, that’s curious. It works for me:

Sure, I believe you. I have Xcode Version 13.1 (13A1030), could be one of many other variables in play here.

I have

➜  ~  /usr/bin/xcodebuild -version
Xcode 13.0
Build version 13A233

What version is your perl (perl -v)? My system has v5.30.0.

➜  ~  perl -v | grep version
This is perl 5, version 30, subversion 3 (v5.30.3) built for darwin-thread-multi-2level
1 Like

The issue is now tracked by Julia 1.7 does not start on macOS Monterey · Issue #42875 · JuliaLang/julia · GitHub.

2 Likes

This link solved both the 1.7-RC2 and 1.8-DEV on Intel for me.

3 Likes