Could not spawn setenv error

I have installed Julia 1.9 on a POP OS system with i9-139000HX processor and am getting this error:

Activating project at ~/.vscode/extensions/julialang.language-julia-1.47.2/scripts/environments/languageserver/v1.9
[ Info: Starting the Julia Language Server
ERROR: LoadError: IOError: could not spawn setenv(lld -flavor gnu '' -shared -o /home/dgriswold/.config/Code/User/globalStorage/julialang.language-julia/lsdepot/v1/compiled/v1.9/JSON/jl_ziLoBz --whole-archive /home/dgriswold/.config/Code/User/globalStorage/julialang.language-julia/lsdepot/v1/compiled/v1.9/JSON/jl_UepcM0 --no-whole-archive -L/usr/lib -L/usr/lib/julia -L/usr/lib -ljulia -ljulia-internal,[“OPENBLAS_DEFAULT_NUM_THREADS=1”, “PATH=:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin”, “OPENBLAS_NUM_THREADS=1”, “LD_LIBRARY_PATH=/usr/lib/julia:/usr/lib”, “HOME=/home/dgriswold”, “JULIA_LANGUAGESERVER=1”, “JULIA_NUM_THREADS=1”, “JULIA_DEPOT_PATH=/home/dgriswold/.config/Code/User/globalStorage/julialang.language-julia/lsdepot/v1”, “JULIA_LOAD_PATH=/home/dgriswold/.vscode/extensions/julialang.language-julia-1.47.2/scripts/environments/languageserver/v1.9/Project.toml:/home/dgriswold/.config/Code/User/globalStorage/julialang.language-julia/lsdepot/v1/environments/v1.9/Project.toml:/usr/share/julia/stdlib/v1.9”, “OPENBLAS_MAIN_FREE=1”]): no such file or directory (ENOENT)
Stacktrace:
[1] _spawn_primitive(file::String, cmd::Cmd, stdio::Vector{Union{RawFD, IO}})
@ Base ./process.jl:128
[2] #760
@ ./process.jl:139 [inlined]
[3] setup_stdios(f::Base.var"#760#761"{Cmd}, stdios::Vector{Union{RawFD, IO}})
@ Base ./process.jl:223
[4] _spawn
@ ./process.jl:138 [inlined]
[5] run(::Cmd, ::Base.DevNull, ::Vararg{Any}; wait::Bool)
@ Base ./process.jl:479
[6] run
@ ./process.jl:477 [inlined]
[7] link_image (repeats 2 times)
@ ./linking.jl:166 [inlined]
[8] compilecache(pkg::Base.PkgId, path::String, internal_stderr::IO, internal_stdout::IO, keep_loaded_modules::Bool)
@ Base ./loading.jl:2202
[9] compilecache
@ ./loading.jl:2163 [inlined]
[10] _require(pkg::Base.PkgId, env::String)
@ Base ./loading.jl:1805
[11] _require_prelocked(uuidkey::Base.PkgId, env::String)
@ Base ./loading.jl:1660
[12] macro expansion
@ ./loading.jl:1648 [inlined]
[13] macro expansion
@ ./lock.jl:267 [inlined]
[14] require(into::Module, mod::Symbol)
@ Base ./loading.jl:1611
[15] include
@ ./Base.jl:457 [inlined]
[16] include_package_for_output(pkg::Base.PkgId, input::String, depot_path::Vector{String}, dl_load_path::Vector{String}, load_path::Vector{String}, concrete_deps::Vector{Pair{Base.PkgId, UInt128}}, source::String)
@ Base ./loading.jl:2045
[17] top-level scope
@ stdin:3
in expression starting at /home/dgriswold/.vscode/extensions/julialang.language-julia-1.47.2/scripts/packages/LanguageServer/src/LanguageServer.jl:1
in expression starting at stdin:3

The Language Server failed to precompile.
Please make sure you have permissions to write to the LS depot path at
/home/dgriswold/.config/Code/User/globalStorage/julialang.language-julia/lsdepot/v1

┌ Error: Some Julia code in the VS Code extension crashed
└ @ Main ~/.vscode/extensions/julialang.language-julia-1.47.2/scripts/error_handler.jl:15
ERROR: Failed to precompile LanguageServer [2b0e0bc5-e4fd-59b4-8912-456d1b03d8d7] to “/home/dgriswold/.config/Code/User/globalStorage/julialang.language-julia/lsdepot/v1/compiled/v1.9/LanguageServer/jl_AlupWq”.
Stacktrace:
[1] top-level scope
@ ~/.vscode/extensions/julialang.language-julia-1.47.2/scripts/languageserver/main.jl:77
[2] include(mod::Module, _path::String)
@ Base ./Base.jl:457
[3] exec_options(opts::Base.JLOptions)
@ Base ./client.jl:307
[4] _start()
@ Base ./client.jl:522
[Error - 3:57:14 PM] Server initialization failed.
Message: Pending response rejected since connection got disposed
Code: -32097
[Info - 3:57:14 PM] Connection to server got closed. Server will restart.
true
[Error - 3:57:14 PM] Julia Language Server client: couldn’t create connection to server.
Message: Pending response rejected since connection got disposed
Code: -32097

Any suggestions about where to start?

How did you install Julia?

I installed Julia through POP OS’s appstore.

Sounds like they may be providing a broken installation of Julia, missing critical components like the lld linker. Try using the official binaries instead, that you can find at Download Julia, or use juliaup to automatically manage multiple installations; GitHub - JuliaLang/juliaup: Julia installer and version multiplexer

Thanks for the suggestion. I’ll let you know the outcome.

I was able to successfully load julia with juliaup.

Thank you for taking the time to help me Mose!

Donald

Thanks for confirming it. You may want to report the problem to popos developers, providing a completely broken package isn’t a good look (although I’d prefer Linux distributions not to package Julia at all if they have to do it this wrong).