Stream: tooling
Topic: Firely Terminal: Issues on M1 mac
Patrick Werner (Jan 19 2022 at 21:00):
Hi, i just tried to install firely terminal on a m1 mac and failed.
All paths are set (to dotnet, to ~/.dotnet/tools), dotnet version: 3.1.416
Patrick Werner (Jan 19 2022 at 21:00):
fhir ✔ 515 21:42:46
Failed to load /usr/local/share/dotnet/x64/host/fxr/3.1.22/libhostfxr.dylib, error: dlopen(/usr/local/share/dotnet/x64/host/fxr/3.1.22/libhostfxr.dylib, 0x0001): tried: '/usr/local/share/dotnet/x64/host/fxr/3.1.22/libhostfxr.dylib' (mach-o file, but is an incompatible architecture (have 'x86_64', need 'arm64e')), '/usr/local/lib/libhostfxr.dylib' (no such file), '/usr/lib/libhostfxr.dylib' (no such file)
The library libhostfxr.dylib was found, but loading it from /usr/local/share/dotnet/x64/host/fxr/3.1.22/libhostfxr.dylib failed
- Installing .NET prerequisites might help resolve this problem.
https://go.microsoft.com/fwlink/?linkid=2063366
Patrick Werner (Jan 19 2022 at 21:01):
any clues what i am doing wrong?
@Yannick Börner @Ward Weistra @Martijn Harthoorn
Patrick Werner (Jan 19 2022 at 21:22):
or is firely terminal not supported on m1 macs?
Ward Weistra (Jan 19 2022 at 21:42):
@Patrick Werner Please ship us one :thank_you:
Ward Weistra (Jan 19 2022 at 21:43):
But yes, seems like M1 Mac specific more common issue: https://www.google.com/search?q=library+libhostfxr.dylib+was+found+but+loading+failed
Alexander Zautke (Jan 19 2022 at 22:11):
It's seems to be not supported officially Screenshot-2022-01-19-at-22.08.25.png
Patrick Werner (Jan 19 2022 at 22:26):
Any plans to switch to .net 6 soon?
Yannick Börner (Jan 20 2022 at 12:28):
I can report Firely Terminal working just fine on a M1 Pro Mac:
SDK:
dotnet --info
.NET SDK (reflecting any global.json):
Version: 6.0.101
Commit: ef49f6213a
Runtime Environment:
OS Name: Mac OS X
OS Version: 12.1
OS Platform: Darwin
RID: osx.12-x64
Base Path: /usr/local/share/dotnet/x64/sdk/6.0.101/
Host (useful for support):
Version: 6.0.1
Commit: 3a25a7f1cc
.NET SDKs installed:
3.1.416 [/usr/local/share/dotnet/x64/sdk]
5.0.403 [/usr/local/share/dotnet/x64/sdk]
6.0.101 [/usr/local/share/dotnet/x64/sdk]
.NET runtimes installed:
Microsoft.AspNetCore.App 3.1.22 [/usr/local/share/dotnet/x64/shared/Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 5.0.12 [/usr/local/share/dotnet/x64/shared/Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 6.0.1 [/usr/local/share/dotnet/x64/shared/Microsoft.AspNetCore.App]
Microsoft.NETCore.App 3.1.22 [/usr/local/share/dotnet/x64/shared/Microsoft.NETCore.App]
Microsoft.NETCore.App 5.0.12 [/usr/local/share/dotnet/x64/shared/Microsoft.NETCore.App]
Microsoft.NETCore.App 6.0.1 [/usr/local/share/dotnet/x64/shared/Microsoft.NETCore.App]
To install additional .NET runtimes or SDKs:
https://aka.ms/dotnet-download
Firely Terminal:
fhir -v
Firely Terminal 2.5.0-beta-4
FHIR 4.0.1
HL7.FHIR SDK 3.7.0
I suppose we should not postpone upgrading Firely.Terminal to dotnet 6 for too long though.
Patrick Werner (Jan 20 2022 at 12:31):
i can confirm it working as well (don't install dotnet with brew)
Patrick Werner (Jan 20 2022 at 12:32):
If you are having this problem:
- uninstall dotnet: https://docs.microsoft.com/en-us/dotnet/core/install/remove-runtime-sdk-versions?pivots=os-macos
- install dotnet x64 with the MS installer: https://dotnet.microsoft.com/en-us/download/dotnet/3.1
- install firely terminal
Patrick Werner (Jan 20 2022 at 12:33):
no need to set any paths oder DOTNET_ROOT manually.
Patrick Werner (Jan 20 2022 at 12:33):
Thanks for the support @Yannick Börner !
Last updated: Apr 12 2022 at 19:14 UTC