Hey Geoff. I'm on the same boat as you, but I managed to recompile ruby 2.1.2 with open ssl using:
rvm reinstall 2.1.2 --with-opt-dir=/usr/local --with-openssl-dir=/usr/local/opt/openssl (OpenSSL has been installed with brew) `bundle install` does not complain anymore about openssl. However, it fails to install nokogiri even though I have the XCode CLI: ``` Installing nokogiri 1.6.5 with native extensions Gem::Ext::BuildError: ERROR: Failed to build gem native extension. current directory: /Users/thomasbouron/.rvm/gems/ruby-2.1.2@brooklyn-site /gems/nokogiri-1.6.5/ext/nokogiri /Users/thomasbouron/.rvm/rubies/ruby-2.1.2/bin/ruby -r ./siteconf20190320-3453-1vglirq.rb extconf.rb checking if the C compiler accepts ... yes checking if the C compiler accepts -Wno-error=unused-command-line-argument-hard-error-in-future... no Building nokogiri using packaged libraries. ----- The file "/usr/include/iconv.h" is missing in your build environment, which means you haven't installed Xcode Command Line Tools properly. To install Command Line Tools, try running `xcode-select --install` on terminal and follow the instructions. If it fails, open Xcode.app, select from the menu "Xcode" - "Open Developer Tool" - "More Developer Tools" to open the developer site, download the installer for your OS version and run 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. ``` On Wed, 20 Mar 2019 at 00:16 Peter Abramowitsch <pabramowit...@gmail.com> wrote: > Hi Geoff > > Not that long ago I was using a much more recent ruby with openssl. > > > I'm running 2.3.2 and just re-installed openssl > > cogitext:~ peterabramowitsch$ rvm list > rvm rubies > =* ruby-2.3.2 [ x86_64 ] > # => - current > # =* - current && default > # * - default > > > cogitext:~ peterabramowitsch$ gem list openssl > *** LOCAL GEMS *** > openssl (2.1.2) > > The gemsite can function with http or https, I think yours is an issue > with bundler which I've seen before which is caused by a kind of > catch-22. It needs ssl to do a download of openssl which it needs to > do the download..... > > Fix 1. > Change the first line of the gemfile to http: > source 'http://rubygems.org' > And now do a bundle install > After a successful bundle install you might be able to change it back > > Fix 2. > manually install openssl via "gem install openssl" > and then your bundle install should work correctly > > > > -P. > > Sent from my iPad > > > > On Mar 19, 2019, at 16:38, Geoff Macartney <geoff.macart...@gmail.com> > wrote: > > > > Hi all, > > > > I made a start to adding changes to the Apache Brooklyn website to > comply with Apache Foundation naming guidelines, wip is at [1]. > > > > However I’ve run into a problem trying to test it with Jekyll, which I > haven’t installed on this machine up to now (it’s a MacBook Pro). I’ve > added the version of Ruby that’s required (very old now, 2.1.2) via rvm, > but when I run the “bundle install” per the docs at [2] I get complaints > about openssl. > > > > This is even when I install 2.1.2 with > > > > rvm install 2.1.2 --with-opt-dir=/usr/local --with-openssl > > > > Despite requesting openssl, when I do bundle install I get > > > > $ bundle install > > Could not load OpenSSL. > > You must recompile Ruby with OpenSSL support or change the sources in > your Gemfile from 'https' to 'http'. Instructions for compiling with > OpenSSL using RVM are > > available at rvm.io/packages/openssl. > > > > I’m loth to start building 2.1.2 from source just to get the openssl > support, before I launch into that has anyone encountered this problem or > can advise on an alternative approach? > > > > Cheers > > Geoff > > > > [1] https://github.com/apache/brooklyn-docs/pull/280 > > [2] > https://github.com/apache/brooklyn-docs/tree/website#workstation-setup > > > -- Thomas Bouron Senior Software Engineer *Cloudsoft <https://cloudsoft.io/> *| Bringing Business to the Cloud GitHub: https://github.com/tbouron Twitter: https://twitter.com/eltibouron Need a hand with AWS? Get a Free Consultation.