Skip to content

Commit

Permalink
Fixed instructions
Browse files Browse the repository at this point in the history
  • Loading branch information
zenspider committed Oct 26, 2009
1 parent 071d44a commit 919cfe4
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions README.rdoc
Expand Up @@ -30,22 +30,30 @@ 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): 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 === Install MySQL with macports


$ sudo port install mysql5 mysql5-server $ sudo port install mysql5 mysql5-server


Set some symbolic links: Set some symbolic links:


$ sudo ln -s /opt/local/include/mysql5/mysql /opt/local/include/mysql $ cd /opt/local
$ sudo ln -s /opt/local/lib/mysql5/mysql/libmysqlclient.15.dylib \ $ sudo ln -s mysql5/mysql include/mysql
/opt/local/lib/libmysqlclient.dylib $ sudo ln -s mysql5/mysql/libmysqlclient.15.dylib lib/libmysqlclient.dylib


=== Patch and configure php === Patch and configure php


If you're on OS X, apply php.patch to the downloaded php. Then configure 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 php with the proper flags. These paths are for OS X, but you should be able
to adjust them for linux: to adjust them for linux:


$ patch -p0 < ../path/to/php.patch

$ ./configure --enable-debug \ $ ./configure --enable-debug \
--enable-embed \ --enable-embed \
--disable-cli \ --disable-cli \
Expand All @@ -66,7 +74,7 @@ Then, either install the gem, or rake test


(The MIT License) (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 Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the a copy of this software and associated documentation files (the
Expand Down

0 comments on commit 919cfe4

Please sign in to comment.