Cross-compile lighttpd and pcre under linux

1. Download lighttpd-1.4.49 and pcre.8.38
2 and compile pcre.8.38

on the official website.
./configure --host=arm-gcc
mark

3, compile lighttpd.1.4.49

./configure --host=arm --with-openssl 
make
make
/usr/local/lib/libpcre.so:could not read symbols: File in wrong format
makefilepcre
lighttpdpcre
pcremake install

clipboard.png

clipboard.png

clipboard.png


from http://www.ridgesolutions.ie/.

compile pcre

cd /home/youruser
mkdir buid_pcre
cd build_pcre

wget ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre-8.21.tar.gz
tar -xzf pcre-8.21.tar.gz

cd pcre-8.21

./configure --host=arm-linux-gnueabi CC=arm-linux-gnueabi-gcc \
    AR=arm-linux-gnueabi-ar STRIP=arm-linux-gnueabi-strip \
    RANLIB=arm-linux-gnueabi-ranlib \
    --prefix=/home/youruser/build_lighttpd/build_pcre/_install

make
make install

compile lighttpd

cd /home/youruser
mkdir build_lighttpd
cd build_lighttpd

wget http://download.lighttpd.net/lighttpd/releases-1.4.x/lighttpd-1.4.32.tar.gz

tar -zxvf lighttpd-1.4.32.tar.gz

cd lighttpd-1.4.32

./configure -prefix=/home/youruser/build_lighttpd/_install \ 
    -host=arm-linux-gnueabi CC=arm-linux-gnueabi-gcc \
    RANLIB=arm-linux-gnueabi-ranlib STRIP=arm-linux-gnueabi-strip\
    --enable-shared --without-mysql --without-zlib --without-bzip2 \
    --disable-ipv6 \
    PCRECONFIG=/home/youruser/build_lighttpd/build_pcre/_install/bin/pcre-config \
    PCRE_LIB=/home/youruser/build_lighttpd/build_pcre/_install/lib/libpcre.a \
    CFLAGS="$CFLAGS -DHAVE_PCRE_H=1 -DHAVE_LIBPCRE=1 -I/home/youruser/build_lighttpd/build_pcre/_install/include"

make
make install
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b3a9b2-2c21c.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b3a9b2-2c21c.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?