Skip to content
chobie edited this page Sep 17, 2012 · 5 revisions

Welcome to the php-uv wiki!

Installing php-uv

git clone https://github.com/chobie/php-uv.git --recursive
cd php-uv
(cd libuv && make)
phpize
./configure
make
make install
# add `extension=uv.so` to your php.ini

php-uv doesn't use threading feature. we don't need TSRM version of php. someday we need TSRM.

64bit machine

you need to add -fPIC flag to libuv/Makefile before building libuv

chobie@ubuntu:~/src/php-uv/libuv$ git diff
diff --git a/Makefile b/Makefile
index cf1e788..f3da5c4 100644
--- a/Makefile
+++ b/Makefile
@@ -24,7 +24,7 @@ ifdef MSVC
 uname_S := MINGW
 endif
 
-CPPFLAGS += -Iinclude -Iinclude/uv-private
+CPPFLAGS += -Iinclude -Iinclude/uv-private -fPIC
 
 CARES_OBJS =
 CARES_OBJS += src/ares/ares__close_sockets.o

Known Issues

gcc 4.6.3 (Ubuntu Ubuntu/Linaro)

can't link -lrt and -lpthread correctly. please use gcc-4.3 instead of 4.6.3

Test plan

test plan

Clone this wiki locally