artimys
9/20/2019 - 3:56 PM

Install Troubelshooing Guide

Nokogiri

Trouble installing nokogiri on MacOS Mojave

https://nokogiri.org/tutorials/installing_nokogiri.html#unable-to-find-libraries-on-macos-mojave

Error: libiconv is missing.

This worked: open /Library/Developer/CommandLineTools/Packages/macOS_SDK_headers_for_macOS_10.14.pkg

Missing libssl in openssl for nginx

± sudo nginx
Password:
dyld: Library not loaded: /usr/local/opt/openssl/lib/libssl.1.0.0.dylib
  Referenced from: /usr/local/bin/nginx
  Reason: image not found
[1]    24135 abort      sudo nginx

solution Initially went to directly /usr/local/opt/openssl/lib/ and found different version numbers and would create symlink but messy.

Instead switched verson of openssl: brew switch command found from this article https://stackoverflow.com/questions/59006602/dyld-library-not-loaded-usr-local-opt-openssl-lib-libssl-1-0-0-dylib

# Searches available versions
ls -al /usr/local/Cellar/openssl
#total 0
#drwxr-xr-x   3 arturo  staff    96 Aug 28  2019 .
#drwxrwxr-x  48 arturo  admin  1536 Apr 21 16:48 ..
#drwxr-xr-x  13 arturo  staff   416 Jul 15  2019 1.0.2s

# Then should the version and make the switch
brew switch openssl 1.0.2s
#Cleaning /usr/local/Cellar/openssl/1.0.2s
#Opt link created for /usr/local/Cellar/openssl/1.0.2s

Running bundle exec rake db:create return an error when using postgresq@10.

could not connect to server: 
No such file or directory Is the server running locally and 
accepting connections on Unix domain socket "/var/pgsql_socket/.s.PGSQL.5432"?

solution Added host: localhost to rails app database.yml