Skip to content

Commit ead9e60

Browse files
committed
Added OSX fix by @jiminoc
1 parent 21f4673 commit ead9e60

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

README.markdown

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,20 @@ You can generate a debian package for PHP5, accessible from Apache 2 by running
2424

2525
This extension exports a single class, `Redis`.
2626

27+
Install on OSX
28+
==============
29+
30+
If the install fails on OSX, type the following commands in your shell before trying again:
31+
<pre>
32+
MACOSX_DEPLOYMENT_TARGET=10.6
33+
CFLAGS="-arch i386 -arch x86_64 -g -Os -pipe -no-cpp-precomp"
34+
CCFLAGS="-arch i386 -arch x86_64 -g -Os -pipe"
35+
CXXFLAGS="-arch i386 -arch x86_64 -g -Os -pipe"
36+
LDFLAGS="-arch i386 -arch x86_64 -bind_at_load"
37+
export CFLAGS CXXFLAGS LDFLAGS CCFLAGS MACOSX_DEPLOYMENT_TARGET
38+
</pre>
39+
40+
2741
Methods
2842
=========
2943

0 commit comments

Comments
 (0)