Permalink
Browse files

update readme with install instruciton for mac os x

git-svn-id: https://svn.php.net/repository/pecl/judy/trunk@303744 c90b9560-bf6c-de11-be94-00142212c4b1
  • Loading branch information...
1 parent dc024b5 commit bda9ec4534a3e5fe58bffe5a02122e1579c4fda1 nicolas committed Sep 24, 2010
Showing with 74 additions and 44 deletions.
  1. +55 −37 README
  2. +0 −1 judy_handlers.c
  3. +19 −6 package.xml
View
@@ -55,56 +55,74 @@ tests/ Unit tests.
Note : This extension has only been tested with php 5.3.3 on Ubuntu Karmic 32bit.
- phpize
- ./configure --with-judy[=DIR]
- make
- make test
- make install
-
-If you are using Ubuntu or Debian, you can install libJudy with apt :
-
- apt-get install libjudydebian1 libjudy-dev
- phpize
- ./configure --with-judy=/usr
- make
- make test
- make install
+ A. Linux
+
+ From the PHP Judy sources :
+
+ phpize
+ ./configure --with-judy[=DIR]
+ make
+ make test
+ make install
+
+ If you are using Ubuntu or Debian, you can install libJudy with apt :
+
+ apt-get install libjudydebian1 libjudy-dev
+ phpize
+ ./configure --with-judy=/usr
+ make
+ make test
+ make install
-On Windows, you will need to build LibJudy yourself.
+ B. Windows
- Download the sources at
+ On Windows, you will need to build LibJudy yourself.
- http://sourceforge.net/projects/judy/
-
- Extract the sources, and open the Visual Studio command prompt and navigate to
- the source directory. Then execute:
+ Download the sources at
- build
+ http://sourceforge.net/projects/judy/
- This creates "Judy.lib", copy this into the php-sdk library folder and name it
+ Extract the sources, and open the Visual Studio command prompt and navigate to
+ the source directory. Then execute:
- libJudy.lib
+ build
+
+ This creates "Judy.lib", copy this into the php-sdk library folder and name it
+
+ libJudy.lib
- Then copy the include file "judy.h" into the php-sdk includes folder. Now its
- time to build pecl/judy, extract the pecl/judy into your build folder where
- the build scripts will be able to pick it up, e.g.:
+ Then copy the include file "judy.h" into the php-sdk includes folder. Now its
+ time to build pecl/judy, extract the pecl/judy into your build folder where
+ the build scripts will be able to pick it up, e.g.:
- C:\php\pecl\judy\
+ C:\php\pecl\judy\
- If your source of PHP is located in:
+ If your source of PHP is located in:
- C:\php\src\
+ C:\php\src\
- The rest of the steps is pretty straight forward, like any other external
- extension:
+ The rest of the steps is pretty straight forward, like any other external
+ extension:
- buildconf
- configure --with-judy=shared
- nmake
-
-You can check everything is ok by running :
+ buildconf
+ configure --with-judy=shared
+ nmake
+
+ C. Mac OS X
+
+ You will need to install the libJudy firt. Download the sources at
+
+ http://sourceforge.net/projects/judy/
+
+ Extract the sources, then cd into the source directory and execute :
+
+ ./configure
+ make
+ make install
+
+ Use pecl to install the PHP Judy extension :
- php -f judy.php
+ sudo pecl -d preferred_state=beta install Judy
4. USAGE (EXAMPLES)
View
@@ -16,7 +16,6 @@
+----------------------------------------------------------------------+
*/
-#include "php_judy.h"
#include "judy_handlers.h"
/* {{{ judy_object_count
View
@@ -14,9 +14,8 @@
<active>yes</active>
</lead>
<date>2010-09-22</date>
- <time>02:23:30</time>
<version>
- <release>0.1.1</release>
+ <release>0.1.2</release>
<api>0.1.1</api>
</version>
<stability>
@@ -25,10 +24,7 @@
</stability>
<license uri="http://www.php.net/license">PHP</license>
<notes>
-- Implement array access and iterator to provide access to judy objects as arrays
-- Add a judy_type() function and Judy::getType() method
-- Remove unused methods, refactor and clean-up some code
-- Proper Windows support
+- Fixing examples and benchmark code
</notes>
<contents>
<dir name="/">
@@ -94,6 +90,23 @@
</extsrcrelease>
<changelog>
<release>
+ <date>2010-09-22</date>
+ <version>
+ <release>0.1.1</release>
+ <api>0.1.1</api>
+ </version>
+ <stability>
+ <release>beta</release>
+ <api>beta</api>
+ </stability>
+ <notes>
+- Implement array access and iterator to provide access to judy objects as arrays
+- Add a judy_type() function and Judy::getType() method
+- Remove unused methods, refactor and clean-up some code
+- Proper Windows support
+ </notes>
+ </release>
+ <release>
<date>2010-09-17</date>
<version>
<release>0.0.1</release>

0 comments on commit bda9ec4

Please sign in to comment.