Bug 4324 - Unable to install packages with Nuget under Mono 2.11 Alpha
Summary: Unable to install packages with Nuget under Mono 2.11 Alpha
Alias: None
Product: Runtime
Classification: Mono
Component: General ()
Version: unspecified
Hardware: PC Mac OS
: --- normal
Target Milestone: ---
Assignee: Bugzilla
Depends on:
Reported: 2012-04-07 01:51 UTC by Dale Ragan
Modified: 2014-01-17 18:15 UTC (History)
4 users (show)

Is this bug a regression?: ---
Last known good build:

This is the trace with MONO_LOG_LEVEL=debug MONO_LOG_MASK=asm set. (44.84 KB, application/octet-stream)
2012-04-17 16:12 UTC, Dale Ragan

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.

Please create a new report on GitHub or Developer Community with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:

Description Dale Ragan 2012-04-07 01:51:20 UTC
Updated my installed Mono version to the 2.11 Alpha Release.  I was running 2.10.9.  I updated, because I wanted to use the Mono.CSharp library for evaluating code.  Under 2.10.9, it kept throwing exceptions.  It was some NotSupportedException.  Either way, I upgraded and now that code works.

However, I can't run Nuget anymore to install packages.  For instance, download the Nuget bootstrap application, it's basically a command line tool that is self updating.


I've been using this to install packages and manage dependencies since MonoDevelop doesn't have support yet.  Everything was working fine under 2.10.9.

After updating to 2.11, I receive this message when trying to install the Mono.CSharp package as an example:

WARNING: libMonoPosixHelper.dylib
Unable to find package 'Mono.CSharp'.

I'd be happy to troubleshoot for you, but I'm not sure what other information you may want.  Also, sorry if I didn't categorize this issue correctly.
Comment 1 Dale Ragan 2012-04-17 16:12:43 UTC
Created attachment 1692 [details]
This is the trace with MONO_LOG_LEVEL=debug MONO_LOG_MASK=asm set.

Here's the trace output with MONO_LOG_LEVEL=debug MONO_LOG_MASK=asm set while running NuGet.exe under Mono 2.11.0.
Comment 2 Marek Safar 2012-04-20 06:14:00 UTC
How can I reproduce the issue?
Comment 3 Dale Ragan 2012-04-20 16:05:59 UTC
Download the NuGet command-line bootstrapper if you haven't yet:


Once downloaded, extract and run the NuGet.exe under Mono 2.11.0.  Trying to install any package will cause the issue, but you can use this:

mono --runtime=v4.0.30319 NuGet.exe install Mono.CSharp -o packages
Comment 4 Marek Safar 2012-04-23 09:52:21 UTC
I cannot reproduce it on linux

1. Installed the certificates (mozroots --import --ask-remove)
2. downloaded NuGet
3. Self upgrade to version 1.7.30402.9028
4. mono NuGet.exe install Mono.CSharp
Successfully installed 'Mono.CSharp 4.0'.
Comment 5 Dale Ragan 2012-04-23 14:26:04 UTC
Could this be OS specific?  I'm on OS X 10.7.
Comment 6 Dale Ragan 2012-11-17 13:46:53 UTC
Hi Marek - I recently revisited this issue with Mono 3.0.1 and everything seems to work. However, if I compile Mono off the master branch, I still receive the same issue. Is there something extra I need to do, besides:

./autogen.sh --prefix=DIR --with-glib=embedded --enable-nls=no
make install

# imported certificates as well
mozroots --import --ask-remove

I'm also setting up the parallel environment using the instructions from here and yes, I fixed the typo with :


Here's also a twitter thread with another user having the same issue:


Wondering since the packaged version is working if there's an extra step that I'm not doing after compilation. I'm more than happy to troubleshoot this for you, but I'm not sure where to start. I appreciate any help you can give to get this issue resolved.
Comment 7 Dale Ragan 2012-11-17 13:53:38 UTC
err* "I fixed the typo with :" should be "I fixed the typo with DYLD_LIBRARY_FALLBACK_PATH to DYLD_FALLBACK_LIBRARY_PATH".
Comment 8 Rodrigo Kumpera 2014-01-17 18:15:59 UTC
NuGet should work now. Please reopen this bug if you still have issues.