Skip to content

Commit

Permalink
Merge pull request #14624 from jamox/dev_install_guide
Browse files Browse the repository at this point in the history
Added OS X specific commands to installation guide [ci skip]
  • Loading branch information
senny committed Apr 7, 2014
2 parents 39a54c6 + 2bc0271 commit 89ca9dd
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion guides/source/development_dependencies_install.md
Expand Up @@ -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
Expand Down Expand Up @@ -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).
Expand Down Expand Up @@ -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

Expand Down

0 comments on commit 89ca9dd

Please sign in to comment.