generated from asdf-vm/asdf-plugin-template
-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Labels
bugSomething isn't workingSomething isn't working
Description
When I try to install latest on an m1 mac running Ventura 13.1, it fails to install.
asdf install powershell-core latest
* Downloading powershell-core release 7.3.1...
chmod: /Users/jojeli/.asdf/installs/powershell-core/7.3.1/pwsh: No such file or directory
asdf-powershell-core: Expected /Users/jojeli/.asdf/installs/powershell-core/7.3.1/pwsh to be executable.
asdf-powershell-core: An error ocurred while installing powershell-core 7.3.1.I tracked it down to the extract process:
asdf-powershell-core/bin/download
Line 20 in 0ce7dad
| tar -xzf "$release_file" -C "$ASDF_DOWNLOAD_PATH" --strip-components=1 || fail "Could not extract $release_file" |
if you drop --strip-components=1 then, it is able to install.
asdf install powershell-core latest
mkdir: /Users/jojeli/.asdf/downloads/powershell-core/7.3.1: File exists
* Downloading powershell-core release 7.3.1...
powershell-core 7.3.1 installation was successful!Now, when I run pwsh, macos pops up with a lot of messages to allow *.dylib files. After I allow all those, now I get this error:
pwsh
Unhandled exception. System.BadImageFormatException: Could not load file or assembly 'System.Runtime, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'. Reference assemblies cannot be loaded for execution. (0x80131058)
File name: 'System.Runtime, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' ---> System.BadImageFormatException: Cannot load a reference assembly for execution.
[1] 31603 abort pwsh
file $(asdf where powershell-core)/pwsh
~/.asdf/installs/powershell-core/7.3.1/pwsh: Mach-O 64-bit executable arm64Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working