install pkg-config

V. Kuznetsov's Avatar

V. Kuznetsov

09 Dec, 2014 07:06 PM

Is it possible to have pkg-config installed? I need it to build an extension by cmake.

  1. Support Staff 1 Posted by Feodor Fitsner on 09 Dec, 2014 07:20 PM

    Feodor Fitsner's Avatar

    Are there any instructions on how to install that?

  2. 2 Posted by V. Kuznetsov on 09 Dec, 2014 07:35 PM

    V. Kuznetsov's Avatar

    According to http://stackoverflow.com/a/22363820 you need to download it + 2 dependent packages, extract them and move selected files (see link) into C:\MinGW\bin

  3. 3 Posted by V. Kuznetsov on 09 Dec, 2014 08:16 PM

    V. Kuznetsov's Avatar

    I tried http://stackoverflow.com/a/26453379

    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
    

    It didn't help.

  4. Support Staff 4 Posted by Feodor Fitsner on 09 Dec, 2014 08:21 PM

    Feodor Fitsner's Avatar

    That's worrying me :)

  5. 5 Posted by V. Kuznetsov on 10 Dec, 2014 01:09 PM

    V. Kuznetsov's Avatar
    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
    

    Still doesn't work.

    Feodor, do you know any workaround to install 'rugged' ruby gem? gem install rugged fails

  6. 6 Posted by V. Kuznetsov on 10 Dec, 2014 01:12 PM

    V. Kuznetsov's Avatar

    pkg-config is required to build Rugged

    error backtrace:

    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
    
  7. Support Staff 7 Posted by Feodor Fitsner on 10 Dec, 2014 06:29 PM

    Feodor Fitsner's Avatar

    I've seen here and here that GTK is required.

    GTK is available on unstable build worker image. You can choose it on UI or if you use appveyor.yml:

    os: unstable
    
  8. 8 Posted by V. Kuznetsov on 11 Dec, 2014 06:54 PM

    V. Kuznetsov's Avatar

    Same error

  9. 9 Posted by Jim on 31 Mar, 2017 08:45 AM

    Jim's Avatar

    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 does produce a working pkg-config. I use a very similar script:

      - 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>
    
  10. Ilya Finkelshteyn closed this discussion on 25 Aug, 2018 02:16 AM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac

Recent Discussions

16 Jul, 2019 05:17 PM
16 Jul, 2019 10:17 AM
16 Jul, 2019 07:46 AM
16 Jul, 2019 04:51 AM
15 Jul, 2019 06:33 PM

 

15 Jul, 2019 06:09 PM
15 Jul, 2019 05:53 PM
15 Jul, 2019 05:46 PM
15 Jul, 2019 05:21 PM
15 Jul, 2019 04:29 PM
15 Jul, 2019 03:12 PM