Locomotive CMS -V3 Install
Locomotive CMS is here and I couldn't install it!
I got it going though and I hope this helps someone else figure this out.
First thing is to make sure you have Ruby 2.0 or higher installed.
ruby -v in your terminal.
gem install locomotivecms_wagon --pre to install "Wagon".
This is where my build kept failing. I couldn't figure out what was going on as I kept getting this error:
ERROR: Error installing locomotivecms_wagon: ERROR: Failed to build gem native extension. /Users/Home/.rvm/rubies/ruby-2.2.3/bin/ruby -r ./siteconf20160112-63013-1sk23ge.rb extconf.rb checking for rb_trap_immediate in ruby.h,rubysig.h... no checking for rb_thread_blocking_region()... no checking for ruby/thread.h... yes checking for rb_thread_call_without_gvl() in ruby/thread.h... yes checking for inotify_init() in sys/inotify.h... no checking for __NR_inotify_init in sys/syscall.h... no checking for writev() in sys/uio.h... yes checking for rb_thread_fd_select()... yes checking for rb_fdset_t in ruby/intern.h... yes checking for pipe2() in unistd.h... no checking for accept4() in sys/socket.h... no checking for SOCK_CLOEXEC in sys/socket.h... no checking for rb_wait_for_single_fd()... yes checking for rb_enable_interrupt()... no checking for rb_time_new()... yes checking for sys/event.h... yes checking for sys/queue.h... yes CFLAGS=-O3 -I/Users/haven/.sm/pkg/active/include -fPIC -mmacosx-version-min=10.7 -pipe -Wall -Wextra -Wno-deprecated- declarations -Wno-ignored-qualifiers -Wno-unused-result CPPFLAGS=-D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT $(DEFS) $(cppflags) -Wall -Wextra -Wno-deprecated-declarations -Wno-ignored-qualifiers -Wno-unused-result checking for clock_gettime()... no checking for gethrtime()... no creating Makefile make "DESTDIR=" clean make "DESTDIR=" compiling binder.cpp In file included from binder.cpp:20: ./project.h:116:10: fatal error: 'openssl/ssl.h' file not found #include <openssl/ssl.h> ^ 1 error generated. make: *** [binder.o] Error 1 make failed, exit code 2 Gem files will remain installed in /Users/Home/.rvm/gems/ruby-2.2.3/gems/eventmachine-1.0.8 for inspection.
I know that's a long file, but maybe by posting the entire thing it will allow someone to find this super simple answer.
I guess El Capitan on the mac doesn't have openssl supported anymore, so I added openssl using Homebrew with the following command in the terminal:
brew install openssl
If you actually read the notes that Homebrew gives you, you'll see this and not have to continue to google everything like I did....
This formula is keg-only, which means it was not symlinked into /usr/local. Apple has deprecated use of OpenSSL in favor of its own TLS and crypto libraries Generally there are no consequences of this for you. If you build your own software and it requires this formula, you'll need to add to your build variables: LDFLAGS: -L/usr/local/opt/openssl/lib CPPFLAGS: -I/usr/local/opt/openssl/include
One last thing to do though... you'll need to "link" the new openssl "keg" using the following command:
brew link openssl --force
Once this is complete, you can run
gem install locomotivecms_wagon --pre again and you should be good to go.
I hope this helps!