asc-community/AngouriMath

Terminal fails on Linux

WhiteBlackGoose opened this issue · 2 comments

dotnet tool install --global AngouriMath.Terminal --version 1.4.0-preview.3-2
export PATH="$PATH:/home/goose/.dotnet/tools"
amcli

image

Copy-pastable:

A fatal error occurred. The required library libhostfxr.so could not be found.
If this is a self-contained application, that library should exist in [/home/goose/.dotnet/tools/.store/angourimath.terminal/1.4.0-preview.3-2/angourimath.terminal/1.4.0-preview.3-2/tools/net6.0/any/].
If this is a framework-dependent application, install the runtime in the global location [/usr/share/dotnet] or use the DOTNET_ROOT environment variable to specify the runtime location or register the runtime location in [/etc/dotnet].

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

oh, it's not the only tool. It happens to other tools as well
image

Fixed by

export DOTNET_ROOT=$HOME/.dotnet

image