[Mono-list] Fixing error CS8027: Error running pkg-config

Vlad Kozin vladilen.kozin at gmail.com
Wed Feb 5 14:16:31 UTC 2014


Hi.

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.
Thanks
---
Vlad Kozin <vladilen.kozin at gmail.com>



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ximian.com/pipermail/mono-list/attachments/20140205/c147aff1/attachment.html>


More information about the Mono-list mailing list