Updating ruby mac os x
(for example, mine is 'chris') rails new myapp -d postgresql # Move into the application directory cd myapp # If you setup My SQL or Postgres with a username/password, modify the # config/file to contain the username/password that you specified # Create the database rake db:create rails server When I try to run rbenv rehash, I get this error:dyld: Library not loaded: /usr/local/opt/readline/lib/libhistory.6.dylib Referenced from: /usr/local/bin/bash Reason: image not found Abort trap: 6Not finding anything very helpful right now. I just installed mac OS Sierra and updated Ruby, Rails, rbenv...
~/.bash_profilesource ~/.bash_profile And now everytime I open a terminal window I am getting the below at the top of my window:-bash: /Users/robertsaunders/.bash_profile: line 2: syntax error near unexpected token `source'-bash: /Users/robertsaunders/.bash_profile: line 2: `if which rbenv https://cache...\Installing ruby-2.2.5...
If you don’t have the latest version of mac OS, take the time to get it.
This process can take a while depending on your internet connection and how old your computer is, but it’s worth the effort.
So for my own reference, I’ve put together some comprehensive instructions. Here’s a quick summary of the steps we’ll need to take: Before you begin, make sure your Mac is fully up-to-date.
Open up the App Store and check for any available updates or upgrades.
If you have not already done so you may wish to read the Installing Calabash on OS X guide and install Calabash.
You can install My SQL server and client from Homebrew: rails new myapp #### If you want to use My SQL rails new myapp -d mysql #### If you want to use Postgres # Note you will need to change config/database.yml's username to be # the same as your OSX user account.I had to run the rbenv commands with "sudo" otherwise it wouldn't even compile. That also forced "sudo" on the gem install command. was having problems with brew mysql when generating a new app using the mysql ....error would thrown when 'Installing mysql2 0.4.5 with native extensions'...Errno:: EACCES: Permission denied @ rb_sysopen -/Users/MYUSERNAME/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/mysql2-0.4.5/CHANGELOG.mdwhat I had to do to solve that ..chown -R $(whoami) /Users/MYUSERNAME/.rbenv/ ....tried milions things before ..seemed to work ...am nubi, asking for error Access denied for user 'root'@'localhost' (using password: NO)i've tried update user and pass but this error still appear. sorry for my bad english These instructions are terrible.