Compile/Install OpenLiteSpeed on Debian

Unmaintained Compile/Install OpenLiteSpeed on Debian

Even though Ubuntu uses base Debian code, I found that OpenLiteSpeed would NOT compile on it. Even with the correct libraries installed (which the Debian listed are correct) I ended up getting
Code:
collect2: error: ld returned 1 exit status
make[3]: *** [openlitespeed] Error 1
make[3]: Leaving directory `/home/tracy/work/openlitespeed-1.2.9/src'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/tracy/work/openlitespeed-1.2.9/src'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/home/tracy/work/openlitespeed-1.2.9/src'
make: *** [all-recursive] Error 1


This was solved by going into the (for version 1.2.9) /openlitespeed-1.2.9/src directory and editing the Makefile ( after running ./configure --with-group=nogroup) and finding
Code:
EXPAT_LDFLAGS =
If you notice, there is nothing designated for that.... and therein lay the problem. You will need to modify the Makefile (and be SURE it's the one in the /src directory) to
Code:
EXPAT_LDFLAGS = -lexpat
Once you do that you can do the standard Debian install routine of
  • sudo ./configure --with-group=nogroup
  • sudo make && sudo make install
NOTE!!!
With OpenLiteSpeed 1.3.1 this has been resolved.
Back
Top Bottom