Skip to content

Commit 0cc0694

Browse files
Install instructions for OS X
Added installation instructions for dblib and FreeTDS on OS X
1 parent c28260a commit 0cc0694

File tree

1 file changed

+39
-1
lines changed

1 file changed

+39
-1
lines changed

Resources/doc/0-requirements.md

Lines changed: 39 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,45 @@ FreeTDS is a set of libraries for Unix and Linux that allows your programs to na
66

77
This bundle needs the `FreeTDS`_ and `pdo_dblib`_ driver to be installed on your system.
88

9+
Make sure your freetds config (usually located in /etc/freetds/freetds.conf) contains this block:
910

11+
## Install dblib & FreeTDS on OS X
1012

11-
Make sure your freetds config (usually located in /etc/freetds/freetds.conf) contains this block:
13+
The simplest way to install dblib on OS X is by using [Homebrew](http://brew.sh/). This guide will therefore assume that you have [Homebew installed](http://brew.sh/), are using PHP [installed with Homebrew](https://github.com/Homebrew/homebrew-php#installation) and using the native Apache server in OS X.
14+
15+
### Install
16+
17+
1. `brew update`
18+
2. `brew install php56-pdo-dblib` The installation can take some time, be patient!
19+
3. `sudo apachectl restart`
20+
21+
*Any version of PHP installed with Homebrew should work. Just change `php56` in the command to your version.*
22+
23+
### Update the FreeTDS config
24+
25+
To finish up we also need to do some light modifications to the FreeTDS configuration.
26+
27+
You should find the config file in `/usr/local/etc/freetds.conf`. Open it with your favorit text editor.
28+
29+
In the `[global]` section, find a line that looks like
30+
31+
```
32+
# TDS protocol version
33+
; tds version = x
34+
```
35+
36+
Uncomment the line and change the version number to **8**, you should have
37+
38+
```
39+
# TDS protocol version
40+
tds version = 8
41+
```
42+
43+
And finally, add the following line below the version
44+
45+
```
46+
# Charset
47+
client charset = UTF-8
48+
```
1249

50+
Save the changes and you are good to go.

0 commit comments

Comments
 (0)