APR and APR-Util
Make sure you have APR and APR-Util already installed on your system. If you don't, or prefer to not use the system-provided versions, download the latest versions of both APR and APR-Util from Apache APR, unpack them into ./srclib/apr and./srclib/apr-util (be sure the domain names do not have version numbers; for example, the APR distribution must be under ./srclib/apr/) and use ./configure's --with-included-apr option. On some platforms, you may have to install the corresponding -dev packages to allow httpd to build against your installed copy of APR and APR-Util.



 여기에도 적혀있듯이 yum 패키지나 apt 패키지로 apr, apr-utils를 설치하던가 apr, apr-utils 소스를 받아서 srclib/apr srclib/apr-util 로 각각 이동 시켜주면 된다. 


 후자의 방법으로 했을 경우에는 ./configure 옵션 뒤에 --with-includeed-apr 옵션을 붙여주어야 한다. 


 2.3 대만 해도 이런 삽질은 하지 않았는데.. 


http://apache.tt.co.kr/apr/

댓글을 달아 주세요

  1. fake oakley 2013.07.28 17:02  댓글주소  수정/삭제  댓글쓰기

    슬퍼서 우는거 아니야..바람이 불어서 그래..눈이 셔서..

http://www.mail-archive.com/modwsgi@googlegroups.com/msg07417.html


mod_wsgi.c: In function 'wsgi_process_socket':

mod_wsgi.c:10095: error: 'conn_rec' has no member named 'remote_addr'

mod_wsgi.c:10103: error: 'conn_rec' has no member named 'remote_ip'

mod_wsgi.c:10103: error: 'conn_rec' has no member named 'remote_addr'

mod_wsgi.c: In function 'wsgi_hook_daemon_handler':

mod_wsgi.c:12742: error: 'conn_rec' has no member named 'remote_ip'

mod_wsgi.c: In function 'Auth_environ':

mod_wsgi.c:13262: error: 'conn_rec' has no member named 'remote_ip'

mod_wsgi.c:13263: error: 'conn_rec' has no member named 'remote_ip'

mod_wsgi.c:13295: error: 'conn_rec' has no member named 'remote_addr'

mod_wsgi.c: In function 'wsgi_hook_access_checker':

mod_wsgi.c:14395: error: 'conn_rec' has no member named 'remote_ip'

mod_wsgi.c: At top level:

mod_wsgi.c:14697: warning: initialization from incompatible pointer type

apxs:Error: Command failed with rc=65536



mod_wsgi 3.3 설치시 이런 오류가 뜨는데 이는 Apache API가 바뀔 때 함수 이름도 같이 바뀌어서 나는 오류다. 


해결 방법은 간단하게

remote_ip를 client_ip로,

vim에서: %s/remote_ip/client_ip/g


remote_addr를 client_addr로

vim에서: %s/remote_addr/client_addr/g


로 바꿔주면 된다. 


mod_wsgi 4에는 해결 됐다고 하니 stable release 되면 상관 없을 듯. 



댓글을 달아 주세요

--- mod_python-3.3.1/src/connobject.c    2006-12-03 13:36:37.000000000 +0900
+++ mod_python-3.3.1_patched/src/connobject.c    2011-11-20 14:33:20.000000000 +0900
@@ -139,7 +139,7 @@
     bytes_read = 0;
 
     while ((bytes_read < len || len == 0) &&
-           !(b == APR_BRIGADE_SENTINEL(b) ||
+           !(b == APR_BRIGADE_SENTINEL(bb) ||
              APR_BUCKET_IS_EOS(b) || APR_BUCKET_IS_FLUSH(b))) {
 
         const char *data;

댓글을 달아 주세요


우분투, 센토스 등 패키지로 제공되는 아파치는 잘 모르겠으나, 컴파일한 아파치의 경우에는 apachectl 이 chkconfig 로 등록이 안된다. 왜냐하면, chkconfig 는 쉘스크립트 내용안에 

# chkconfig: - 85 15
# description: Apache is a World Wide Web server. \
# It is used to serve HTML files and CGI.
같은 내용을 포함하고 있어야 하는데, 기본으로 제공되는 스크립트에는 포함이 안돼있기 때문이다. 
여기까지 설명하면 다들 알아차리겠지만,

엄청쉽다. 
그냥 위에 쓴 저 내용을 apachectl 파일의 #!/bin/sh 다음줄에 추가만 하면 끝이다. 

즉,

Before 
#!/bin/sh
#
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements.  See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not use this file except in compliance with
# the License.  You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0

After 
#!/bin/sh
#
# chkconfig: - 85 15
# description: Apache is a World Wide Web server.  \
#              It is used to serve HTML files and CGI.

# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements.  See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not use this file except in compliance with
# the License.  You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0

그리고 chkconfig 에 등록

[root@test ~]# /sbin/chkconfig --add httpd
[root@test ~]# /sbin/chkconfig --level 2345 httpd on

결과:

[root@rb1 ~]# chkconfig --list | grep httpd
httpd           0:해제 1:해제 2:활성 3:활성 4:활성 5:활성 6:해제

댓글을 달아 주세요

  1. 확분 2011.01.03 03:40  댓글주소  수정/삭제  댓글쓰기

    새해인데 이런 전문지식을..

  2. http://www.moncleroutletespain.com/ 2013.01.05 22:27  댓글주소  수정/삭제  댓글쓰기

    Un des trois cadres dirigeants mis à pied par Renault dans l'affaire d'espionnage industriel qui ébranle le constructeur automobile fran, http://www.moncleroutletespain.com/ moncler outlet?ais est convoqué mardi pour un entretien préalable à un éventuel licenciement, http://www.moncleroutletespain.com/ moncler online, a appris l'AFP samedi soir de sources concordantes, http://www.moncleroutletespain.com/ moncler. Economie Activité perturbée par une grève dans les ports fran, http://www.moncleroutletespain.com/ moncler españa?ais Economie Dioxine: Berlin veut des sanctionsRelated articles:


    http://golf360.tistory.com/68 http://golf360.tistory.com/68

    http://dummy.pe.kr/1656 http://dummy.pe.kr/1656

[작성중] 

CentOS 5.5 기준 

# yum install -y libjpeg-devel libpng-devel net-snmp-devel libmcrypt-devel libc-client-devel 
#  ./configure  --prefix=/opt/php --with-apxs2=/opt/httpd/bin/apxs --with-config-file-path=/opt/httpd/conf --disable-debug --enable-bcmath --enable-calendar --enable-exif --enable-ftp --enable-gd-native-ttf --enable-magic-quotes --enable-mbregex --enable-mbstring --enable-mod-charset --enable-sigchild --enable-soap --enable-sockets --enable-wddx --enable-zip --with-bz2 --with-curl=/usr --with-freetype-dir=/usr --with-gd --with-gdbm=/usr --with-gettext --with-iconv --with-imap --with-imap-ssl --with-jpeg-dir=/usr --with-kerberos --with-ldap --with-libexpat-dir --with-libxml-dir --with-mcrypt --with-openssl --without-sqlite --with-png-dir=/usr --with-snmp --with-xmlrpc --with-zlib --with-mcrypt --with-mysql=/opt/mysql --with-pdo-mysql=/opt/mysql
# make
# make install

댓글을 달아 주세요

  1. YONGNAM 2011.02.10 22:37 신고  댓글주소  수정/삭제  댓글쓰기

    두달 넘도록 작성 중이어버렷
    영원히 작성중 이어버렷

  2. YONGNAM 2011.05.27 18:07 신고  댓글주소  수정/삭제  댓글쓰기

    6개월째 작성중 이어버렷