tag:help.appveyor.com,2012-11-13:/discussions/suggestions/491-install-pkg-configAppVeyor: Discussion 2018-10-19T08:16:54Ztag:help.appveyor.com,2012-11-13:Comment/355008502014-12-09T19:20:24Z2014-12-09T19:20:24Zinstall pkg-config<div><p>Are there any instructions on how to install that?</p></div>Feodor Fitsnertag:help.appveyor.com,2012-11-13:Comment/355008502014-12-09T19:35:24Z2014-12-09T19:35:25Zinstall pkg-config<div><p>According to <a href=
"http://stackoverflow.com/a/22363820">http://stackoverflow.com/a/22363820</a>
you need to download it + 2 dependent packages, extract them and
move selected files (see link) into C:\MinGW\bin</p></div>V. Kuznetsovtag:help.appveyor.com,2012-11-13:Comment/355008502014-12-09T20:16:18Z2014-12-09T20:16:19Zinstall pkg-config<div><p>I tried <a href=
"http://stackoverflow.com/a/26453379">http://stackoverflow.com/a/26453379</a></p>
<pre>
<code>appveyor DownloadFile http://win32builder.gnome.org/packages/3.6/glib_2.34.3-1_win32.zip
appveyor DownloadFile http://win32builder.gnome.org/packages/3.6/pkg-config_0.28-1_win32.zip
appveyor DownloadFile http://win32builder.gnome.org/packages/3.6/pkg-config-dev_0.28-1_win32.zip
7z x glib_2.34.3-1_win32.zip -oC:\MinGW -r
7z x pkg-config_0.28-1_win32.zip -oC:\MinGW -r
7z x pkg-config-dev_0.28-1_win32.zip -oC:\MinGW -r</code>
</pre>
<p>It didn't help.</p></div>V. Kuznetsovtag:help.appveyor.com,2012-11-13:Comment/355008502014-12-09T20:21:00Z2014-12-09T20:21:00Zinstall pkg-config<div><p>That's worrying me :)</p></div>Feodor Fitsnertag:help.appveyor.com,2012-11-13:Comment/355008502014-12-10T13:09:34Z2014-12-10T13:09:35Zinstall pkg-config<div><pre>
<code>appveyor DownloadFile http://ftp.gnome.org/pub/gnome/binaries/win32/dependencies/pkg-config_0.26-1_win32.zip
appveyor DownloadFile http://ftp.gnome.org/pub/gnome/binaries/win32/glib/2.28/glib_2.28.8-1_win32.zip
appveyor DownloadFile http://ftp.gnome.org/pub/gnome/binaries/win32/dependencies/gettext-runtime_0.18.1.1-2_win32.zip
7z x pkg-config_0.26-1_win32.zip -oC:\MinGW -r
7z x glib_2.28.8-1_win32.zip -oC:\MinGW -r
7z x gettext-runtime_0.18.1.1-2_win32.zip -oC:\MinGW -r -y</code>
</pre>
<p>Still doesn't work.</p>
<p>Feodor, do you know any workaround to install 'rugged' ruby gem?
<code>gem install rugged</code> fails</p></div>V. Kuznetsovtag:help.appveyor.com,2012-11-13:Comment/355008502014-12-10T13:12:03Z2014-12-10T13:12:04Zinstall pkg-config<div><p>pkg-config is required to build Rugged</p>
<p>error backtrace:</p>
<pre>
<code>Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension.
175
176 C:/Ruby193/bin/ruby.exe extconf.rb
177checking for cmake... yes
178checking for gmake... no
179checking for make... yes
180checking for pkg-config... no
181ERROR: pkg-config is required to build Rugged.
182*** extconf.rb failed ***
183Could not create Makefile due to some reason, probably lack of
184necessary libraries and/or headers. Check the mkmf.log file for more
185details. You may need configuration options.
186
187Provided configuration options:
188 --with-opt-dir
189 --without-opt-dir
190 --with-opt-include
191 --without-opt-include=${opt-dir}/include
192 --with-opt-lib
193 --without-opt-lib=${opt-dir}/lib
194 --with-make-prog
195 --without-make-prog
196 --srcdir=.
197 --curdir
198 --ruby=C:/Ruby193/bin/ruby</code>
</pre></div>V. Kuznetsovtag:help.appveyor.com,2012-11-13:Comment/355008502014-12-10T18:29:47Z2014-12-10T18:29:47Zinstall pkg-config<div><p>I've seen <a href="http://www.mingw.org/wiki/FAQ">here</a> and
<a href=
"http://stackoverflow.com/questions/1710922/how-to-install-pkg-config-in-windows">
here</a> that GTK is required.</p>
<p>GTK is available on <code>unstable</code> build worker image.
You can choose it on UI or if you use
<code>appveyor.yml</code>:</p>
<pre>
<code>os: unstable</code>
</pre></div>Feodor Fitsnertag:help.appveyor.com,2012-11-13:Comment/355008502014-12-11T18:54:36Z2014-12-11T18:54:37Zinstall pkg-config<div><p>Same error</p></div>V. Kuznetsovtag:help.appveyor.com,2012-11-13:Comment/355008502017-03-31T08:45:36Z2017-03-31T08:45:39Zinstall pkg-config<div><p>I know this thread is terribly old, but it's one of the first Google results for "appveyor pkg-config", so hopefully people from the future will find this and be helped: the snippet in comment 5 <em>does</em> produce a working <code>pkg-config</code>. I use a very similar script:</p>
<pre>
<code class="yaml"> - curl -LO %GNOME_BASE%/dependencies/pkg-config_0.26-1_win32.zip
- curl -LO %GNOME_BASE%/glib/2.28/glib_2.28.8-1_win32.zip
- curl -LO %GNOME_BASE%/dependencies/gettext-runtime_0.18.1.1-2_win32.zip
- 7z x -y pkg-config_0.26-1_win32.zip -oC:\pkg-config > nul
- 7z x -y glib_2.28.8-1_win32.zip -oC:\pkg-config > nul
- 7z x -y gettext-runtime_0.18.1.1-2_win32.zip -oC:\pkg-config > nul
<pre><code>
You can also use Chocolately and install the `pkgconfiglite` package, but be warned: it&#39;s got some bugs (in particular, it doesn&#39;t output library dirs correctly with `--msvc-syntax`.</code>
</pre></code>
</pre></div>Jim