title: “Installing Solar on El Captain” date: “2017-02-25” tags: – “instalacao” – “install” – “macos” – “rails” – “solar”
Solar is the Learning Management System made by Instituto Universidade Virtual, Universidade Federal do Ceará, available at GitHub, written in RubyOnRails.
When I tried to install on El Captain, some issues had shown:
- OpenSSL missing
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 ^ 1 error generated. make: *** [binder.o] Error 1 make failed, exit code 2 Gem files will remain installed in /Users/emanoel/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/eventmachine-1.0.7 for inspection. Results logged to /Users/emanoel/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/extensions/x86_64-darwin-15/2.1.0-static/eventmachine-1.0.7/gem_make.out An error occurred while installing eventmachine (1.0.7), and Bundler cannot continue. Make sure that `gem install eventmachine -v '1.0.7'` succeeds before bundling.
gem install eventmachine -v '1.0.7' — —with-cppflags=-I/usr/local/opt/openssl/include
- Configure PostgreSQL using these commands at prompt:
$ initdb /usr/local/var/postgres $ cp /usr/local/Cellar/postgresql/9.6.2/homebrew.mxcl.postgresql.plist ~/Library/LaunchAgents $ launchctl load -w ~/Library/LaunchAgents/homebrew.mxcl.postgresql.plist $ pg_ctl -D /usr/local/var/postgres -l logfile start $ createuser -P -s -d -e username $ vim /usr/local/var/postgres/pg_hba.conf
2.1 Add line following the Solar 2.0 manual instructions.
local all username md5
Emanoel Lopes