I'm on debian. I did sudo apt-get install mono-complete
I am trying to compile this program
user@debian:~$ cat a2.cs
using Gtk;
using System;
class Hello {
static void Main()
{
Application.Init ();
Window window = new Window ("helloworld");
window.Show();
Application.Run ();
}
}
Then, when I try to compile it, I get this error
user@debian:~$ mcs a2.cs -pkg:gtk-sharp-2.0
Package gtk-sharp-2.0 was not found in the pkg-config search path.
Perhaps you should add the directory containing `gtk-sharp-2.0.pc'
to the PKG_CONFIG_PATH environment variable
No package 'gtk-sharp-2.0' found
error CS8027: Error running pkg-config. Check the above output.
user@debian:~$
one answer to a similar problem said try dmcs
user@debian:~$ dmcs a2.cs -pkg:gtk-sharp-2.0
Package gtk-sharp-2.0 was not found in the pkg-config search path.
Perhaps you should add the directory containing `gtk-sharp-2.0.pc'
to the PKG_CONFIG_PATH environment variable
No package 'gtk-sharp-2.0' found
error CS8027: Error running pkg-config. Check the above output.
user@debian:~$
but dmcs gives the same error
I saw a suggestion to make yum install gtk-sharp2, but any spell I use says the package is not available, so I'm not sure if this package
user@debian:~$ sudo yum install gtk-sharp-2.0
Setting up Install Process
No package gtk-sharp-2.0 available.
Nothing to do
user@debian:~$
user@debian:~$ sudo yum install gtk-sharp2-devel
Setting up Install Process
No package gtk-sharp2-devel available.
Nothing to do
user@debian:~$
I was looking for my error https://stackoverflow.com/search?q=cs8027 and they all say that this PKG_CONFIG_PATH variable should point to the correct path.
, , . -, .pc gtk. , .
user@debian:/usr$ echo $PKG_CONFIG_PATH
user@debian:/usr$