WSO web services framework on FreeBSD
Update (2008-06-04): This patch also works with the latest (1.3.1) version of wsf/php.
WSO is a web services framework I’ve been recently playing with. There are versions of it for C, php, ruby, perl, and some other languages… The php version comes as a php module that needs to be compiled from source (or installed as a package if you’re running a linux distribution that has it) and added to your php configuration.
The source code compiles under windows, linux and OS X but needs some patching to work under FreeBSD.
you’ll need libxml2, libiconv, zlib and sqlite (or mysql) libraries installed from ports.
Here is how to do it:
# fetch http://dist.wso2.org/products/wsf/php/1.2.1/wso2-wsf-php-src-1.2.1.tar.gz # fetch http://bsd.dischaos.com/files/wso2-1.2.1-freebsd.patch # tar xvfz wso2-wsf-php-src-1.2.1.tar.gz # patch -p0 < wso2-1.2.1-freebsd.patch # setenv CPATH /usr/local/include # setenv LD_LIBRARY_PATH /usr/local/lib # cd wso2-wsf-php-src-1.2.1 # ./configure LDFLAGS="-lcompat" && make && make install
now just add wo.so extension to your /usr/local/etc/php/extensions. You’ll probably also need xml and xsl php extensions to have everything in wo working. Also, I copied the scripts directory from the wso2 package to /usr/local/share/wso2 and added this directory to include_path.