[原創]Apache1.3+Tomcat4在solaris7/8下配置步驟

發表于:2007-06-09來源:作者:點擊數: 標簽:
[這個貼子最后由realice在2002/09/0305:29pm編輯] 準備工作: 給系統打補丁先,去sunsolve.sun.com下載最新的Recommendedpatches 你的solaris當然要有c編譯器嘍,沒有? 去sunfreeware下個gcc3.2 順便下載autoconf2.5/libtool1.4/m41.4 安裝這些咚咚,記得將/

[這個貼子最后由realice在 2002/09/03 05:29pm 編輯]

準備工作:
給系統打補丁先,去sunsolve.sun.com下載最新的Recommended patches
你的solaris當然要有c編譯器嘍,沒有?
去sunfreeware下個gclearcase/" target="_blank" >cc 3.2
順便下載autoconf 2.5 / libtool 1.4 / m4 1.4
安裝這些咚咚,記得將/usr/local/bin加入path..建議加在/usr/sbin之前


1. 安裝apache1.3.26
很簡單,tar出來.configure就好,加上參數 --enable-module=so 
象這樣: ./configure --prefix=/opt/apache1.3.26  --enable-module=so 
然后make ; make install

2. 安裝JDK1.4.01
需要下載相應sun os的jdk patch..然后默認安裝

3. 安裝tomcat4.04
在運行目錄tar出來,添加CATALINA_HOME=...到你的環境變量

4. 編譯mod_webapp.so
最麻煩的步驟開始了
去下載webapp-module-1.0-tc40-src.tar / apr_APACHE_2_0_35.tar
建議在/var/tmp下解開來
然后在webapp-module目錄下運行
./configure --with-apxs=/opt/apache1.3.26/bin/apxs --with-apr=/var/tmp/apr
make
編譯完成,你會在webapp-module../apache1.3/ 下找到mod_webapp.so
將它copy到apache1.3.26的linexec目錄中

5. 完結篇
編輯httpd.conf,加入 
LoadModule webapp_module libexec/mod_webapp.so
AddModule mod_webapp.c
WebAppConnection warpConnection warp localhost:8008
WebAppDeploy examples warpConnection /examples/ 
這就不用解釋啦...  注意需要分行加入

運行tomcat , 運行apache
瀏覽http://localhost/examples  看到可愛的小貓了?
恭喜,成功啦

以上步驟在sparc solaris7 & 8環境下都編譯成功


補充:原文是在快下班的時候寫的,大概步驟就是這樣了,其間也許會遇到小問題..
1. libtool/m4/autoconf都有,但是編譯mod_webapp.so還是報錯,無法解釋as..
   檢查系統 路徑,加入/usr/ccs/bin..  搞定
2. apache編譯安裝完畢,運行報錯..."can't find correct group id xxxx..."
   檢查httpd.conf,發現group是#1,改成nobody搞定(或者實際存在的group name)

 cinc 回復于:2002-09-02 18:34:20
呵呵,好樣的,請到 Java 版多做交流。:)

 realice 回復于:2002-09-03 17:30:54
剛才補充了一些想到的問題...呵呵
上周我也是看了N多E文,非??鄲灥恼f..
希望大家都能成功搞定

 czc9 回復于:2002-09-03 17:38:52
很好,基本上我也是這樣做的,但是make沒法通過,你能把編譯好的mod_webapp.so for s7/8的發到我的郵箱上嗎,謝謝
stdxzcc@21cn.com

 realice 回復于:2002-09-03 17:45:26
用apache2.04編譯mod_webapp.so一直失敗,說找不到apr...指定路徑無用..
有沒有哪位兄弟有心得?

 wudicc 回復于:2002-09-03 17:59:57
按照  realice  寫的,我出現了這樣問題:
# build/ltconfig: build/ltconfig: cannot open
build/ltconfig:: not found
請問 realice 這該怎樣解決?謝謝?。。?!

 race 回復于:2002-09-03 21:55:41
有空 我也找臺ULTRA80去試去

 study12 回復于:2002-09-04 08:17:44
我現在都成功編譯了mod_webapp.so,但無法用。

 realice 回復于:2002-09-04 11:42:30
to wudicc:  你在哪一步報這個錯?  

to study12: 編譯完就成功99%啦,呵呵,你看看在httpd.conf里面的LoadModule webapp_module libexec/mod_webapp.so ,用你自己實際路徑代替

 study12 回復于:2002-09-04 18:20:53
這不會錯的,我搞了很長時間了.
提示是不能找到ligapr.so

 ncwangw 回復于:2002-09-10 22:34:24
我為什么沒有autoconf這個文件?

 ncwangw 回復于:2002-09-15 19:21:25
我頂

 race 回復于:2002-09-15 23:44:10
