Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 932237
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T20:38:01+00:00 2026-05-15T20:38:01+00:00

I thought the purpose of mkbundle2 was to allow a machine without mono installed

  • 0

I thought the purpose of mkbundle2 was to allow a machine without mono installed to run a mono application. But it does not seem to be packaging libmono.so. I am not sure if it is supposed to or not, but the destination machine is complaining that it can’t find libmono.so.0 when I run the bundle. Why would it be looking for that file? And if it is needed, why would it be looking anywhere but in the bundle? And if it is supposed to be in the bundle, why didn’t mkbundle2 put it there? I am using the “–deps” option for including all dependencies. Am I missing something?

After adding the –static option, I get this result on the destination machine:

Unhandled Exception: System.TypeInitializationException: An exception was thrown by the type initializer for System.Windows.Forms.XplatUI —> System.DllNotFoundException: libc
at (wrapper managed-to-native) System.Windows.Forms.XplatUI:uname (intptr)
at System.Windows.Forms.XplatUI..cctor () [0x00000] in :0

Using export MONO_LOG_LEVEL=debug shows more info:

Mono-INFO: DllImport attempting to load: ‘libc’.
Mono-INFO: DllImport loading location: ‘libc.so’.
Mono-INFO: DllImport error loading library: ‘/usr/lib64/libc.so: invalid ELF header’.
Mono-INFO: DllImport loading library: ‘./libc.so’.
Mono-INFO: DllImport error loading library ‘./libc.so: cannot open shared object file: No such file or directory’.
Mono-INFO: DllImport loading: ‘libc’.
Mono-INFO: DllImport error loading library ‘libc: cannot open shared object file: No such file or directory’.

Does this mean that I’m trying to run on machine with incompatible hardware? Both machines are SUSE Linux Enterprise Server 11 (x86_64).

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-15T20:38:01+00:00Added an answer on May 15, 2026 at 8:38 pm

    From here we have that:

    –deps: this option will bundle all of the referenced assemblies for the
    assemblies listed on the command line option. This is useful to distribute a self-contained image.

    Are you sure you’re not forgetting to reference an assembly on the command line?

    From this thread:

    Mono Community › General › Mono Community › mkbundle, static, lgmodule

    It appears that mkbundle is not responsible for packaging this assembly. The user solved the problem by installing missing glib-related packages.

    Take a look at the static parameter here:

    –static: by default mkbundle dynamically links to mono and glib. This option
    causes it to statically link instead.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm still not clear on the purpose of annotations in Java. Initially I thought
I thought I heard that py2exe was able to do this, but I never
I thought I understood what the default method does to a hash... Give a
I thought people would be working on little code projects together, but I don't
I thought I understood Java generics pretty well, but then I came across the
I thought this was asked before, but 15 minutes of searching on Google and
I thought .Net code gets compiled into MSIL, so I always wondered how do
I thought jQuery Intellisense was supposed to be improved with SP1. I even downloaded
I thought that there was some way in .net 3.0 to give an array
I thought I had seen a bug report about this on the jQuery site,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.