1.0版本安装MPI问题

大家好,我的1.0版本安装MPI库问题折腾了我好久了,麻烦哪位大神解决下

using InteractiveUtils; versioninfo()
Julia Version 1.0.5
Commit 3af96bcefc (2019-09-09 19:06 UTC)
Platform Info:
  OS: Linux (x86_64-pc-linux-gnu)
  CPU: Intel(R) Core(TM) i5-8250U CPU @ 1.60GHz
  WORD_SIZE: 64
  LIBM: libopenlibm
  LLVM: libLLVM-6.0.0 (ORCJIT, skylake)
Environment:
  JULIA_PKG_SERVER = https://pkg.julialang.org
using Pkg; Pkg.status()
    Status `~/.julia/environments/v1.0/Project.toml`
  [da04e1cc] MPI v0.15.1
  [55d2b088] MUMPS v1.0.0 [`~/.julia/dev/MUMPS`]

每次安装MUMPS就会提示MPI问题

julia> using MUMPS
[ Info: Precompiling MUMPS [55d2b088-9f4e-11e9-26c0-150b02ea6a46]
ERROR: IOError: could not spawn `/home/think/julia-1.0.5/bin/julia -Cnative -J/home/think/julia-1.0.5/lib/julia/sys.so --compile=yes --depwarn=yes -O0 --output-ji /home/think/.julia/compiled/v1.0/MUMPS/HIYWh.ji --output-incremental=yes --startup-file=no --history-file=no --warn-overwrite=yes --color=yes --eval "while !eof(stdin)
    code = readuntil(stdin, '\0')
    eval(Meta.parse(code))
end
"`: no such file or directory (ENOENT)
Stacktrace:
 [1] _jl_spawn(::String, ::Array{String,1}, ::Cmd, ::Tuple{Base.PipeEndpoint,Base.TTY,Base.TTY}) at ./process.jl:367
 [2] setup_stdio(::getfield(Base, Symbol("##495#496")){Cmd,Base.Process}, ::Tuple{Pipe,Base.TTY,Base.TTY}) at ./process.jl:509
 [3] #_spawn#494(::Nothing, ::Function, ::Cmd, ::Tuple{Pipe,Base.TTY,Base.TTY}) at ./process.jl:508
 [4] (::getfield(Base, Symbol("#kw##_spawn")))(::NamedTuple{(:chain,),Tuple{Nothing}}, ::typeof(Base._spawn), ::Cmd, ::Tuple{Pipe,Base.TTY,Base.TTY}) at ./none:0
 [5] #_spawn#491(::Nothing, ::Function, ::Base.CmdRedirect, ::Tuple{Pipe,Base.TTY,Base.TTY}) at ./process.jl:398
 [6] _spawn(::Base.CmdRedirect, ::Tuple{Pipe,Base.TTY,Base.TTY}) at ./process.jl:398
 [7] #open#504(::Bool, ::Bool, ::Function, ::Base.CmdRedirect, ::Base.TTY) at ./process.jl:599
 [8] #open at ./process.jl:0 [inlined]
 [9] open(::Base.CmdRedirect, ::String, ::Base.TTY) at ./process.jl:567
 [10] create_expr_cache(::String, ::String, ::Array{Pair{Base.PkgId,UInt64},1}, ::Base.UUID) at ./loading.jl:1111
 [11] compilecache(::Base.PkgId, ::String) at ./loading.jl:1194
 [12] _require(::Base.PkgId) at ./loading.jl:960
 [13] require(::Base.PkgId) at ./loading.jl:858
 [14] require(::Module, ::Symbol) at ./loading.jl:853

移除MPI安装还是会有问题

(v1.0) pkg> remove MPI
┌ Warning: `MPI` not in project, ignoring
└ @ Pkg.Operations /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.0/Pkg/src/Operations.jl:1155
[ Info: No changes

(v1.0) pkg> add MPI
 Resolving package versions...
  Updating `~/.julia/environments/v1.0/Project.toml`
  [da04e1cc] + MPI v0.15.1
  Updating `~/.julia/environments/v1.0/Manifest.toml`
 [no changes]

using MPI
[ Info: Precompiling MPI [da04e1cc-30fd-572f-bb4f-1f8673147195]
ERROR: IOError: could not spawn `/home/think/julia-1.0.5/bin/julia -Cnative -J/home/think/julia-1.0.5/lib/julia/sys.so --compile=yes --depwarn=yes -O0 --output-ji /home/think/.julia/compiled/v1.0/MPI/nO0XF.ji --output-incremental=yes --startup-file=no --history-file=no --warn-overwrite=yes --color=yes --eval "while !eof(stdin)
    code = readuntil(stdin, '\0')
    eval(Meta.parse(code))
end
"`: no such file or directory (ENOENT)
Stacktrace:
 [1] _jl_spawn(::String, ::Array{String,1}, ::Cmd, ::Tuple{Base.PipeEndpoint,Base.TTY,Base.TTY}) at ./process.jl:367
 [2] setup_stdio(::getfield(Base, Symbol("##495#496")){Cmd,Base.Process}, ::Tuple{Pipe,Base.TTY,Base.TTY}) at ./process.jl:509
 [3] #_spawn#494(::Nothing, ::Function, ::Cmd, ::Tuple{Pipe,Base.TTY,Base.TTY}) at ./process.jl:508
 [4] (::getfield(Base, Symbol("#kw##_spawn")))(::NamedTuple{(:chain,),Tuple{Nothing}}, ::typeof(Base._spawn), ::Cmd, ::Tuple{Pipe,Base.TTY,Base.TTY}) at ./none:0
 [5] #_spawn#491(::Nothing, ::Function, ::Base.CmdRedirect, ::Tuple{Pipe,Base.TTY,Base.TTY}) at ./process.jl:398
 [6] _spawn(::Base.CmdRedirect, ::Tuple{Pipe,Base.TTY,Base.TTY}) at ./process.jl:398
 [7] #open#504(::Bool, ::Bool, ::Function, ::Base.CmdRedirect, ::Base.TTY) at ./process.jl:599
 [8] #open at ./process.jl:0 [inlined]
 [9] open(::Base.CmdRedirect, ::String, ::Base.TTY) at ./process.jl:567
 [10] create_expr_cache(::String, ::String, ::Array{Pair{Base.PkgId,UInt64},1}, ::Base.UUID) at ./loading.jl:1111
 [11] compilecache(::Base.PkgId, ::String) at ./loading.jl:1194
 [12] _require(::Base.PkgId) at ./loading.jl:960
 [13] require(::Base.PkgId) at ./loading.jl:858
 [14] require(::Module, ::Symbol) at ./loading.jl:853

但是MPI安装会出现这个问题:

(v1.0) pkg> using MPI
ERROR: expected command. instead got [using]

julia> using MPI
[ Info: Precompiling MPI [da04e1cc-30fd-572f-bb4f-1f8673147195]
ERROR: IOError: could not spawn `/home/think/julia-1.0.5/bin/julia -Cnative -J/home/think/julia-1.0.5/lib/julia/sys.so --compile=yes --depwarn=yes -O0 --output-ji /home/think/.julia/compiled/v1.0/MPI/nO0XF.ji --output-incremental=yes --startup-file=no --history-file=no --warn-overwrite=yes --color=yes --eval "while !eof(stdin)
    code = readuntil(stdin, '\0')
    eval(Meta.parse(code))
end
"`: no such file or directory (ENOENT)

麻烦哪位大佬给解决下,这个MUMPS就是装不上,高版本又会有其他的错误,很烦啊。

1 个赞