Linux操作系统安装库时出现 LoadError: ReadOnlyMemoryError()

各位好,我在Linux操作系统安装MySQL库时出现了 ReadOnlyMemoryError 这个问题,导致

MySQL库无法使用,报错代码如下。操作系统为Ubuntu 18.04.3,Julia版本为1.4.1,32位。我对Linux操作系统不太熟悉,这是否可能是操作系统权限之类的原因?

julia> using MySQL
[ Info: Precompiling MySQL [39abe10b-433b-5dbd-92d4-e302a9df00cd]
ERROR: LoadError: ReadOnlyMemoryError()
Stacktrace:
 [1] top-level scope at /home/cyy/.julia/packages/DecFP/quvcm/src/DecFP.jl:214
 [2] include(::Module, ::String) at ./Base.jl:377
 [3] top-level scope at none:2
 [4] eval at ./boot.jl:331 [inlined]
 [5] eval(::Expr) at ./client.jl:449
 [6] top-level scope at ./none:3
in expression starting at /home/cyy/.julia/packages/DecFP/quvcm/src/DecFP.jl:199
ERROR: LoadError: Failed to precompile DecFP [55939f99-70c6-5e9b-8bb0-5071ed7d61fd] to /home/cyy/.julia/compiled/v1.4/DecFP/QmCKT_VDVpo.ji.
Stacktrace:
 [1] error(::String) at ./error.jl:33
 [2] compilecache(::Base.PkgId, ::String) at ./loading.jl:1272
 [3] _require(::Base.PkgId) at ./loading.jl:1029
 [4] require(::Base.PkgId) at ./loading.jl:927
 [5] require(::Module, ::Symbol) at ./loading.jl:922
 [6] include(::Module, ::String) at ./Base.jl:377
 [7] top-level scope at none:2
 [8] eval at ./boot.jl:331 [inlined]
 [9] eval(::Expr) at ./client.jl:449
 [10] top-level scope at ./none:3
in expression starting at /home/cyy/.julia/packages/MySQL/AUTkc/src/MySQL.jl:3
ERROR: Failed to precompile MySQL [39abe10b-433b-5dbd-92d4-e302a9df00cd] to /home/cyy/.julia/compiled/v1.4/MySQL/xeTdU_VDVpo.ji.
Stacktrace:
 [1] error(::String) at ./error.jl:33
 [2] compilecache(::Base.PkgId, ::String) at ./loading.jl:1272
 [3] _require(::Base.PkgId) at ./loading.jl:1029
 [4] require(::Base.PkgId) at ./loading.jl:927
 [5] require(::Module, ::Symbol) at ./loading.jl:922

julia> ENV["JULIA_PKG_SERVER"] = "https://kr.pkg.julialang.org"
"https://kr.pkg.julialang.org"

julia> ENV["HTTP_PROXY"] = "http://127.0.0.1:12333"
"http://127.0.0.1:12333"

julia> ENV["HTTPS_PROXY"] = "http://127.0.0.1:12333"
"http://127.0.0.1:12333"

(v1.4) pkg> add MySQL
   Updating registry at `~/.julia/registries/General`
#=#=#                                                                       ##O#- #                                                                     ##O=#  #                                                                    #=#=-#  #                                                                                                                                              0##                                                                         2##                                                                         3######                                                                     8###########                                                               15##############                                                            20################                                                          23######################                                                    31##########################                                                36##########################                                                37#############################                                             41#####################################                                     52###########################################                               59##############################################                            64###################################################                       71#########################################################                 79#############################################################             85######################################################################    98######################################################################## 100.0%
  Resolving package versions...
  Installed nghttp2_jll ───────────── v1.40.0+0
  Installed LibSSH2_jll ───────────── v1.9.0+1
  Installed Compat ────────────────── v3.10.0
  Installed DBInterface ───────────── v2.1.0
  Installed Parsers ───────────────── v1.0.4
  Installed ZipFile ───────────────── v0.9.2
  Installed ColorTypes ────────────── v0.10.3
  Installed Juno ──────────────────── v0.8.2
  Installed MySQL ─────────────────── v1.0.4
  Installed Cthulhu ───────────────── v1.1.1
  Installed LibCURL_jll ───────────── v7.70.0+0
  Installed SpecialFunctions ──────── v0.9.0
  Installed WebIO ─────────────────── v0.8.14
  Installed MariaDB_Connector_C_jll ─ v3.1.6+0
  Installed RecipesPipeline ───────── v0.1.9
  Installed Libiconv_jll ──────────── v1.16.0+2
  Installed PlotUtils ─────────────── v1.0.3
  Installed DecFP ─────────────────── v0.4.10
  Installed Zlib_jll ──────────────── v1.2.11+10
  Installed OrderedCollections ────── v1.2.0
  Installed Contour ───────────────── v0.5.3
Downloading artifact: nghttp2
#=#=#                                                                       ##O#- #                                                                     ##O=#  #                                                                    #=#=-#  #                                                                   -#O#- #   #                                                                 #                                                                          2#####                                                                      7########                                                                  12###################                                                       27###################################                                       49#####################################################                     74#####################################################################     97######################################################################## 100Downloading artifact: LibSSH2
#=#=#                                                                       ##O#- #                                                                     ##O=#  #                                                                    #=#=-#  #                                                                   -#O#- #   #                                                                 ####                                                                       6##############                                                            20##############################                                            41############################################################              83#################################################################         90######################################################################## 100Downloading artifact: LibCURL
#=#=#                                                                       ##O#- #                                                                     ##O=#  #                                                                    #=#=-#  #                                                                   -#O#- #   #                                                                 #                                                                          1####                                                                       5########                                                                  11################                                                          23#########################                                                 35##########################################                                58#####################################################                     74#######################################################                   76###################################################################       94#####################################################################     96######################################################################## 100Downloading artifact: MariaDB_Connector_C
#=#=#                                                                       ##O#- #                                                                     ##O=#  #                                                                    #=#=-#  #                                                                   ##                                                                         3#######                                                                   11##################                                                        26################################                                          44########################################################                  78######################################################################## 100Downloading artifact: Libiconv
#=#=#                                                                       ##O#- #                                                                     ##O=#  #                                                                    #=#=-#  #                                                                   #                                                                          1###                                                                        5########                                                                  12##########                                                                14#####################                                                     29#############################                                             40######################################################################## 100Downloading artifact: Zlib
#=#=#                                                                       ##O#- #                                                                     ##O=#  #                                                                    #=#=-#  #                                                                   #######                                                                   10######################                                                    31#############################################                             62######################################################################## 100   Updating `/usr/julia-package/environments/v1.4/Project.toml`
  [39abe10b] + MySQL v1.0.4
   Updating `/usr/julia-package/environments/v1.4/Manifest.toml`
  [3da002f7] ↑ ColorTypes v0.10.2 ⇒ v0.10.3
  [34da2185] ↑ Compat v3.9.0 ⇒ v3.10.0
  [d38c429a] ↑ Contour v0.5.2 ⇒ v0.5.3
  [f68482b8] ↑ Cthulhu v1.0.2 ⇒ v1.1.1
  [a10d1c49] + DBInterface v2.1.0
  [55939f99] + DecFP v0.4.10
  [e5e0dc1b] ↑ Juno v0.8.1 ⇒ v0.8.2
  [deac9b47] + LibCURL_jll v7.70.0+0
  [29816b5a] + LibSSH2_jll v1.9.0+1
  [94ce4f54] + Libiconv_jll v1.16.0+2
  [aabc7e14] + MariaDB_Connector_C_jll v3.1.6+0
  [39abe10b] + MySQL v1.0.4
  [bac558e1] ↑ OrderedCollections v1.1.0 ⇒ v1.2.0
  [69de0a69] ↑ Parsers v1.0.2 ⇒ v1.0.4
  [995b91a9] ↑ PlotUtils v1.0.2 ⇒ v1.0.3
  [01d81517] ↑ RecipesPipeline v0.1.6 ⇒ v0.1.9
  [276daf66] ↓ SpecialFunctions v0.10.0 ⇒ v0.9.0
  [0f1e0344] ↑ WebIO v0.8.11 ⇒ v0.8.14
  [a5390f91] ↑ ZipFile v0.9.1 ⇒ v0.9.2
  [83775a58] ↑ Zlib_jll v1.2.11+9 ⇒ v1.2.11+10
  [8e850ede] + nghttp2_jll v1.40.0+0
   Building DecFP → `~/.julia/packages/DecFP/quvcm/deps/build.log`
   Building MySQL → `~/.julia/packages/MySQL/AUTkc/deps/build.log`
   Building WebIO → `~/.julia/packages/WebIO/nTMDV/deps/build.log`

julia> using MySQL
[ Info: Precompiling MySQL [39abe10b-433b-5dbd-92d4-e302a9df00cd]

julia> 

我完全没问题,试试PkgServer + 梯子重装一次

谢谢,目前没有条件用梯子,是否有其他的替代方案?我之前在windows系统下使用,并没有出现过这个error。

由于暂时没找到办法,我重装了一次julia,区别是这次下载了64位的。虽然问题原因没有找到,但目前问题是解决了,只是其他的package又要重新安装了。

你可以私信这位版主

先加速试下吧
https://www.sohu.com/a/312804771_100213241

https://baijiahao.baidu.com/s?id=1608100091125662190&wfr=spider&for=pc

140.82.114.3 github.com

185.199.110.153 assets-cdn.github.com

199.232.69.194 github.global.ssl.fastly.net

117.28.245.92 gitee.com 404,您访问的页面已经不存在!

https://baijiahao.baidu.com/s?id=1608100091125662190&wfr=spider&for=pc

140.82.114.3 github.com

185.199.110.153 assets-cdn.github.com

199.232.69.194 github.global.ssl.fastly.net

117.28.245.92 gitee.com