---
title: "ERROR: Could not configure Apache"
author: "xmeteor"
date: "2012-05-02T11:04:49Z"
tags: []
categories: ["开源软件"]
slug: "error-could-not-configure-apache"
draft: false
lastmod: "2012-05-02T11:04:49Z"
id: 1507435
url: "https://xmeteor.iteye.com/blog/1507435"
---

During installation, if saw:  
./configure:Error: APACI failed  
ERROR: Could not configure Apache

Use following commands to fix it.

```
rm /bin/sh (or if you want to be safe: mv /bin/sh /bin/sh.dash)
ln -s /bin/bash /bin/sh
```

 

 

It is because Ubuntu developers have replaced Bash with Dash, so the regular /bin/sh that is used to be linked to /bin/bash is now pointing to /bin/dash.

 

Refference: http://www.yinfor.com/blog/archives/2007/04/some\_problems\_when\_install\_isp.html

 

\--------------------------------------------------------------------------------------------------

 

htpasswd.c:101: error: conflicting types for âgetlineâ  
/usr/include/stdio.h:653: note: previous declaration of âgetlineâ was here  
make\[2]: \*\** \[htpasswd.o] Error 1  
make\[2]: Leaving directory \`/home/install\_ispconfig/compile\_aps/apache\_1.3.41/src/support'  
make\[1]: \*\** \[build-support] Error 1  
make\[1]: Leaving directory \`/home/install\_ispconfig/compile\_aps/apache\_1.3.41'  
make: \*\** \[build] Error 2  
ERROR: Could not make Apache

 

 

 Open /usr/include/stdio.h and replace getline with parseline in line 653:

 

 

```
[...]
/* Like `getdelim', but reads up to a newline.

   This function is not part of POSIX and therefore no official
   cancellation point.  But due to similarity with an POSIX interface
   or due to the implementation it is a cancellation point and
   therefore not marked with __THROW.  */
extern _IO_ssize_t parseline (char **__restrict __lineptr,
                            size_t *__restrict __n,
                            FILE *__restrict __stream) __wur;
#endif
[...]
```

 

 

Refference: http://www.howtoforge.com/perfect-server-fedora-11-x86\_64-ispconfig-2-p5