From 919cfe406d60ed0c3d091cf18cbad6a504252cae Mon Sep 17 00:00:00 2001 From: Ryan Davis Date: Mon, 26 Oct 2009 13:31:41 -0700 Subject: [PATCH] Fixed instructions --- README.rdoc | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/README.rdoc b/README.rdoc index 8f90ed6..a5eaaac 100644 --- a/README.rdoc +++ b/README.rdoc @@ -30,15 +30,21 @@ Phuby wraps PHP in a loving embrace. Exposes a PHP runtime in ruby The following instructions apply to OS X (probably not needed on linux): +DO NOT change the prefix... No, I don't know why yet. + +=== Install iconv with macports + + $ sudo port install iconv + === Install MySQL with macports $ sudo port install mysql5 mysql5-server Set some symbolic links: - $ sudo ln -s /opt/local/include/mysql5/mysql /opt/local/include/mysql - $ sudo ln -s /opt/local/lib/mysql5/mysql/libmysqlclient.15.dylib \ - /opt/local/lib/libmysqlclient.dylib + $ cd /opt/local + $ sudo ln -s mysql5/mysql include/mysql + $ sudo ln -s mysql5/mysql/libmysqlclient.15.dylib lib/libmysqlclient.dylib === Patch and configure php @@ -46,6 +52,8 @@ If you're on OS X, apply php.patch to the downloaded php. Then configure php with the proper flags. These paths are for OS X, but you should be able to adjust them for linux: + $ patch -p0 < ../path/to/php.patch + $ ./configure --enable-debug \ --enable-embed \ --disable-cli \ @@ -66,7 +74,7 @@ Then, either install the gem, or rake test (The MIT License) -Copyright (c) 2009 FIX +Copyright (c) Aaron Patterson and Ryan Davis of Seattle.rb Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the