xp下用Cygwin模拟unix编译php和扩展
2010-08-13 16:28
274 查看
Cygwin下载 网站http://www.cygwin.cn/pub | ||||||||||||||
php-5.3.3.tar.gz | ||||||||||||||
autoconf-2.13.tar.gz | ||||||||||||||
1.Cygwin: | ||||||||||||||
根据default安装 | ||||||||||||||
2.Cygwin: | ||||||||||||||
flex | ||||||||||||||
gcc-core | ||||||||||||||
gcc-g++ | ||||||||||||||
libxml2 | ||||||||||||||
make | ||||||||||||||
| ||||||||||||||
binutils | (2.20.51-2) | |||||||||||||
| The GNU assembler, linker and binary utilities | |||||||||||||
| Required by: gcc-core, gcc-g++ | |||||||||||||
| ||||||||||||||
gcc-mingw-core | (20050522-1) | |||||||||||||
| Mingw32 support headers and libraries for GCC | |||||||||||||
| Required by: gcc-core | |||||||||||||
| ||||||||||||||
gcc-mingw-g++ | (20050522-1) | |||||||||||||
| Mingw32 support headers and libraries for GCC C++ | |||||||||||||
| Required by: gcc-g++ | |||||||||||||
| ||||||||||||||
libintl3 | (0.14.5-1) | |||||||||||||
| GNU Internationalization runtime library | |||||||||||||
| Required by: gcc-core, gcc-g++ | |||||||||||||
| ||||||||||||||
m4 | (1.4.14-1) | |||||||||||||
| GNU implementation of the traditional Unix macro processor. | |||||||||||||
| Required by: flex | |||||||||||||
| ||||||||||||||
mingw-runtime | (3.18-1) | |||||||||||||
| MinGW Runtime | |||||||||||||
| Required by: gcc-core, gcc-g++ | |||||||||||||
| ||||||||||||||
w32api | (3.14-1) | |||||||||||||
| Win32 API header and library import files | |||||||||||||
| Required by: gcc-core, gcc-g++, mingw-runtime | |||||||||||||
3.autoconf-2.13 | ||||||||||||||
./configure | ||||||||||||||
make | ||||||||||||||
make install | ||||||||||||||
4../configure | ||||||||||||||
configure: error: xml2-config not found. Please check your libxml2 installation. | ||||||||||||||
| ||||||||||||||
libxml2 | ||||||||||||||
libxml2-devel | ||||||||||||||
| ||||||||||||||
libcharset1 | (1.13.1-1) | |||||||||||||
| GNU character set conversion library and utilities - runtime (2) | |||||||||||||
| Required by: libiconv | |||||||||||||
| ||||||||||||||
libiconv | (1.13.1-1) | |||||||||||||
| GNU character set conversion library and utilities | |||||||||||||
| Required by: libxml2-devel | |||||||||||||
| ||||||||||||||
zlib-devel | (1.2.5-1) | |||||||||||||
| The zlib compression/decompression library (development) | |||||||||||||
| Required by: libxml2-devel | |||||||||||||
5. make | ||||||||||||||
错误 信息: | ||||||||||||||
/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../i686-pc-cygwin/bin/ld: warning: -- | ||||||||||||||
export-dynamic is not supported for PE targets, did you mean --export-all-symbol | ||||||||||||||
s? | ||||||||||||||
ext/iconv/iconv.o: In function `_php_iconv_appendl': | ||||||||||||||
/cygdrive/g/ubuntu/php-5.3.3/ext/iconv/iconv.c:337: undefined reference to `_iconv' | ||||||||||||||
/cygdrive/g/ubuntu/php-5.3.3/ext/iconv/iconv.c:374: undefined reference to `_iconv' | ||||||||||||||
ext/iconv/iconv.o: In function `php_iconv_string': | ||||||||||||||
/cygdrive/g/ubuntu/php-5.3.3/ext/iconv/iconv.c:501: undefined reference to `_iconv' | ||||||||||||||
/cygdrive/g/ubuntu/php-5.3.3/ext/iconv/iconv.c:521: undefined reference to `_iconv' | ||||||||||||||
ext/iconv/iconv.o: In function `_php_iconv_strlen': | ||||||||||||||
/cygdrive/g/ubuntu/php-5.3.3/ext/iconv/iconv.c:615: undefined reference to `_iconv' | ||||||||||||||
ext/iconv/iconv.o:/cygdrive/g/ubuntu/php-5.3.3/ext/iconv/iconv.c:868: more undefined references to `_iconv follow collect2: ld returned 1 exit status | ||||||||||||||
make: *** [sapi/cgi/php-cgi.exe] Error 1 | ||||||||||||||
| ||||||||||||||
configure添加参数 | ||||||||||||||
./configure --without-iconv | ||||||||||||||
| ||||||||||||||
make | ||||||||||||||
make install | ||||||||||||||
| ||||||||||||||
安装成功。不过 生成的是.a文件 |
相关文章推荐
- Linux/Unix下 PHP 扩展 cURL 编译安装和配置
- 在xp环境下编译php的c扩展dll文件(完全步骤解析)
- Linux/Unix下 PHP 扩展 cURL 编译安装和配置
- php无需编译安装openssl扩展
- PHP5.6编译安装Yar和msgpack扩展
- Linux centos7 php7 编译安装 php 扩展包 curl
- php通过ssh2扩展控制linux,模拟阿里云web控制台
- 用Cygwin模拟DB2的Unix/Linux开发环境(1)
- linux上编译好的php添加memcache扩展
- Linux下手动编译安装PHP扩展的例子分享
- php编译安装php-amq扩展简明教程
- memcache以及php-memcache扩展的编译安装
- php动态编译mysqli扩展
- Centos6.5 PHP7 Mysql5.7 独立编译添加PHP扩展pdo_mysql支持
- 安装php的mcrypt扩展(动态加载编译)
- Linux下php安装后编译新扩展
- php单独编译扩展模块
- php扩展开发---mac上编译php的embed
- php扩展编译流程路
- MAMP不能编译PHP扩展解决方案