Skip to content
This repository has been archived by the owner on Nov 3, 2023. It is now read-only.

VBNC2017: The library 'System.Xml.dll' could not be found. #78

Open
ocgltd opened this issue Jul 16, 2023 · 1 comment
Open

VBNC2017: The library 'System.Xml.dll' could not be found. #78

ocgltd opened this issue Jul 16, 2023 · 1 comment

Comments

@ocgltd
Copy link

ocgltd commented Jul 16, 2023

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[1]: Entering directory '/usr/src/mono-basic/mono-basic-main/tools'
make[2]: Entering directory '/usr/src/mono-basic/mono-basic-main/tools/extract-source'
make all-local
make[3]: 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[3]: *** [../../build/executable.make:81: extract-source.exe] Error 1
make[3]: Leaving directory '/usr/src/mono-basic/mono-basic-main/tools/extract-source'
make[2]: *** [../../build/rules.make:122: do-all] Error 2
make[2]: Leaving directory '/usr/src/mono-basic/mono-basic-main/tools/extract-source'
make[1]: *** [../build/rules.make:134: all-recursive] Error 1
make[1]: 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 ?

@ZXBITLES
Copy link

Hi!
I faced with the same problem. Here is my solution:

  1. sudo apt-get install git autoconf automake libtool make gettext
  2. git clone https://github.com/mono/mono-basic.git
  3. cd mono-basic
  4. ./configure --prefix=/usr
  5. Open file "../mono-basic/build/profiles/net_4_5.make" and fix line to "PROFILE_VBNC_FLAGS = /sdkpath:$(prefix)/lib/mono/4.5/"
  6. make
  7. sudo make install
    The compiled files will be located at "/mono-basic/class/lib/net_4_5".
    Would be nice to add this to the manual.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants