I'm trying to use Cygwin to install Apache, but I keep running into an error that I can't find a solution to.
I'm following the instructions on the official Apache site for installing Apache 2.4 on a UNIX-like system, I downloaded the tar.gz version of Apache 2.4.7, as well as the latest versions of APR and the APR utilities (as recommended by the instructions), and then installed Cygwin with all of the default packages and any packages that matched the following search terms in the Cygwin installer:
- autoconf
- binutils
- gcc
- libtool
- make
- openssl
- pcre
- tcp
Next, I copied the httpd-2.4.7.tar.gz
, apr-1.5.0.tar.gz
and apr-util-1.5.3.tar.gz
files into the Cygwin base directory and started up Cygwin. After that, I unzipped and untarred the three files and then moved both APR directories to the /httpd-2.4.7/srclib
directory and removed the version number from the directory names as the instructions say to do.
After that, I ran the following commands:
cd httpd-2.4.7
./configure
make
Everything configures properly without any errors, but partway through the compilation process that make
performs, I get the following error, which can also be seen in the screenshot below:
/httpd-2.4.7/srclib/apr-util/crypto/apr_passwd.c:165: undefined reference
to `crypt'
I have performed every search I can think of to solve the problem and tried several of the proposed solutions, but no matter what I do, I cannot resolve the issue.
Can someone please provide some advice on what to do? Thank you.