ScoopInstaller / Main

📦 The default bucket for Scoop.
https://scoop.sh
The Unlicense
1.6k stars 970 forks source link

[Bug]: erlang does not require vcredist2013, it requries vcredist2022 #6289

Closed sinni800 closed 2 weeks ago

sinni800 commented 3 weeks ago

Prerequisites

Package Name

erlang

Expected/Current Behaviour

Erlang package suggests to install extras/vcredist2013, but this is not correct anymore; it should require extras/vcredist2022.

If 2022 is not installed, running an application that uses the beam.smp.dll (which is the erlang VM) will output this:

Unable to load emulator DLL
(C:\Users\bla\scoop\apps\erlang\27.1.2\erts-15.1.2\bin\beam.smp.dll)

Steps to Reproduce

PS C:\Users\bla\> erl
Unable to load emulator DLL
(C:\Users\bla\scoop\apps\erlang\27.1.2\erts-15.1.2\bin\beam.smp.dll)

PS C:\Users\bla> scoop install vcredist2022
Installing 'vcredist2022' (14.40.33816.0) [64bit] from 'extras' bucket
Loading vc_redist.x64.exe from cache
Checking hash of vc_redist.x64.exe ... ok.
Loading vc_redist.x86.exe from cache
Checking hash of vc_redist.x86.exe ... ok.
Linking ~\scoop\apps\vcredist2022\current => ~\scoop\apps\vcredist2022\14.40.33816.0
Running post_install script...done.
'vcredist2022' (14.40.33816.0) was installed successfully! 

(installing vcredist2013 changes nothing)

PS C:\Users\bla\elixir\elbox> erl
Erlang/OTP 27 [erts-15.1.2] [source] [64-bit] [smp:8:8] [ds:8:8:10] [async-threads:1] [jit:ns]

Eshell V15.1.2 (press Ctrl+G to abort, type help(). for help)
1>

Possible Solution

Change the suggested vcredist package to vcredist2022

Scoop and Buckets Version

Current Scoop version:
859d1db5 (HEAD -> master, tag: v0.5.2, origin/master, origin/HEAD) chore(release): Bump to version 0.5.2 (#6080)

'main' bucket:
e3cbd5596 (HEAD -> master, origin/master, origin/HEAD) zvm: Update to version 0.7.9

'extras' bucket:
36b6c60ba (HEAD -> master, origin/master, origin/HEAD) lokalise2@3.0.2: Fix hash (Closes #14313)

'nirsoft' bucket:
b38031d (HEAD -> master, origin/master, origin/HEAD) updated manifests

Scoop Config

scoop config

last_update         scoop_branch scoop_repo
-----------         ------------ ----------
28.10.2024 22:40:06 master       https://github.com/ScoopInstaller/Scoop

PowerShell Version

$PSVersionTable

Name                           Value
----                           -----
PSVersion                      7.4.6
PSEdition                      Core
GitCommitId                    7.4.6
OS                             Microsoft Windows 10.0.26100
Platform                       Win32NT
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1
WSManStackVersion              3.0

Additional Softwares

No response

HUMORCE commented 2 weeks ago

Thanks for the report.