[Mono-list] Fixing error CS8027: Error running pkg-config
vladilen.kozin at gmail.com
Wed Feb 5 14:16:31 UTC 2014
While trying to compile examples from http://www.mono-project.com/Mono_Basics I kept getting:
vkz-air:mono vkz$ gmcs hello-wforms.cs -pkg:dotnetPackage dotnet was not found in the pkg-config search path.
Perhaps you should add the directory containing `dotnet.pc'
to the PKG_CONFIG_PATH environment variable
No package 'dotnet' found
error CS8027: Error running pkg-config. Check the above output.
I fixed that by:
PKG_CONFIG_PATH=/Library/Frameworks/Mono.framework/Versions/Current/lib/pkgconfig; export PKG_CONFIG_PATH
I can't help but wonder why wasn't this setup for me when I fresh-installed mono + MonoDevelop as described on http://www.mono-project.com/Mono:OSX
Suspect this isn't unique to OSX, so posting to this list.
Vlad Kozin <vladilen.kozin at gmail.com>
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Mono-list