跪请高手帮个忙 急死了,搞了几天了 配置ARM交叉编译环境的php时候出现了问题

内核编译和嵌入式产品的设计与开发
回复
nanjinren
帖子: 1
注册时间: 2012-12-03 14:48
系统: windows

跪请高手帮个忙 急死了,搞了几天了 配置ARM交叉编译环境的php时候出现了问题

#1

帖子 nanjinren » 2012-12-17 15:19

链接是教程网上配置交叉编译环境 http://sjwt.vicp.cc:8080/post-246.html




我mysql包 和apache包都装好了 现在在装php 的最后一步
非本机安装命令

env CC=arm-linux-gcc CXX=arm-linux-g++ CPPFLAGS="-I/sdcard/apache/include -I/usr/local/include" LDFLAGS="-L/sdcard/apache/lib" ./configure --host=arm-linux --with-apxs2=/sdcard/apache/bin/apxs --with-mysql=/sdcard/mysql --with-mysqli=/sdcard/mysql/bin/mysql_config --with-iconv --with-libxml-dir=/usr/local/ --with-gd --with-freetype-dir=/usr/local --with-jpeg-dir=/usr/local --with-png-dir=/usr/local --with-mcrypt=/usr/local --with-curl=/usr/local --enable-libgcc --with-gnu-ld --with-zlib=/usr/local --with-zlib-dir=/usr/local --enable-mbstring --enable-gd-native-ttf --enable-sockets --enable-ftp --enable-zip --with-curlwrappers --enable-exif --enable-bcmath --enable-calendar --with-pear --with-xmlrpc --with-gettext --enable-mod-charset --enable-fpm --enable-roxen-zts --enable-sigchild --enable-shmop --enable-soap --enable-sysvmsg --enable-sysvsem --enable-sysvshm --enable-wddx --with-mysql-sock=/tmp/mysql.sock --enable-pdo --with-mhash=/usr/local --with-openssl --enable-mbregex --enable-inline-optimization --enable-dba --enable-wddx --with-pcre-regex --enable-gd-jis-conv --prefix=/sdcard/php --with-pdo-mysql=/sdcard/mysql --enable-zend-signals --enable-sigchild (--with-ldap=/sdcard/apache --with-ldap-sasl=/sdcard/apache 需要安装openldap库)


出现如下错误 :

configure: WARNING: If you wanted to set the --build type, don't use --host.
If a cross compiler is detected then cross compile mode will be used.
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for a sed that does not truncate output... /bin/sed
checking build system type... i686-pc-linux-gnu
checking host system type... arm-unknown-linux-gnu
checking target system type... arm-unknown-linux-gnu
checking for arm-linux-cc... arm-linux-gcc
checking whether the C compiler works... no
configure: error: in `/home/syh/workspace/CrossComp/php-5.4.3':
configure: error: C compiler cannot create executables
See `config.log' for more details.
回复