I have downloaded julia-1.9.0-alpha1, and in REPL (Terminal) it works OK.`
However, when I try to use it with Plots under Cygwin, Plots does not inits :
davidj@vivojdw ~$ julia19
_
_ _ _(_)_ | Documentation: https://docs.julialang.org
(_) | (_) (_) |
_ _ _| |_ __ _ | Type "?" for help, "]?" for Pkg help.
| | | | | | |/ _` | |
| | |_| | | | (_| | | Version 1.9.0-alpha1 (2022-11-15)
_/ |\__'_|_|_|\__'_| | Official https://julialang.org/ release
|__/ |
julia> @time using Plots
ERROR: InitError: could not load library "C:\Users\davidj\.julia\artifacts\3aff78028a0bb2ad40ebc3ae7e465a52dcbe2730\bin\libcairo-2.dll"
The specified module could not be found.
Stacktrace:
[1] dlopen(s::String, flags::UInt32; throw_error::Bool)
@ Base.Libc.Libdl .\libdl.jl:117
[2] dlopen(s::String, flags::UInt32)
@ Base.Libc.Libdl .\libdl.jl:116
[3] macro expansion
@ C:\Users\davidj\.julia\packages\JLLWrappers\QpMQW\src\products\library_generators.jl:54 [inlined]
[4] __init__()
@ Cairo_jll C:\Users\davidj\.julia\packages\Cairo_jll\HW4xi\src\wrappers\x86_64-w64-mingw32.jl:18
[5] _include_from_serialized(pkg::Base.PkgId, path::String, depmods::Vector{Any})
@ Base .\loading.jl:925
[6] _tryrequire_from_serialized(modkey::Base.PkgId, path::String, sourcepath::String, depmods::Vector{Any})
@ Base .\loading.jl:1032
[7] _require_search_from_serialized(pkg::Base.PkgId, sourcepath::String, build_id::UInt64)
@ Base .\loading.jl:1122
[8] _require(pkg::Base.PkgId, env::String)
@ Base .\loading.jl:1409
[9] _require_prelocked(uuidkey::Base.PkgId, env::String)
@ Base .\loading.jl:1295
[10] macro expansion
@ .\loading.jl:1275 [inlined]
[11] macro expansion
@ .\lock.jl:267 [inlined]
[12] require(into::Module, mod::Symbol)
@ Base .\loading.jl:1238
[13] top-level scope
@ .\timing.jl:273 [inlined]
[14] top-level scope
@ .\REPL[1]:0
during initialization of module Cairo_jll
I can simplyfy it with the “reproducer” :
fn=joinpath(homedir(),raw".julia\artifacts\3aff78028a0bb2ad40ebc3ae7e465a52dcbe2730\bin\libcairo-2.dll")
res_stat=stat(fn)
@show res_stat
res_dlopen=Base.Libc.Libdl.dlopen(fn)
@show res_dlopen
julia> fn=joinpath(homedir(),raw".julia\artifacts\3aff78028a0bb2ad40ebc3ae7e465a52dcbe2730\bin\libcairo-2.dll")
"C:\\Users\\davidj\\.julia\\artifacts\\3aff78028a0bb2ad40ebc3ae7e465a52dcbe2730\\bin\\libcairo-2.dll"
julia> res_stat=stat(fn)
StatStruct for "C:\\Users\\davidj\\.julia\\artifacts\\3aff78028a0bb2ad40ebc3ae7e465a52dcbe2730\\bin\\libcairo-2.dll"
size: 10316921 bytes
device: 3531273235
inode: 956946
mode: 0o100666 (-rw-rw-rw-)
nlink: 1
uid: 0
gid: 0
rdev: 0
blksz: 4096
blocks: 20152
mtime: (24 days ago)
ctime: (24 days ago)
julia> @show res_stat
res_stat = StatStruct("C:\\Users\\davidj\\.julia\\artifacts\\3aff78028a0bb2ad40ebc3ae7e465a52dcbe2730\\bin\\libcairo-2.dll" size: 10316921 bytes device: 3531273235 inode: 956946 mode: 0o100666 (-rw-rw-rw-) nlink: 1 uid: 0 gid: 0 rdev: 0 blksz: 4096 blocks: 20152 mtime: (24 days ago) ctime: (24 days ago))
StatStruct for "C:\\Users\\davidj\\.julia\\artifacts\\3aff78028a0bb2ad40ebc3ae7e465a52dcbe2730\\bin\\libcairo-2.dll"
size: 10316921 bytes
device: 3531273235
inode: 956946
mode: 0o100666 (-rw-rw-rw-)
nlink: 1
uid: 0
gid: 0
rdev: 0
blksz: 4096
blocks: 20152
mtime: (24 days ago)
ctime: (24 days ago)
julia> res_dlopen=Base.Libc.Libdl.dlopen(fn)
ERROR: could not load library "C:\Users\davidj\.julia\artifacts\3aff78028a0bb2ad40ebc3ae7e465a52dcbe2730\bin\libcairo-2.dll"
The specified module could not be found.
Stacktrace:
[1] dlopen(s::String, flags::UInt32; throw_error::Bool)
@ Base.Libc.Libdl .\libdl.jl:117
[2] dlopen
@ .\libdl.jl:116 [inlined]
[3] dlopen(s::String)
@ Base.Libc.Libdl .\libdl.jl:116
[4] top-level scope
@ REPL[5]:1
julia> @show res_dlopen
ERROR: UndefVarError: `res_dlopen` not defined
Stacktrace:
[1] top-level scope
@ show.jl:1128
Works OK in julia-1.8.3 under Cygwin, OK in julia-1.9.0-alpha1 under Windows REPL/Terminal, but fails under Cygwin.
Cygwin version :
davidj@vivojdw ~$ uname -a
CYGWIN_NT-10.0-22621 vivojdw 3.3.6-341.x86_64 2022-09-05 11:15 UTC x86_64 Cygwin
Julia-1.9.0-alpha1 version
julia> versioninfo()
Julia Version 1.9.0-alpha1
Commit 0540f9d739 (2022-11-15 14:37 UTC)
Platform Info:
OS: Windows (x86_64-w64-mingw32)
CPU: 8 Ă— AMD Ryzen 5 3500U with Radeon Vega Mobile Gfx
WORD_SIZE: 64
LIBM: libopenlibm
LLVM: libLLVM-14.0.6 (ORCJIT, znver1)
Threads: 8 on 8 virtual cores
Environment:
JULIA_EDITOR = "C:\Program Files\Notepad++\notepad++.exe"
JULIA_NUM_THREADS = auto
JULIA_PROJECT = @.
How to make it works, or how to get info on what is not working ?
Thanks,