You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Immediately, it returns zsh:1: command not found: julia. This is confusing since which julia in the terminal returns /opt/homebrew/bin/julia. This appears to be related to a general issue with MATLAB with respect to calling system commands.
What worked for me was replacing the function try_find_julia_runtime() with the following
functionruntime= try_find_julia_runtime()
setenv('PATH','/opt/homebrew/bin')
runtime ='julia';
end
Obviously that's not a very generic solution but I'm not really a MATLAB expert.
The text was updated successfully, but these errors were encountered:
Unfortunately I don't have access to a Mac to test this out, but yes that seems rather inconvenient.
From the referenced link, it seems like you probably should be able to run the setenv command in the console, so you shouldn't have to modify try_find_julia_runtime(). Or perhaps more conveniently, add the following line to your startup.m file:
This will override try_find_julia_runtime(). I should add an example highlighting this flag in the README, since this flag was also useful in a previous issue.
I put
jcall.m
into a folder, opened it, and ranImmediately, it returns
zsh:1: command not found: julia
. This is confusing sincewhich julia
in the terminal returns/opt/homebrew/bin/julia
. This appears to be related to a general issue with MATLAB with respect to calling system commands.What worked for me was replacing the function
try_find_julia_runtime()
with the followingObviously that's not a very generic solution but I'm not really a MATLAB expert.
The text was updated successfully, but these errors were encountered: