2

こんにちは、Julia に SymEngine をインストールしようとしていますが、以下のエラーが表示されます。私はこれに何時間も立ち往生しており、1日の半分以上を無駄にしました. 助けてください!!!!

私はすでに Windows レジストリ (WinHTTP レジストリ領域) に直接アクセスし、クイック フィックス msi インストールも試しましたが、他の試みの中でも無駄でした。Powershell にアクセスして TLS1.2+ を強制的に使用する方法がわからないため、Julia に github から適切にパッケージを取得させます。ロードしたいのは Sym Engine だけではありませんが、ここでこの特定の修正から始めましょう。

私はここのコミュニティのほとんどのようにコンピューターに精通していないので、私が 6 歳のように説明してもらえますか? 前もって感謝します!!!

更新しますが、まだ解決策はありません: コマンド プロンプト (SysWOW64 フォルダーと System32 フォルダーの両方) を使用して最終的に Powershell に入り、どちらも「[System.Net.SecurityProtocolType]::Tls12」という行を実行しようとしましたが、どちらも再実行しようとしましたpkgビルドと両方の回が機能しませんでした。特に TLS1.2 SecurityProtocol 用に Atom/Juno/Julia を構成するために必要なことはありますか?

解決策: Powershell 3 が必要でした。Julia コミュニティの投稿とリンク (最初の URL) で解決策を見つけました。このソリューションは、Rudi79 という名前のユーザーによって投稿されたもので、ユーザー davidanthoff によって投稿された別のリンク (2 番目の URL) に移動します。

https://discourse.julialang.org/t/problems-with-codeczlib/10124

https://github.com/JuliaLang/julia/issues/26459#issuecomment-373117374

julia> using Pkg

julia> Pkg.add("SymEngine")
  Resolving package versions...
Downloading artifact: GMP
Exception setting "SecurityProtocol": "Cannot convert null to type "System.Net.SecurityProtocolType" due to invalid enumeration values. Specify one of the 
following enumeration values and try again. The possible enumeration values are "Ssl3, Tls"."
At line:1 char:35
+ [System.Net.ServicePointManager]:: <<<< SecurityProtocol =
    + CategoryInfo          : InvalidOperation: (:) [], RuntimeException
    + FullyQualifiedErrorId : PropertyAssignmentException
 
Exception calling "DownloadFile" with "2" argument(s): "The underlying connection was closed: An unexpected error occurred on a send."
At line:7 char:24
+ $webclient.DownloadFile <<<< ("https://github.com/JuliaBinaryWrappers/GMP_jll.jl/releases/download/GMP-v6.1.2+5/GMP.v6.1.2.x86_64-w64-mingw32-cxx11.tar.g
z", "C:\Users\KGPOWER\AppData\Local\Temp\jl_u4RqYrkEd2-download.gz")
    + CategoryInfo          : NotSpecified: (:) [], MethodInvocationException
    + FullyQualifiedErrorId : DotNetMethodException
ERROR: Unable to automatically install 'GMP' from 'C:\Users\KGPOWER\.julia\packages\GMP_jll\AiYpf\Artifacts.toml'
Stacktrace:
 [1] error(::String) at .\error.jl:33
 [2] ensure_artifact_installed(::String, ::Dict{String,Any}, ::String; platform::Pkg.BinaryPlatforms.Platform, verbose::Bool, quiet_download::Bool) at D:\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.4\Pkg\src\Artifacts.jl:894
 [3] ensure_all_artifacts_installed(::String; platform::Pkg.BinaryPlatforms.Platform, pkg_uuid::Nothing, include_lazy::Bool, verbose::Bool, quiet_download::Bool) at D:\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.4\Pkg\src\Artifacts.jl:958
 [4] download_artifacts(::Pkg.Types.Context, ::Array{String,1}; platform::Pkg.BinaryPlatforms.Windows, verbose::Bool) at D:\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.4\Pkg\src\Operations.jl:616
 [5] download_artifacts(::Pkg.Types.Context, ::Array{Pkg.Types.PackageSpec,1}; platform::Pkg.BinaryPlatforms.Windows, verbose::Bool) at D:\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.4\Pkg\src\Operations.jl:595
 [6] add(::Pkg.Types.Context, ::Array{Pkg.Types.PackageSpec,1}, ::Array{Base.UUID,1}; preserve::Pkg.Types.PreserveLevel, platform::Pkg.BinaryPlatforms.Windows) at D:\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.4\Pkg\src\Operations.jl:1091
 [7] add(::Pkg.Types.Context, ::Array{Pkg.Types.PackageSpec,1}; preserve::Pkg.Types.PreserveLevel, platform::Pkg.BinaryPlatforms.Windows, kwargs::Base.Iterators.Pairs{Union{},Union{},Tuple{},NamedTuple{(),Tuple{}}}) at D:\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.4\Pkg\src\API.jl:159
 [8] add(::Pkg.Types.Context, ::Array{Pkg.Types.PackageSpec,1}) at D:\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.4\Pkg\src\API.jl:112
 [9] #add#27 at D:\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.4\Pkg\src\API.jl:109 [inlined]
 [10] add at D:\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.4\Pkg\src\API.jl:109 [inlined]
 [11] #add#24 at D:\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.4\Pkg\src\API.jl:107 [inlined]
 [12] add at D:\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.4\Pkg\src\API.jl:107 [inlined]
 [13] add(::String; kwargs::Base.Iterators.Pairs{Union{},Union{},Tuple{},NamedTuple{(),Tuple{}}}) at D:\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.4\Pkg\src\API.jl:106
 [14] add(::String) at D:\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.4\Pkg\src\API.jl:106
 [15] top-level scope at REPL[3]:1

julia> [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.SecurityProtocolType]::Tls12;
ERROR: syntax: invalid assignment location "[SSAValue(147)]"
Stacktrace:
 [1] top-level scope at REPL[4]:1
4

0 に答える 0