-
-
Notifications
You must be signed in to change notification settings - Fork 416
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
Fixing UndefVarError: JULIA_HOME not defined #658
Comments
I had this too on xubunntu 18.04 (bionic beaver). I fixed it by typing "export JULIA_HOME="{path to the directory where julia binary is}". Following which I got this: INFO: Found Jupyter version 4.4.0: jupyter signal (11): Segmentation fault signal (11): Segmentation fault INFO: Found Jupyter version 4.4.0: jupyter signal (11): Segmentation fault scope e |
You can apply this patch diff --git a/deps/kspec.jl b/deps/kspec.jl
index 685d250..21ab6be 100644
--- a/deps/kspec.jl
+++ b/deps/kspec.jl
@@ -41,7 +41,7 @@ function installkernel(name::AbstractString, julia_options::AbstractString...;
juliakspec = joinpath(tempdir(), spec_name)
try
binary_name = Compat.Sys.iswindows() ? "julia.exe" : "julia"
- kernelcmd_array = String[joinpath(JULIA_HOME,"$binary_name"), "-i",
+ kernelcmd_array = String[joinpath(Compat.Sys.BINDIR,"$binary_name"), "-i",
"--startup-file=yes", "--color=yes"]
append!(kernelcmd_array, julia_options)
ijulia_dir = get(ENV, "IJULIA_DIR", dirname(@__DIR__)) # support non-Pkg IJulia installs
diff --git a/src/kernel.jl b/src/kernel.jl
index 7d09688..ea7a5f5 100644
--- a/src/kernel.jl
+++ b/src/kernel.jl
@@ -2,7 +2,7 @@ import IJulia
# workaround #60:
if IJulia.Compat.Sys.isapple()
- ENV["PATH"] = JULIA_HOME*":"*ENV["PATH"]
+ ENV["PATH"] = Compat.Sys.BINDIR*":"*ENV["PATH"]
end
IJulia.init(ARGS) |
As I read in the other post there's a fix for the "JULIA_HOME not defined" problem but I don't understand very well how to repair it.
I'll share the report:
I already have a Jupyter Notebook running, and it's latest release.
The version of the Julia installed in my Ubuntu Xenial is:
julia version 0.7.0-DEV
The question here is, Can someone, please explain how to fix the error? I'm new in this but I want to learn about. My main question is what commands or changes I have to do and the order of execute them to successfully fix the error.
Thanks in advance! Regards,
Franco.
EDIT 1:
The text was updated successfully, but these errors were encountered: