fslaborg / RProvider

Access R packages from F#
http://fslab.org/RProvider/
Other
235 stars 69 forks source link

Server fails to start on Apple Silicon #236

Closed AndrewIOM closed 2 years ago

AndrewIOM commented 2 years ago

Describe the bug On an M1 mac, the server fails to start with RProvider reporting the following error:

open RProvide[Loading /var/folders/vv/6nxs3fln151b5f_wjrcy5rp80000gn/T/nuget/81998--148befe4-c22a-4555-9c97-3cd33e821eb1/Project.fsproj.fsx]
Binding session to '/Users/andrewmartin/.nuget/packages/pipemethodcalls/3.0.4/lib/netstandard2.0/PipeMethodCalls.dll'...
A fatal error occurred. The required library libhostfxr.dylib could not be found.
If this is a self-contained application, that library should exist in [/Users/andrewmartin/.nuget/packages/rprovider/2.0.1-beta2/lib/net5.0/server/osx-x64/].
If this is a framework-dependent application, install the runtime in the global location [/usr/local/share/dotnet/x64] or use the DOTNET_ROOT environment variable to specify the runtime location or register the runtime location in [/etc/dotnet/install_location].

The .NET runtime can be found at:
  - https://aka.ms/dotnet-core-applaunch?missing_runtime=true&arch=x64&rid=osx.11.0-x64&apphost_version=5.0.11

/var/folders/vv/6nxs3fln151b5f_wjrcy5rp80000gn/T/nuget/81998--148befe4-c22a-4555-9c97-3cd33e821eb1/Project.fsproj.fsx(19,1): error FS3053: The type provider 'RProvider.RProvider' reported an error: The type provider constructor has thrown an exception: Failed to start the R.NET server within 20 seconds.To enable logging set RPROVIDER_LOG to an existing file name.

To Reproduce Steps to reproduce the behavior:

  1. Install .NET 6 SDK arm64 on macOS
  2. Run dotnet fsi
  3. Send '#r "nuget:RProvider,2.0.1-beta2"'
  4. See error

Expected behavior Works

Screenshots NA

Environment (please complete the following information):

Additional context Add any other context about the problem here.