下載安裝, realice 不是說了嘛

 ncwangw 回復于:2002-09-17 10:35:27
hehe 
我還以為是配置文件呢

 jackylau 回復于:2003-07-18 08:55:45
我按照最上面的老史說的。我的出錯信息,怎么解決呀?    
 # cd var/tmp
# ls
apr                             wsconAAAFQaiFa:0.0
apr_APACHE_2_0_35.tar           wsconAAAXSaGIa:0.0
webapp-module                   wsconAAAhmaOEa:0.0
webapp-module-1.0-tc40          wsconAAAtFaqEa:0.0
webapp-module-1.0-tc40-src.tar  wsconAAAu3aq5a:0.0
wsconAAA8vaO6a:0.0              wsconAAAysaaXa:0.0
wsconAAA94aiEa:0.0
# cd webapp*
# ls
INSTALL.txt   Makefile.win  apr           configure     java
LICENSE.txt   README.txt    confdefs.h    configure.in  lib
Makedefs.in   apache-1.3    config.cache  docs          nsapi
Makefile.in   apache-2.0    config.log    include       support
# ./configure --with-apxs=/usr/local/apache/bin/apxs --with-apr=/var/tmp/apr
loading cache ./config.cache
checking for test... /bin/test
checking for true... /bin/true
checking for echo... /bin/echo
checking for grep... /bin/grep
checking for cat... /bin/cat
checking for sed... /bin/sed
checking for ln... /bin/ln
checking for rm... /bin/rm
checking host system type... sparc-sun-solaris2.7
checking for sources directory... /var/tmp/webapp-module-1.0-tc40
checking for targets directory... /var/tmp/webapp-module-1.0-tc40

