Sample Header Ad - 728x90

Compiling mono-basic causes 'System.Xml.dll' could not be found

1 vote
0 answers
125 views
I am running on AlmaLinux9 (RedHat 9 clone) and have added mono-* from the EPEL repos. All worked well, but I also needed mono-vbnc so I downloaded the mono-basic project source from github. I ran ./configure and then make, but make is having trouble finding a dll: make: Entering directory '/usr/src/mono-basic/mono-basic-main/tools' make: Entering directory '/usr/src/mono-basic/mono-basic-main/tools/extract-source' make all-local make: Entering directory '/usr/src/mono-basic/mono-basic-main/tools/extract-source' MONO_PATH="../../class/lib/bootstrap:$MONO_PATH" mono --debug ../../class/lib/bootstrap/vbnc.exe /sdkpath:/usr/local/lib/mono/4.5-api/ -debug -r:System.Xml.dll -noconfig -define:_MYTYPE=\"Empty\" /novbruntimeref /r:../../class/lib/bootstrap/Microsoft.VisualBasic.dll -target:exe -out:extract-source.exe @extract-source.exe.sources Visual Basic.Net Compiler version 0.0.0.5943 (Mono 4.6 - master/c93133db) Copyright (C) 2004-2010 Rolf Bjarne Kvinge. All rights reserved. vbnc : Command line : error VBNC2017: The library 'System.Xml.dll' could not be found. There were 1 errors and 0 warnings. Compilation took 00:00:00.2951750 make: *** [../../build/executable.make:81: extract-source.exe] Error 1 make: Leaving directory '/usr/src/mono-basic/mono-basic-main/tools/extract-source' make: *** [../../build/rules.make:122: do-all] Error 2 make: Leaving directory '/usr/src/mono-basic/mono-basic-main/tools/extract-source' make: *** [../build/rules.make:134: all-recursive] Error 1 make: Leaving directory '/usr/src/mono-basic/mono-basic-main/tools' make: *** [build/rules.make:134: all-recursive] Error 1 I confirmed that System.Xml.dll is on my system: $ find / -name System.Xml.dll /usr/lib/mono/4.5/System.Xml.dll /usr/lib/mono/gac/System.Xml/4.0.0.0__b77a5c561934e089/System.Xml.dll /usr/lib/mono/4.7.1-api/System.Xml.dll I have no idea how to fix this (new to mono). Do I need to specify a prefix for configure to point to /usr/lib/mono/4.5 ?
Asked by TSG (1983 rep)
Jul 16, 2023, 04:59 PM