各位前辈好,我的版本号和安装的软件如下:
julia> using InteractiveUtils; versioninfo()
Julia Version 1.4.1
Platform Info:
OS: Linux (x86_64-linux-gnu)
CPU: Intel(R) Core(TM) i5-8250U CPU @ 1.60GHz
WORD_SIZE: 64
LIBM: libopenlibm
LLVM: libLLVM-8.0.1 (ORCJIT, skylake)
Environment:
JULIA_PKG_SERVER = https://mirrors.bfsu.edu.cn/julia
julia> using Pkg; Pkg.status()
Status `~/.julia/environments/v1.4/Project.toml`
[652e05fd] JuliaZH v1.5.2
[55d2b088] MUMPS v1.0.0
[64499a7a] WriteVTK v1.7.3
[8f399da3] Libdl
安装这个MUMPS一直报错:
build MUMPS
Building MPI ──→ `~/.julia/packages/MPI/z1lDn/deps/build.log`
Building MUMPS → `~/.julia/packages/MUMPS/PeP4P/deps/build.log`
┌ Error: Error building `MUMPS`:
│ ERROR: LoadError: ArgumentError: Package Libdl not found in current path:
│ - Run `import Pkg; Pkg.add("Libdl")` to install the Libdl package.
│
│ Stacktrace:
│ [1] require(::Module, ::Symbol) at ./loading.jl:892
│ [2] include(::String) at ./client.jl:439
│ [3] top-level scope at none:5
│ in expression starting at /home/think/.julia/packages/MUMPS/PeP4P/deps/build.jl:1
└ @ Pkg.Operations /build/julia-98cBbp/julia-1.4.1+dfsg/usr/share/julia/stdlib/v1.4/Pkg/src/Operations.jl:892
(@v1.4) pkg> add Libdl
Resolving package versions...
Updating `~/.julia/environments/v1.4/Project.toml`
[no changes]
Updating `~/.julia/environments/v1.4/Manifest.toml`
[no changes]
添加了Libdl又始终提示安装了,但是package下面又没有这个包,很困惑,每次都提示缺少这个包,但是每次添加又显示已经添加。各位前辈支个招吧。
我自己没有使用过MUMPS,但尝试过MPI.jl。Libdl属于Julia的标准库,应该是安装时自带的,不应该需要从pkg里面下载。想要正确运行MPI可能需要正确设置一些环境变量,具体可以参考他们的说明和issue page.