C-Language compilation tools
checking for ar... /usr/ccs/bin/ar
checking for ranlib... /usr/ccs/bin/ranlib
checking for gcc... gcc
checking whether the C compiler (gcc   works... yes
checking whether the C compiler (gcc   is a cross-compiler... no
checking whether we are using GNU C... yes
checking whether gcc accepts -g... yes
checking for gcc... /bin/gcc
checking whether /bin/gcc and cc understand -c and -o together... yes
checking how to run the C preprocessor... /bin/gcc -E
checking for debug build... no

JAVA-Language compilation tools
checking for java support... no

API documentation generation
checking for C API documentation... no
checking for Java API documentation... no

Target web-server
checking for Apache apxs... yes
checking target module... apache-1.3
checking for full APR directory path... /var/tmp/apr

Building APR configure script
  Invoking: "./buildconf" in "/var/tmp/apr"
    APR buildconf: buildconf: checking installation...
    APR buildconf: buildconf: autoconf version 2.57 (ok)
    APR buildconf: buildconf: libtool version 1.5
    APR buildconf:
    APR buildconf: 2003 (ok)
WARNING: Using auxiliary files such as `acconfig.h', `config.h.bot'
WARNING: and `config.h.top', to define templates for `config.h.in'
WARNING: is deprecated and discouraged.

WARNING: Using the third argument of `AC_DEFINE' and
WARNING: `AC_DEFINE_UNQUOTED' allows to define a template without
WARNING: `acconfig.h':

WARNING:   AC_DEFINE([NEED_MAIN], 1,
WARNING:             [Define if a function `main' is needed.])

WARNING: More sophisticated templates can also be produced, see the
WARNING: documentation.
    APR buildconf: Copying libtool helper files ...
    APR buildconf: Creating include/arch/unix/apr_private.h.in ...
autom4te: need GNU m4 1.4 or later: /usr/ccs/bin/m4
autoheader: /usr/local/bin/autom4te failed with exit status: 1
    APR buildconf: Creating configure ...
autom4te: need GNU m4 1.4 or later: /usr/ccs/bin/m4
  Execution of ./buildconf returned 0

Configuring APR
  Invoking: "./configure --enable-static --disable-shared --disable-threads" in "/var/tmp/apr"
    APR configure: loading cache ./config.cache
    APR configure: checking host system type... sparc-sun-solaris2.7
    APR configure: checking target system type... sparc-sun-solaris2.7
    APR configure: checking build system type... sparc-sun-solaris2.7
    APR configure: Configuring APR library
    APR configure: Platform: sparc-sun-solaris2.7
    APR configure: checking for gcc... (cached) gcc
    APR configure: checking whether the C compiler (gcc   works... yes
    APR configure: checking whether the C compiler (gcc   is a cross-compiler... no
    APR configure: checking whether we are using GNU C... (cached) yes
    APR configure: checking whether gcc accepts -g... (cached) yes
    APR configure: Applying APR hints file rules for sparc-sun-solaris2.7
build/ltconfig: build/ltconfig: cannot open
configure: error: libtool configure failed
    APR configure: setting CPPFLAGS to "-DSOLARIS2=7 -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT"
    APR configure: setting apr_iconv_inbuf_const to "1"
    APR configure: (Default will be unix)
    APR configure: checking whether make sets ${MAKE}... (cached) yes
    APR configure: checking how to run the C preprocessor... (cached) gcc -E
    APR configure: checking for mawk... (cached) nawk
    APR configure: checking whether ln -s works... (cached) yes
    APR configure: checking for ranlib... (cached) ranlib
    APR configure: checking for a BSD compatible install... build/install.sh -c
    APR configure: checking for rm... (cached) rm
    APR configure: checking for as... (cached) as
    APR configure: checking for cpp... (cached) cpp
    APR configure: checking for ar... (cached) ar
    APR configure: checking for AIX... no
    APR configure: checking for POSIXized ISC... no
    APR configure: checking for minix/config.h... (cached) no
    APR configure: checking whether system uses EBCDIC... (cached) no
    APR configure: performing libtool configuration...
    APR configure: checking for ld used by GCC... (cached) /usr/ccs/bin/ld
    APR configure: checking if the linker (/usr/ccs/bin/ld) is GNU ld... (cached) no
    APR configure: checking for BSD-compatible nm... (cached) /usr/ccs/bin/nm -p
  Execution of ./configure --enable-static --disable-shared --disable-threads returned 1
configure: error: APR configure script terminated with error code 1

 jackylau 回復于:2003-07-18 12:09:34
還是沒有人回答我的問題呀!

 jackylau 回復于:2003-07-21 19:11:18
老大們,我已經把mod_webapp.so cp到/opt/httpd/module里了,在編輯httpd.conf的時候加入了

Group #--1 ==> nogroup 

LoadModule webapp_module modules/mod_webapp.so
AddModule mod_webapp.c
WebAppConnection warpConnection warp localhost:8008
WebAppDeploy examples warpConnection /examples/
WebAppInfo /webapp-info
可為什么還不行呢?我用的是httpd-2.0.47+tomcat-4.1.24。 
編輯/etc/tomcat4/server.xml,搜索 8008,找到<Service name="Tomcat-Apache">那段,把前面的<!-->那行和</Service>后面的<-->那行都刪掉,就是這兩行把這一整段都注釋掉了。
為什么我用
http://localhost/examples  看不到可愛的小貓呢?

 flyxfl 回復于:2003-08-01 16:48:22
jackylau 發表于: 2003-07-18 08:55    發表主題: 求助! 

--------------------------------------------------------------------------------
 
我按照最上面的老史說的。我的出錯信息,怎么解決呀? 
# cd var/tmp 
# ls 
apr wsconAAAFQaiFa:0.0 
apr_APACHE_2_0_35.tar wsconAAAXSaGIa:0.0 
webapp-module wsconAAAhmaOEa:0.0 
webapp-module-1.0-tc40 wsconAAAtFaqEa:0.0 
webapp-module-1.0-tc40-src.tar wsconAAAu3aq5a:0.0 
wsconAAA8vaO6a:0.0 wsconAAAysaaXa:0.0 
wsconAAA94aiEa:0.0 
# cd webapp* 
# ls 
INSTALL.txt Makefile.win apr configure java 
LICENSE.txt README.txt confdefs.h configure.in lib 
Makedefs.in apache-1.3 config.cache docs nsapi 
Makefile.in apache-2.0 config.log include support 
# ./configure --with-apxs=/usr/local/apache/bin/apxs --with-apr=/var/tmp/apr 
loading cache ./config.cache 
checking for test... /bin/test 
checking for true... /bin/true 
checking for echo... /bin/echo 
checking for grep... /bin/grep 
checking for cat... /bin/cat 
checking for sed... /bin/sed 
checking for ln... /bin/ln 
checking for rm... /bin/rm 
checking host system type... sparc-sun-solaris2.7 
checking for sources directory... /var/tmp/webapp-module-1.0-tc40 
checking for targets directory... /var/tmp/webapp-module-1.0-tc40 

C-Language compilation tools 
checking for ar... /usr/ccs/bin/ar 
checking for ranlib... /usr/ccs/bin/ranlib 
checking for gcc... gcc 
checking whether the C compiler (gcc  works... yes 
checking whether the C compiler (gcc  is a cross-compiler... no 
checking whether we are using GNU C... yes 
checking whether gcc accepts -g... yes 
checking for gcc... /bin/gcc 
checking whether /bin/gcc and cc understand -c and -o together... yes 
checking how to run the C preprocessor... /bin/gcc -E 
checking for debug build... no 

JAVA-Language compilation tools 
checking for java support... no 

API documentation generation 
checking for C API documentation... no 
checking for Java API documentation... no 

Target web-server 
checking for Apache apxs... yes 
checking target module... apache-1.3 
checking for full APR directory path... /var/tmp/apr 

Building APR configure script 
Invoking: "./buildconf" in "/var/tmp/apr" 
APR buildconf: buildconf: checking installation... 
APR buildconf: buildconf: autoconf version 2.57 (ok) 
APR buildconf: buildconf: libtool version 1.5 
APR buildconf: 
APR buildconf: 2003 (ok) 
WARNING: Using auxiliary files such as `acconfig.h', `config.h.bot' 
WARNING: and `config.h.top', to define templates for `config.h.in' 
WARNING: is deprecated and discouraged. 

WARNING: Using the third argument of `AC_DEFINE' and 
WARNING: `AC_DEFINE_UNQUOTED' allows to define a template without 
WARNING: `acconfig.h': 

WARNING: AC_DEFINE([NEED_MAIN], 1, 
WARNING: [Define if a function `main' is needed.]) 

WARNING: More sophisticated templates can also be produced, see the 
WARNING: documentation. 
APR buildconf: Copying libtool helper files ... 
APR buildconf: Creating include/arch/unix/apr_private.h.in ... 
autom4te: need GNU m4 1.4 or later: /usr/ccs/bin/m4 
autoheader: /usr/local/bin/autom4te failed with exit status: 1 
APR buildconf: Creating configure ... 
autom4te: need GNU m4 1.4 or later: /usr/ccs/bin/m4 
Execution of ./buildconf returned 0 

Configuring APR 
Invoking: "./configure --enable-static --disable-shared --disable-threads" in "/var/tmp/apr" 
APR configure: loading cache ./config.cache 
APR configure: checking host system type... sparc-sun-solaris2.7 
APR configure: checking target system type... sparc-sun-solaris2.7 
APR configure: checking build system type... sparc-sun-solaris2.7 
APR configure: Configuring APR library 
APR configure: Platform: sparc-sun-solaris2.7 
APR configure: checking for gcc... (cached) gcc 
APR configure: checking whether the C compiler (gcc  works... yes 
APR configure: checking whether the C compiler (gcc  is a cross-compiler... no 
APR configure: checking whether we are using GNU C... (cached) yes 
APR configure: checking whether gcc accepts -g... (cached) yes 
APR configure: Applying APR hints file rules for sparc-sun-solaris2.7 
build/ltconfig: build/ltconfig: cannot open 
configure: error: libtool configure failed 
APR configure: setting CPPFLAGS to "-DSOLARIS2=7 -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT" 
APR configure: setting apr_iconv_inbuf_const to "1" 
APR configure: (Default will be unix) 
APR configure: checking whether make sets ${MAKE}... (cached) yes 
APR configure: checking how to run the C preprocessor... (cached) gcc -E 
APR configure: checking for mawk... (cached) nawk 
APR configure: checking whether ln -s works... (cached) yes 
APR configure: checking for ranlib... (cached) ranlib 
APR configure: checking for a BSD compatible install... build/install.sh -c 
APR configure: checking for rm... (cached) rm 
APR configure: checking for as... (cached) as 
APR configure: checking for cpp... (cached) cpp 
APR configure: checking for ar... (cached) ar 
APR configure: checking for AIX... no 
APR configure: checking for POSIXized ISC... no 
APR configure: checking for minix/config.h... (cached) no 
APR configure: checking whether system uses EBCDIC... (cached) no 
APR configure: performing libtool configuration... 
APR configure: checking for ld used by GCC... (cached) /usr/ccs/bin/ld 
APR configure: checking if the linker (/usr/ccs/bin/ld) is GNU ld... (cached) no 
APR configure: checking for BSD-compatible nm... (cached) /usr/ccs/bin/nm -p 
Execution of ./configure --enable-static --disable-shared --disable-threads returned 1 
configure: error: APR configure script terminated with error code 1  
 我現在碰到和你一樣的問題了!我想問一下.你的這個問題如何解決的呢?

 草中寶 回復于:2003-08-09 01:09:56
[quote:2fe747cffa="flyxfl"]f a function `main' is needed.]) 

WARNING: More sophisticated templates can also be produced, see the 
WARNING: documentation. 
APR buildconf: Copying libtool helper files ... 
APR buildconf: Cr..........[/quote:2fe747cffa]     

5555555,我也是這個問題搞不定,
換版本試下先

 aashen 回復于:2003-08-11 15:39:59
哇噻,樓上的兄弟,也不用貼這么多做說明吧!

作者的安裝手跡很瀏暢啊,不知道我試的時候會出多少小麻煩,哈哈??傊脰|西就要收藏。我頂。

原文轉自:http://www.anti-gravitydesign.com

国产97人人超碰caoprom_尤物国产在线一区手机播放_精品国产一区二区三_色天使久久综合给合久久97