Julia安装ImageView时报错“Failed to precompile ImageView”

     在Julia中显示图片时,安装使用Images和ImageView,成功add未报错,但在using ImageView时报错,显示未成功预编译。抓耳挠腮了很久都不知道why,后来凭借着被Python折磨很久的经验,既然提示依赖包预编译出错,那我就手动一个个预编译一下最后尝试编译ImageView,果然最后成功编译。看来Julia也和Python一样对于需要多个依赖包的模块也会存在着一些依赖包无法自动编译的问题,所以大家以后遇到类似问题也可以尝试下这种办法。

julia> using ImageView
[ Info: Precompiling ImageView [86fae568-95e7-573e-a6b2-d8a6b900c9ef]
ERROR: could not load library "D:\Julia\Julia 1.5.0\lib\julia\sys.dll"
The paging file is too small for this operation to complete.
ERROR: LoadError: LoadError: Failed to precompile Zlib_jll [83775a58-1f1d-513f-b197-d71354ab007a] to D:\Julia\Julia 1.5.0\share\julia\mylib\compiled\v1.5\Zlib_jll\xjq3Q_XNwrr.ji.
Stacktrace:
error(::String) at .\error.jl:33
compilecache(::Base.PkgId, ::String) at .\loading.jl:1290
_require(::Base.PkgId) at .\loading.jl:1030
require(::Base.PkgId) at .\loading.jl:928
require(::Module, ::Symbol) at .\loading.jl:923
include(::Function, ::Module, ::String) at .\Base.jl:380
include at .\Base.jl:368 [inlined]
include(::String) at D:\Julia\Julia 1.5.0\share\julia\mylib\packages\XML2_jll\QkZTc\src\XML2_jll.jl:1
top-level scope at D:\Julia\Julia 1.5.0\share\julia\mylib\packages\XML2_jll\QkZTc\src\XML2_jll.jl:54
include(::Function, ::Module, ::String) at .\Base.jl:380
include(::Module, ::String) at .\Base.jl:368
top-level scope at none:2
eval at .\boot.jl:331 [inlined]
eval(::Expr) at .\client.jl:467
top-level scope at .\none:3
in expression starting at D:\Julia\Julia 1.5.0\share\julia\mylib\packages\XML2_jll\QkZTc\src\wrappers\x86_64-w64-mingw32.jl:4
in expression starting at D:\Julia\Julia 1.5.0\share\julia\mylib\packages\XML2_jll\QkZTc\src\XML2_jll.jl:47
ERROR: LoadError: LoadError: Failed to precompile XML2_jll [02c8fc9c-b97f-50b9-bbe4-9be30ff0a78a] to D:\Julia\Julia 1.5.0\share\julia\mylib\compiled\v1.5\XML2_jll\xWVg2_XNwrr.ji.
Stacktrace:
error(::String) at .\error.jl:33
compilecache(::Base.PkgId, ::String) at .\loading.jl:1290
_require(::Base.PkgId) at .\loading.jl:1030
require(::Base.PkgId) at .\loading.jl:928
require(::Module, ::Symbol) at .\loading.jl:923
include(::Function, ::Module, ::String) at .\Base.jl:380
include at .\Base.jl:368 [inlined]
include(::String) at D:\Julia\Julia 1.5.0\share\julia\mylib\packages\Gettext_jll\t62UL\src\Gettext_jll.jl:1
top-level scope at D:\Julia\Julia 1.5.0\share\julia\mylib\packages\Gettext_jll\t62UL\src\Gettext_jll.jl:54
include(::Function, ::Module, ::String) at .\Base.jl:380
include(::Module, ::String) at .\Base.jl:368
top-level scope at none:2
eval at .\boot.jl:331 [inlined]
eval(::Expr) at .\client.jl:467
top-level scope at .\none:3
in expression starting at D:\Julia\Julia 1.5.0\share\julia\mylib\packages\Gettext_jll\t62UL\src\wrappers\x86_64-w64-mingw32.jl:5
in expression starting at D:\Julia\Julia 1.5.0\share\julia\mylib\packages\Gettext_jll\t62UL\src\Gettext_jll.jl:47
ERROR: LoadError: LoadError: Failed to precompile Gettext_jll [78b55507-aeef-58d4-861c-77aaff3498b1] to D:\Julia\Julia 1.5.0\share\julia\mylib\compiled\v1.5\Gettext_jll\l4zGN_XNwrr.ji.
Stacktrace:
error(::String) at .\error.jl:33
compilecache(::Base.PkgId, ::String) at .\loading.jl:1290
_require(::Base.PkgId) at .\loading.jl:1030
require(::Base.PkgId) at .\loading.jl:928
require(::Module, ::Symbol) at .\loading.jl:923
include(::Function, ::Module, ::String) at .\Base.jl:380
include at .\Base.jl:368 [inlined]
include(::String) at D:\Julia\Julia 1.5.0\share\julia\mylib\packages\Glib_jll\3m286\src\Glib_jll.jl:1
top-level scope at D:\Julia\Julia 1.5.0\share\julia\mylib\packages\Glib_jll\3m286\src\Glib_jll.jl:50
include(::Function, ::Module, ::String) at .\Base.jl:380
include(::Module, ::String) at .\Base.jl:368
top-level scope at none:2
eval at .\boot.jl:331 [inlined]
eval(::Expr) at .\client.jl:467
top-level scope at .\none:3
in expression starting at D:\Julia\Julia 1.5.0\share\julia\mylib\packages\Glib_jll\3m286\src\wrappers\x86_64-w64-mingw32.jl:6
in expression starting at D:\Julia\Julia 1.5.0\share\julia\mylib\packages\Glib_jll\3m286\src\Glib_jll.jl:43
ERROR: LoadError: LoadError: Failed to precompile Glib_jll [7746bdde-850d-59dc-9ae8-88ece973131d] to D:\Julia\Julia 1.5.0\share\julia\mylib\compiled\v1.5\Glib_jll\S5dsb_XNwrr.ji.
Stacktrace:
error(::String) at .\error.jl:33
compilecache(::Base.PkgId, ::String) at .\loading.jl:1290
_require(::Base.PkgId) at .\loading.jl:1030
require(::Base.PkgId) at .\loading.jl:928
require(::Module, ::Symbol) at .\loading.jl:923
include(::Function, ::Module, ::String) at .\Base.jl:380
include at .\Base.jl:368 [inlined]
include(::String) at D:\Julia\Julia 1.5.0\share\julia\mylib\packages\GTK3_jll\WzI8J\src\GTK3_jll.jl:1
top-level scope at D:\Julia\Julia 1.5.0\share\julia\mylib\packages\GTK3_jll\WzI8J\src\GTK3_jll.jl:50
include(::Function, ::Module, ::String) at .\Base.jl:380
include(::Module, ::String) at .\Base.jl:368
top-level scope at none:2
eval at .\boot.jl:331 [inlined]
eval(::Expr) at .\client.jl:467
top-level scope at .\none:3
in expression starting at D:\Julia\Julia 1.5.0\share\julia\mylib\packages\GTK3_jll\WzI8J\src\wrappers\x86_64-w64-mingw32.jl:4
in expression starting at D:\Julia\Julia 1.5.0\share\julia\mylib\packages\GTK3_jll\WzI8J\src\GTK3_jll.jl:43
ERROR: LoadError: Failed to precompile GTK3_jll [77ec8976-b24b-556a-a1bf-49a033a670a6] to D:\Julia\Julia 1.5.0\share\julia\mylib\compiled\v1.5\GTK3_jll\D35Um_XNwrr.ji.
Stacktrace:
error(::String) at .\error.jl:33
compilecache(::Base.PkgId, ::String) at .\loading.jl:1290
_require(::Base.PkgId) at .\loading.jl:1030
require(::Base.PkgId) at .\loading.jl:928
require(::Module, ::Symbol) at .\loading.jl:923
include(::Function, ::Module, ::String) at .\Base.jl:380
include(::Module, ::String) at .\Base.jl:368
top-level scope at none:2
eval at .\boot.jl:331 [inlined]
eval(::Expr) at .\client.jl:467
top-level scope at .\none:3
in expression starting at D:\Julia\Julia 1.5.0\share\julia\mylib\packages\Gtk\X7HfN\src\Gtk.jl:5
ERROR: LoadError: Failed to precompile Gtk [4c0ca9eb-093a-5379-98c5-f87ac0bbbf44] to D:\Julia\Julia 1.5.0\share\julia\mylib\compiled\v1.5\Gtk\Vjnq0_XNwrr.ji.
Stacktrace:
error(::String) at .\error.jl:33
compilecache(::Base.PkgId, ::String) at .\loading.jl:1290
_require(::Base.PkgId) at .\loading.jl:1030
require(::Base.PkgId) at .\loading.jl:928
require(::Module, ::Symbol) at .\loading.jl:923
include(::Function, ::Module, ::String) at .\Base.jl:380
include(::Module, ::String) at .\Base.jl:368
top-level scope at none:2
eval at .\boot.jl:331 [inlined]
eval(::Expr) at .\client.jl:467
top-level scope at .\none:3
in expression starting at D:\Julia\Julia 1.5.0\share\julia\mylib\packages\ImageView\wTvyH\src\ImageView.jl:5
ERROR: Failed to precompile ImageView [86fae568-95e7-573e-a6b2-d8a6b900c9ef] to D:\Julia\Julia 1.5.0\share\julia\mylib\compiled\v1.5\ImageView\4mtgY_XNwrr.ji.
Stacktrace:
error(::String) at .\error.jl:33
compilecache(::Base.PkgId, ::String) at .\loading.jl:1290
_require(::Base.PkgId) at .\loading.jl:1030
require(::Base.PkgId) at .\loading.jl:928
require(::Module, ::Symbol) at .\loading.jl:923

julia> Pkg.add("Zlib_jll")
  Resolving package versions...
Updating `D:\Julia\Julia 1.5.0\share\julia\mylib\environments\v1.5\Project.toml`
  [83775a58] + Zlib_jll v1.2.11+14
No Changes to `D:\Julia\Julia 1.5.0\share\julia\mylib\environments\v1.5\Manifest.toml`

julia> using Zlib_jll
[ Info: Precompiling Zlib_jll [83775a58-1f1d-513f-b197-d71354ab007a]

julia> using XML2_jll
ERROR: ArgumentError: Package XML2_jll not found in current path:
- Run `import Pkg; Pkg.add("XML2_jll")` to install the XML2_jll package.

Stacktrace:
 require(::Module, ::Symbol) at .\loading.jl:893

julia> Pkg.add("XML2_jll")
  Resolving package versions...
Updating `D:\Julia\Julia 1.5.0\share\julia\mylib\environments\v1.5\Project.toml`
  [02c8fc9c] + XML2_jll v2.9.10+1
No Changes to `D:\Julia\Julia 1.5.0\share\julia\mylib\environments\v1.5\Manifest.toml`

julia> using XML2_jll
[ Info: Precompiling XML2_jll [02c8fc9c-b97f-50b9-bbe4-9be30ff0a78a]

julia> Pkg.add("Gettext_jll")
  Resolving package versions...
Updating `D:\Julia\Julia 1.5.0\share\julia\mylib\environments\v1.5\Project.toml`
  [78b55507] + Gettext_jll v0.20.1+4
No Changes to `D:\Julia\Julia 1.5.0\share\julia\mylib\environments\v1.5\Manifest.toml`

julia> using Gettext_jll
[ Info: Precompiling Gettext_jll [78b55507-aeef-58d4-861c-77aaff3498b1]

julia> Pkg.add("Glib_jll")
  Resolving package versions...
Updating `D:\Julia\Julia 1.5.0\share\julia\mylib\environments\v1.5\Project.toml`
  [7746bdde] + Glib_jll v2.59.0+2
No Changes to `D:\Julia\Julia 1.5.0\share\julia\mylib\environments\v1.5\Manifest.toml`

julia> using Glib_jll
[ Info: Precompiling Glib_jll [7746bdde-850d-59dc-9ae8-88ece973131d]

julia> Pkg.add("GTK3_jll")
  Resolving package versions...
Updating `D:\Julia\Julia 1.5.0\share\julia\mylib\environments\v1.5\Project.toml`
  [77ec8976] + GTK3_jll v3.24.11+2
No Changes to `D:\Julia\Julia 1.5.0\share\julia\mylib\environments\v1.5\Manifest.toml`

julia> using GTK3_jll
[ Info: Precompiling GTK3_jll [77ec8976-b24b-556a-a1bf-49a033a670a6]

julia> Pkg.add("Gtk")
  Resolving package versions...
Updating `D:\Julia\Julia 1.5.0\share\julia\mylib\environments\v1.5\Project.toml`
  [4c0ca9eb] + Gtk v1.1.4
No Changes to `D:\Julia\Julia 1.5.0\share\julia\mylib\environments\v1.5\Manifest.toml`

julia> using Gtk
[ Info: Precompiling Gtk [4c0ca9eb-093a-5379-98c5-f87ac0bbbf44]
┌ Warning: You are using Gtk on Windows which is currently not recommended. Your REPL/IDE and anything depending on task switches will become sluggish and much slower (up to ~85x slower).
└ @ Gtk D:\Julia\Julia 1.5.0\share\julia\mylib\packages\Gtk\X7HfN\src\Gtk.jl:74

julia> Pkg.add("ImageView")
  Resolving package versions...
No Changes to `D:\Julia\Julia 1.5.0\share\julia\mylib\environments\v1.5\Project.toml`
No Changes to `D:\Julia\Julia 1.5.0\share\julia\mylib\environments\v1.5\Manifest.toml`

julia> using ImageView
[ Info: Precompiling ImageView [86fae568-95e7-573e-a6b2-d8a6b900c9ef]
┌ Warning: You are using Gtk on Windows which is currently not recommended. Your REPL/IDE and anything depending on task switches will become sluggish and much slower (up to ~85x slower).
└ @ Gtk D:\Julia\Julia 1.5.0\share\julia\mylib\packages\Gtk\X7HfN\src\Gtk.jl:74
┌ Warning: You are using Gtk on Windows which is currently not recommended. Your REPL/IDE and anything depending on task switches will become sluggish and much slower (up to ~85x slower).
└ @ Gtk D:\Julia\Julia 1.5.0\share\julia\mylib\packages\Gtk\X7HfN\src\Gtk.jl:74

julia>

  • 0
    点赞
  • 3
    收藏
    觉得还不错? 一键收藏
  • 4
    评论
评论 4
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值