Updating ruby os x
I found that I had to remove the old version of homebrew and then reinstall it, run brew doctor (correct any errors) and then I was good to go!I tried doing this a few weeks ago and ended up messing up the bash file.Just remember not to use sudo to install the gem (as that page suggests) because it'll mess with the permissions in your rbenv install, which should be in your user account & not need sudo (fixable with something like sudo chown -R $(whoami) ~/.rbenv) i am facing a problem while installing Rail (gem install rails -v 4.2.4)its shows an error like while executing gem ... "Could not find pg-0.18.3 in any of the sources Run `bundle install` to install missing gems."I have ran "bundle install" and when I try to run "rails server", I get the same error again.(Errno:: EACCES) Permission denied - /Library/Ruby/Gems/2.0.0/gems/nokogiri-22.214.171.124/.autotestin the terminal any one suggest me a solution It looks like either rbenv isn't installed properly, e.g. I always get this error message, when I open this local host web page: Specified 'mysql2' for database adapter, but the gem is not loaded.OK I tried to reinstall whole ruby on rails and I also got the same error.Everything went OK untill I had to write rake db:create after this command I've got this error message: Gem:: Load Error: Specified 'mysql2' for database adapter, but the gem is not loaded.So Idk if it's just the error of the localhost, or I did mistake somewhere else. I'm really frustrated with just installing this ruby and it really keeps me away from wanted to learn this, cause it's not running as it should.You now have to give Rails informations about you database in your file.
If you're new to databases, I'd suggest skipping to setting up Postgre SQL.
Pay attention you can run in few environments, so you have to specify default informations, or informations for each environment.
It will look like this :development: adapter: mysql2 encoding: utf8 database: my_db_name username: root password: my_password host: 127.0.0.1 port: 3306 Thanks mate.
If you have XCode installed then run this BEFORE you try to install rails (or you'll keep running into errors):xcode-select --install I took this from: You need the command line tools and that's what this installs.
I ran the rails app and it doesn't seem to have any errors but when I go to the "localhost:3000" site, it tells me that, "This webpage is not available." Is there any other way to see if the database actually ran? I upgraded to El Capitan with homebrew already installed.