我在Mac OS X中安裝了單聲道。我在單聲道網站上使用these指令。第一個控制檯應用程序工作,因爲它沒有使用任何軟件包。但是,當我運行gmcs hello.cs -pkg:gtk-sharp-2.0
時,它告訴我我沒有安裝pkg-config。所以我安裝了pkg-config。現在,我得到這個錯誤,因爲pkg配置不知道單包路徑:mac上的單聲道的pkg-config路徑
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.
哪裏是單包路徑和做什麼我需要添加到.bash_profile
,以讓這個單能找到包?
使用你的建議,我發現'/ Library/Frameworks/Mono.framework/Versions/2.6.7/lib/pkgconfig'中的文件 – None 2010-08-06 20:08:50
這有助於覆蓋我在Linux筆記本電腦上安裝的默認版本/ usr/bin/mono)到不同的位置(/opt/mono-2.10/bin/mono)。 - 謝謝。 – slm 2012-06-27 15:45:29