aboutsummaryrefslogtreecommitdiffstats
path: root/guides/source/development_dependencies_install.md
diff options
context:
space:
mode:
authorJarmo Isotalo <jamo@isotalo.fi>2014-04-06 21:57:20 +0300
committerJarmo Isotalo <jamo@isotalo.fi>2014-04-07 00:07:46 +0300
commit2bc0271e3df0aa76a1a51fb69b4c780b95cd0bce (patch)
tree217a030ca9ec4f2e66861aae5c9e48e85d137226 /guides/source/development_dependencies_install.md
parentbaa9b9bf5372470669ef1a7b05807b8d17068af8 (diff)
downloadrails-2bc0271e3df0aa76a1a51fb69b4c780b95cd0bce.tar.gz
rails-2bc0271e3df0aa76a1a51fb69b4c780b95cd0bce.tar.bz2
rails-2bc0271e3df0aa76a1a51fb69b4c780b95cd0bce.zip
Added OS X specific commands to installation guide [ci skip]
Recommended using homebrew for installing MySQL and PostgreSQL
Diffstat (limited to 'guides/source/development_dependencies_install.md')
-rw-r--r--guides/source/development_dependencies_install.md15
1 files changed, 14 insertions, 1 deletions
diff --git a/guides/source/development_dependencies_install.md b/guides/source/development_dependencies_install.md
index 4ee43b6a97..b0e070120d 100644
--- a/guides/source/development_dependencies_install.md
+++ b/guides/source/development_dependencies_install.md
@@ -117,7 +117,7 @@ This command will install all dependencies except the MySQL and PostgreSQL Ruby
NOTE: If you would like to run the tests that use memcached, you need to ensure that you have it installed and running.
-You can use homebrew to install memcached on OSX:
+You can use [Homebrew](http://brew.sh/) to install memcached on OSX:
```bash
$ brew install memcached
@@ -210,6 +210,14 @@ FreeBSD users will have to run the following:
# pkg_add -r postgresql92-client postgresql92-server
```
+You can use [Homebrew](http://brew.sh/) to install MySQL and PostgreSQL on OSX:
+
+```bash
+$ brew install mysql
+$ brew install postgresql
+```
+Follow instructions given by [Homebrew](http://brew.sh/) to start these.
+
Or install them through ports (they are located under the `databases` folder).
If you run into troubles during the installation of MySQL, please see
[the MySQL documentation](http://dev.mysql.com/doc/refman/5.1/en/freebsd-installation.html).
@@ -245,10 +253,15 @@ $ bundle exec rake mysql:build_databases
```
PostgreSQL's authentication works differently. A simple way to set up the development environment for example is to run with your development account
+This is not needed when installed via [Homebrew](http://brew.sh).
```bash
$ sudo -u postgres createuser --superuser $USER
```
+And for OS X (when installed via [Homebrew](http://brew.sh))
+```bash
+$ createuser --superuser $USER
+```
and then create the test databases with