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

can not install re2 gem #38

Closed
travis-pagerduty opened this issue Aug 20, 2018 · 1 comment
Closed

can not install re2 gem #38

travis-pagerduty opened this issue Aug 20, 2018 · 1 comment

Comments

@travis-pagerduty
Copy link

travis-pagerduty commented Aug 20, 2018

No matter what I try, I keep getting an error when I attempt to install the re2 gem:

checking for main() in -lstdc++... no
checking for stdint.h... yes
checking for rb_str_sublen()... yes
checking for main() in -lre2... yes
checking for re2 requires C++11 compiler... *** 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=~/.asdf/installs/ruby/2.2.4/bin/$(RUBY_BASE_NAME)
        --with-re2-dir
        --without-re2-dir
        --with-re2-include
        --without-re2-include=${re2-dir}/include
        --with-re2-lib
        --without-re2-lib=${re2-dir}/lib
        --with-stdc++lib
        --without-stdc++lib
        --with-re2lib
        --without-re2lib

extconf failed, exit code 1

What am I missing?

@travis-pagerduty
Copy link
Author

I had been led to believe that I needed to use gcc5 in order to compile ruby 2.2.4 with asdf. This turned out to be incorrect and I think that may have been the underlying problem. With libssl1.0-dev installed, asdf ruby install 2.2.4 worked and installing the re2 gem subsequently worked without issue (I had installed the re2 library using the instructions on the homepage).

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

No branches or pull requests

1 participant