Fliure to add extention to extensions.xml

29 views
Skip to first unread message

Shike Zhang

unread,
Oct 15, 2024, 5:30:23 AMOct 15
to LANDIS-II Developers
Hi,

I'm following the instructions on GitHub to run the Landis-ii v7 model. However, when I attempt to add an extension to extensions.xml, I encounter an error that doesn't appear when running the v8 model:

[username@path]$ dotnet /home/ username/Core-Model-v7-LINUX/build/Release/Landis.Extensions.dll add "Biomass Succession 7.txt"
Failed to load ��� , error: libunwind.so.8: cannot open shared object file: No such file or directory
Failed to bind to CoreCLR at '/home/username/.dotnet/shared/Microsoft.NETCore.App/2.0.0/libcoreclr.so'

Alex Chubaty

unread,
Oct 16, 2024, 12:44:11 PMOct 16
to LANDIS-II Developers
Which OS are you using? How did you install the additional system dependencies? What steps did you take to build the various LANDIS-II components (e.g., `dotnet build -c Release`)?

Shike Zhang

unread,
Oct 17, 2024, 1:35:31 PMOct 17
to LANDIS-II Developers
Hi Alex,

Thanks for replying! My operating system is Red Hat. I believe I mistakenly installed .NET 2, as the most recent version is now .NET 8. Does version 7 only support .NET 2? Do you have any suggestions for installing .NET 2? I use "dotnet build -c Release" to build the various LANDIS-II components.

Best,
Shike

Alex Chubaty

unread,
Oct 18, 2024, 1:06:41 PMOct 18
to LANDIS-II Developers
Hi Shike,

Ensure that you have libunwind installed. I'm not a Red Hat / Fedora user, but something like `yum install libunwind` should get it.

LANDIS-II v7 requires .NETv2, so if that's what you installed, then you should be okay. Be sure that you don't somehow have two versions (i.e., v2 and v8) installed: e.g. `dotnet --list-sdks`.

When you build the console tool, extension tool, and extensions, msbuild should do the job of ensuring additional package dependencies are met by downloading them with nuget.

Alex

Shike Zhang

unread,
Oct 19, 2024, 5:42:24 AMOct 19
to LANDIS-II Developers
I also have problem when build the model:

"[zhangsk@gl-login2 Tool-Console]$ cd /home/zhangsk/Landis-ii-model/Core-Model-v8-LINUX/Tool-Console/src
[zhangsk@gl-login2 src]$ dotnet build -c Release
  Determining projects to restore...
  Restored /home/zhangsk/Landis-ii-model/Core-Model-v8-LINUX/Tool-Console/src/Console.csproj (in 4.78 sec).
  Restored /home/zhangsk/Landis-ii-model/Core-Model-v8-LINUX/Tool-Extension-Admin/src/Extension_Admin.csproj (in 5.42 sec).
  Extension_Admin -> /home/zhangsk/Landis-ii-model/Core-Model-v8-LINUX/build/Release/Landis.Extensions.dll
/home/zhangsk/.dotnet/sdk/8.0.403/Microsoft.Common.CurrentVersion.targets(2412,5): warning MSB3245: Could not resolve this reference. Could not locate the assembly "Landis.Library.Metadata-v2". Check to make sure the assembly exists on disk. If this reference is required by your code, you may get compilation errors. [/home/zhangsk/Landis-ii-model/Core-Model-v8-LINUX/Tool-Console/src/Console.csproj]
/home/zhangsk/.dotnet/sdk/8.0.403/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.Sdk.targets(284,5): warning NETSDK1206: Found version-specific or distribution-specific runtime identifier(s): win10-x64. Affected libraries: Gdal.Core. In .NET 8.0 and higher, assets for version-specific and distribution-specific runtime identifiers will not be found by default. See https://aka.ms/dotnet/rid-usage for details. [/home/zhangsk/Landis-ii-model/Core-Model-v8-LINUX/Tool-Console/src/Console.csproj]
  Console -> /home/zhangsk/Landis-ii-model/Core-Model-v8-LINUX/build/Release/Landis.Console.dll

Build succeeded.

/home/zhangsk/.dotnet/sdk/8.0.403/Microsoft.Common.CurrentVersion.targets(2412,5): warning MSB3245: Could not resolve this reference. Could not locate the assembly "Landis.Library.Metadata-v2". Check to make sure the assembly exists on disk. If this reference is required by your code, you may get compilation errors. [/home/zhangsk/Landis-ii-model/Core-Model-v8-LINUX/Tool-Console/src/Console.csproj]
/home/zhangsk/.dotnet/sdk/8.0.403/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.Sdk.targets(284,5): warning NETSDK1206: Found version-specific or distribution-specific runtime identifier(s): win10-x64. Affected libraries: Gdal.Core. In .NET 8.0 and higher, assets for version-specific and distribution-specific runtime identifiers will not be found by default. See https://aka.ms/dotnet/rid-usage for details. [/home/zhangsk/Landis-ii-model/Core-Model-v8-LINUX/Tool-Console/src/Console.csproj]
    2 Warning(s)
    0 Error(s)"

Shike Zhang

unread,
Oct 19, 2024, 5:42:30 AMOct 19
to LANDIS-II Developers
Hi Alex,

I've just gone through this with your help! But then I came into a similar problem I had days ago when I run "dotnet /home/zhangsk/Core-Model-v8-LINUX/build/Release/Landis.Console.dll scenario.txt" there will be an  error that:

"LANDIS-II 8.0 (8)

Loading scenario from file "scenario.txt" ...
Initialized random number generator with seed = 1,004,067,172
Loading species data from file "Core_species_data.txt" ...
Loading ecoregions from file "./ecoregions.txt" ...
Core metadata:
LANDIS-II v8.0, Seed: , ./ecoregions.tif, ./ecoregions.txt, Core_species_data.txt
Succession:
Biomass Succession Version: 7.0.0, Input: biomass-succession.txt
Disturbance Extensions:
Other Extensions:

No pause processes specified, continuing normally
Initializing landscape from ecoregions map "./ecoregions.tif" ...
Cell length = 100 m, cell area = 1 ha
Map dimensions: 99 rows by 99 columns = 9,801 cells
Sites: 9,801 active (100.0%), 0 inactive (0.0%)
  reading in ecoregion from ./ecoregions.tif
Loading Biomass Succession extension ...
Error while loading the plug-in:
  Cannot get the data type that implements the plug-in:
    Data type:  Landis.Extension.Succession.Biomass.PlugIn,Landis.Extension.Succession.Biomass-v7
    Error:      No data type with that name is installed."

I'm sure that in my build/extensions file, there's a file called "Landis.Extension.Succession.Biomass-v7.dll" I don't know why this happened.

Best,
Shike

Alex Chubaty

unread,
Oct 20, 2024, 7:26:44 AMOct 20
to LANDIS-II Developers
Hi Shike,

I have hit this and several other issues trying to get LANDIS-II v8 working on Linux - see the ongoing discussion in https://groups.google.com/g/landis-ii-developers/c/tiGhwhJuQ0Q.

No solution yet, but hopefully there's enough interest to move this forward soon. For now, it looks like we need to use v7.

Alex

Shike Zhang

unread,
Oct 22, 2024, 8:58:06 AMOct 22
to LANDIS-II Developers
Hi Alex,

Thank you for the resource! I will keep an eye on it and use v7 for now.

Best,
Shike
Reply all
Reply to author
Forward
0 new messages