Advertisement
Guest User

Untitled

a guest
Sep 19th, 2019
116
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.55 KB | None | 0 0
  1. ## -------------
  2. ## macOS
  3. ## -------------
  4. brew install mysql@5.7 # mysql@5.6 / default mysql8
  5.  
  6. ## ~/.bash_profile or ~/.zshrc
  7. export PATH="/usr/local/opt/mysql@5.7/bin:$PATH"
  8. export LDFLAGS="-L/usr/local/opt/mysql@5.7/lib"
  9. export CPPFLAGS="-I/usr/local/opt/mysql@5.7/include"
  10. export PKG_CONFIG_PATH="/usr/local/opt/mysql@5.7/lib/pkgconfig"
  11.  
  12. ## source ~/.bash_profile or ~/.zshrc
  13. # cd application_dir
  14. gem install mysql2 # or bundle install
  15.  
  16. ## -------------
  17. ## Linux (redhat)
  18. ## -------------
  19. yum install mysql mysql-devel
  20. gem install mysql2 # or bundle install
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement