Problem Building Arpack / Windows Administrator Privileges

Hi Everyone,

I am having some trouble installing Arpack. The error reads as Warning: On Windows, creating file symlinks requires Administrator privileges. I checked whether my user has Administrator privileges, and this is the case. I get a similar error if I type Pkg.build(“Arpack”), Pkg.add(“Arpack”).

In advance, thank you very much for your help!

julia> Pkg.build(“Distributions”)
Building Arpack ──────────→ C:\Users\Juan\.julia\packages\Arpack\UiiMc\deps\build.log
┌ Error: Error building Arpack:
│ ┌ Warning: On Windows, creating file symlinks requires Administrator privileges
│ └ @ Base.Filesystem file.jl:794
│ [ Info: Downloading https://github.com/JuliaLinearAlgebra/ArpackBuilder/releases/download/v3.5.0-3/Arpack.v3.5.0-3.x86_64-w64-mingw32-gcc4.tar.gz to C:\Users\Juan.julia\packages\Arpack\UiiMc\deps\usr\downloads\Arpack.v3.5.0-3.x86_64-w64-mingw32-gcc4.tar.gz…
│ ERROR: LoadError: Could not download https://github.com/JuliaLinearAlgebra/ArpackBuilder/releases/download/v3.5.0-3/Arpack.v3.5.0-3.x86_64-w64-mingw32-gcc4.tar.gz to C:\Users\Juan.julia\packages\Arpack\UiiMc\deps\usr\downloads\Arpack.v3.5.0-3.x86_64-w64-mingw32-gcc4.tar.gz:
│ ErrorException(“”)
│ Stacktrace:
│ [1] error(::String) at .\error.jl:33
│ [2] #download#93(::Bool, ::Function, ::String, ::String) at C:\Users\Juan.julia\packages\BinaryProvider\4F5Hq\src\PlatformEngines.jl:498
│ [3] #download at .\none:0 [inlined]
│ [4] #download_verify#94(::Bool, ::Bool, ::Bool, ::Function, ::String, ::String, ::String) at C:\Users\Juan.julia\packages\BinaryProvider\4F5Hq\src\PlatformEngines.jl:567
│ [5] #download_verify at .\none:0 [inlined]
│ [6] #install#133(::Prefix, ::String, ::Bool, ::Bool, ::Bool, ::Function, ::String, ::String) at C:\Users\Juan.julia\packages\BinaryProvider\4F5Hq\src\Prefix.jl:314
│ [7] (::getfield(BinaryProvider, Symbol(“#kw##install”)))(::NamedTuple{(:prefix, :force, :verbose),Tuple{Prefix,Bool,Bool}}, ::typeof(install), ::String, ::String) at .\none:0
│ [8] top-level scope at C:\Users\Juan.julia\packages\Arpack\UiiMc\deps\build.jl:70
│ [9] include at .\boot.jl:326 [inlined]
│ [10] include_relative(::Module, ::String) at .\loading.jl:1038
│ [11] include(::Module, ::String) at .\sysimg.jl:29
│ [12] include(::String) at .\client.jl:403
│ [13] top-level scope at none:0
│ in expression starting at C:\Users\Juan.julia\packages\Arpack\UiiMc\deps\build.jl:68
│ 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: (:slight_smile: , RuntimeException
│ + FullyQualifiedErrorId : PropertyAssignmentException

│ Exception calling “DownloadFile” with “2” argument(s): “The underlying connection was closed: An unexpected error occurred on a send.”
│ At line:5 char:24
│ + $webclient.DownloadFile <<<< (“https://github.com/JuliaLinearAlgebra/ArpackBuilder/releases/download/v3.5.0-3/Arpack.v3.5.0-3.x86_64-w64-mingw32-gcc4.tar.gz”, “C:\Users\Juan.julia\packages\Arpack\UiiMc\deps\usr\downloads\Arpack.v3.5.0-3.x86_64-w64-mingw32-gcc4.tar.gz”)
│ + CategoryInfo : NotSpecified: (:slight_smile: , MethodInvocationException
│ + FullyQualifiedErrorId : DotNetMethodException

1 Like

Launch the Julia terminal using right-click and “Run as administrator”. It’s good to do this when installing or upgrading packages.

Thank you very much. This was very useful. I run it using administrator privileges, and I now run into a different error (please see below). For some reason, it cannot download the package. This was part of the original error message when I was running it without administrator privileges. Any advice is greatly appreciated!

Error: Error building Arpack:
│ [ Info: Downloading https://github.com/JuliaLinearAlgebra/ArpackBuilder/releases/download/v3.5.0-3/Arpack.v3.5.0-3.x86_64-w64-mingw32-gcc4.tar.gz to C:\Users\Juan.julia\packages\Arpack\UiiMc\deps\usr\downloads\Arpack.v3.5.0-3.x86_64-w64-mingw32-gcc4.tar.gz…
│ ERROR: LoadError: Could not download https://github.com/JuliaLinearAlgebra/ArpackBuilder/releases/download/v3.5.0-3/Arpack.v3.5.0-3.x86_64-w64-mingw32-gcc4.tar.gz to C:\Users\Juan.julia\packages\Arpack\UiiMc\deps\usr\downloads\Arpack.v3.5.0-3.x86_64-w64-mingw32-gcc4.tar.gz:
│ ErrorException(“”)
│ Stacktrace:
│ [1] error(::String) at .\error.jl:33
│ [2] #download#93(::Bool, ::Function, ::String, ::String) at C:\Users\Juan.julia\packages\BinaryProvider\4F5Hq\src\PlatformEngines.jl:498
│ [3] #download at .\none:0 [inlined]
│ [4] #download_verify#94(::Bool, ::Bool, ::Bool, ::Function, ::String, ::String, ::String) at C:\Users\Juan.julia\packages\BinaryProvider\4F5Hq\src\PlatformEngines.jl:567
│ [5] #download_verify at .\none:0 [inlined]
│ [6] #install#133(::Prefix, ::String, ::Bool, ::Bool, ::Bool, ::Function, ::String, ::String) at C:\Users\Juan.julia\packages\BinaryProvider\4F5Hq\src\Prefix.jl:314
│ [7] (::getfield(BinaryProvider, Symbol(“#kw##install”)))(::NamedTuple{(:prefix, :force, :verbose),Tuple{Prefix,Bool,Bool}}, ::typeof(install), ::String, ::String) at .\none:0
│ [8] top-level scope at C:\Users\Juan.julia\packages\Arpack\UiiMc\deps\build.jl:70
│ [9] include at .\boot.jl:326 [inlined]
│ [10] include_relative(::Module, ::String) at .\loading.jl:1038
│ [11] include(::Module, ::String) at .\sysimg.jl:29
│ [12] include(::String) at .\client.jl:403
│ [13] top-level scope at none:0
│ in expression starting at C:\Users\Juan.julia\packages\Arpack\UiiMc\deps\build.jl:68
│ Exception setting “SecurityProtocol”: “Cannot convert null to type “System.Net.SecurityProtocolType” due to invalid enumeration values. Specify one of the following enumer
│ ation values and try again. The possible enumeration values are “Ssl3, Tls”.”
│ At line:1 char:35
│ + [System.Net.ServicePointManager]:: <<<< SecurityProtocol =
│ + CategoryInfo : InvalidOperation: (:slight_smile: , RuntimeException
│ + FullyQualifiedErrorId : PropertyAssignmentException

│ Exception calling “DownloadFile” with “2” argument(s): “The underlying connection was closed: An unexpected error occurred on a send.”

Other people have run into this error, for different packages:
https://discourse.julialang.org/search?q=System.Net.SecurityProtocolType%20order%3Alatest

Don’t know what the solution is in your case.

Ok. Thanks a lot. Will try that.

Did you solve the problem?

Yes. But had to manually install the files. I then changed my computer, that has windows 10, re-installed everything and had no problems in the installation. Thanks for checking. Best, Juan