Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support OpenBSD tar by using explicit tar -xzf #134

Merged
merged 1 commit into from
Jul 1, 2019
Merged

Support OpenBSD tar by using explicit tar -xzf #134

merged 1 commit into from
Jul 1, 2019

Conversation

sirn
Copy link
Contributor

@sirn sirn commented Apr 8, 2019

OpenBSD tar won't try to extract the compressed archive if no format type (z/j/...) is specified and trying to install pg_query gem on OpenBSD system will result in the following error:

tar: input compressed with gzip; use the -z option to decompress it
*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of necessary
libraries and/or headers.  Check the mkmf.log file for more details.  You may
need configuration options.

Provided configuration options:
        --with-opt-dir
        --without-opt-dir
        --with-opt-include
        --without-opt-include=${opt-dir}/include
        --with-opt-lib
        --without-opt-lib=${opt-dir}/lib
        --with-make-prog
        --without-make-prog
        --srcdir=.
        --curdir
        --ruby=/home/sirn/.asdf/installs/ruby/2.6.2/bin/$(RUBY_BASE_NAME)
extconf.rb:22:in `<main>': ERROR (RuntimeError)

extconf failed, exit code 1

This PR fixes the error by adding z to the tar command in extconf.

@lfittl lfittl merged commit d7c5bb8 into pganalyze:master Jul 1, 2019
@lfittl
Copy link
Member

lfittl commented Jul 1, 2019

@sirn Thanks for the contribution!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants