installing lighttpd on embedded linux box
Added by lighty_user about 16 years ago
Hi , I am new to lighttpd and want to have a webserver on my linux box which has an arm architecture.
After cross-compiling lighttpd(v 1.4.21) for ARM and copying the files on my linux box, when I start lighttpd with the following command,
/etc/init.d/lighttpd start
I get the error
/etc/init.d/lighttpd: .: 18: Can't open /etc/rc.d/init.d/functions
Browsing through /etc/ directory, I see that I do not have any rc.d file there.
Can anyone tell me what is this all about. Need help urgently.
Replies (1)
RE: installing lighttpd on embedded linux box - Added by lighty_user about 16 years ago
I got lighttpd cross compiled for my embedded linux box,
Just had to follow the below steps
1)At the command prompt type,
CC=arm-none-linux-gnueabi-gcc RANLIB=arm-linux-ranlib STRIP=arm-linux-strip ./configure --host=arm-linux --disable-static --enable-shared --without-zlib --without-bzip2
2)make
This will generate a lighttpd binary in the src directory.
But now, another problem has cropped up,
when I enable the cgi support for lighttpd, I get the error
"...can't handle '$HTTP[url] =~ …' as you compiled without pcre support."
Can anybody tell me how to cross compile pcre. Do I have to copy this to my embedded linux box.
I have pcre installed on the Linux PC where I am cross-compiling it.
Thanks