아파치를 설치할려는데

weifuchs의 이미지

설치할려는데.
./configure --prefix=/usr/llocal/apache

실행을하면 쭈윽뜨고나서
make 하고나면 몇개의 애러들이 보이고 make install하면 컴파일링이 안됩니다

make실행시 에러
usr/local/apache/server/exports.c:1056: `ap_hack_apr_version_string' previously defined here
make[2]: *** [/usr/local/apache/server/exports.lo] 오류 1
make[2]: 나감 `/usr/local/apache/server' 디렉토리
make[1]: *** [all-recursive] 오류 1
make[1]: 나감 `/usr/local/apache/server' 디렉토리
make: *** [all-recursive] 오류 1

이와같이 나옵니다 원문이 길어서 다 올려놓을수도없고 왜그러진아시는분 알려주세요 T.T
참고로 아파치 2.048입니다 1.3.29는 깔리는데..

codebank의 이미지

음... 일단 초기 configure부터 설명드리자면

# ./configure --prefix=/usr

로 하시던지 아니면 --prefix를 삭제하는게 좋겠네요. --prefix의 디폴트가 /usr/local/입니다.
따라서 컴파일이후에 설치되는 곳이 /usr/local/apache가 되겠죠.
혹시 /usr/local/apache 라는 디렉토리에서 컴파일 작업을 하시는건지 모르겠군요.
--prefix는 작업하는 공간의 이름을 나타내는게 아니라 컴파일이 종료된 이후에 설치할
기본 디렉토리가 됩니다. --prefix=/usr라고 해주면 /usr/apache에 실행파일을 가지게
되며 --prefix=/usr/local이라고 하던가 그 옵션을 삭제하면 /usr/local/apache에 설치가
됩니다.
에러의 내용은 지정된 함수가 선언되기 이전에 사용했다는 에러같네요.
원인은 잘모르겠지만 위의 원인이 아닌가 생각됩니다.
일단 소스는 /usr/local/src/ 밑에 풀어놓고 다시 컴파일 해보는게 좋겠네요.

컴파일을 하기위해서는 다음과같은 순서가 필요합니다.
./configure
make
make install
만일 ./configure를 할때 에러가 발생하면 make를 하지 못합니다.
make할때 에러가 발생하면 make install을 하지 못합니다.
./configure시에 에러가 있다면 왜 에러가 나는지를 확인하고 필요한 패키지를
설치해주어서 에러가 발생하지 않도록 해야합니다.

다음에 질문을 올리실 때는 시스템 환경 즉, 사용하는 배포판의 버젼, Kernel버젼
gcc버젼 등을 같이 올리시면 좀더 자세한 도움을 얻으실 수도 있을겁니다.

------------------------------
좋은 하루 되세요.

댓글 달기

Filtered HTML

  • 텍스트에 BBCode 태그를 사용할 수 있습니다. URL은 자동으로 링크 됩니다.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>
  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.

BBCode

  • 텍스트에 BBCode 태그를 사용할 수 있습니다. URL은 자동으로 링크 됩니다.
  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param>
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.

Textile

  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • You can use Textile markup to format text.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>

Markdown

  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • Quick Tips:
    • Two or more spaces at a line's end = Line break
    • Double returns = Paragraph
    • *Single asterisks* or _single underscores_ = Emphasis
    • **Double** or __double__ = Strong
    • This is [a link](http://the.link.example.com "The optional title text")
    For complete details on the Markdown syntax, see the Markdown documentation and Markdown Extra documentation for tables, footnotes, and more.
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>

Plain text

  • HTML 태그를 사용할 수 없습니다.
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.
  • 줄과 단락은 자동으로 분리됩니다.
댓글 첨부 파일
이 댓글에 이미지나 파일을 업로드 합니다.
파일 크기는 8 MB보다 작아야 합니다.
허용할 파일 형식: txt pdf doc xls gif jpg jpeg mp3 png rar zip.
CAPTCHA
이것은 자동으로 스팸을 올리는 것을 막기 위해서 제공됩니다.