PC/NETのetcetra/2005-04-06 のバックアップ差分(No.3)

※※このサイトは2012年頃より更新を停止しています。※※

  • 追加された行はこの色です。
  • 削除された行はこの色です。
**ちょいと走り書き [#pdb2cd87]
**apacheコンパイル ちょいと走り書き [#pdb2cd87]
参考:
http://www.d77.jp/modules/pukiwiki/index.php?apache2.0%B7%CF
http://hegel.aichi-u.ac.jp/manual/install.html
http://hegel.aichi-u.ac.jp/manual/mod/
http://hegel.aichi-u.ac.jp/manual/mod/module-dict.html#ModuleIdentifier


 ./configure --enable-so --enable-ssl --with-ssl=/usr
 --prefix=/usr/local/apache --enable-shared=max --enable-suexec
 --with-suexec-caller=apache --with-suexec-docroot=/home/users
 --with-suexec-logfile=/usr/local/apache/logs/suexec_log
 --with-suexec-userdir=public_html --enable-mods-shared=all
これおかしい。
modules/配下に*.soがなくて*.laとかができてた。意味よー。~
そして--enable-mods-shared=allを省いたら、APACHE_DIR/modules/配下にモジュールが一つも作られなかった。
しかし、静的リンクのチェックはこうだった。
 [VFS-root@bk ~]# /usr/local/apache/bin/httpd -l
 Compiled in modules:
  core.c
  mod_access.c
  mod_auth.c
  mod_include.c
  mod_log_config.c
  mod_env.c
  mod_setenvif.c
  mod_ssl.c
  prefork.c
  http_core.c
  mod_mime.c
  mod_status.c
  mod_autoindex.c
  mod_asis.c
  mod_suexec.c
  mod_cgi.c
  mod_negotiation.c
  mod_dir.c
  mod_imap.c
  mod_actions.c
  mod_userdir.c
  mod_alias.c
  mod_so.c
~ 
つまりこういうことか?
 --enable-so --enable-shared DSOの機能が有効になる?
 --enable-ssl=shared sslの機能をDSOで組み込む?
 --enable-[MOSULE名] で、モジュールのapacheへの直接組み込み?
 --enable-[MOSULE名]=shared で、モジュールのDSO組み込み?
ということは、mod_soは、DSO機能を実現する為のモジュール名なわけだから、--enable-so=sharedで./configureなんてしたらバカを見るってことか?
だから--enable-soでapacheへ直接組み込みしなくちゃいけないかな?
-'''20050411'''
'''--enable-so=sharedで./configureしたら、'''
'''configure: error: mod_so can not be built as a shared DSO'''
'''っていわれて./configureが失敗した。なるほど。'''

./configure --enable-shared --enable-ssl=shared --with-ssl=/usr --prefix=/usr/local/apache2
これだと、sslだけDSOリンクされて、他は静的にリンクされてた。
 [VFS-root@bk ~]# /usr/local/apache2/bin/httpd -l
 Compiled in modules:
  core.c
  mod_access.c
  mod_auth.c
  mod_include.c
  mod_log_config.c
  mod_env.c
  mod_setenvif.c
  prefork.c
  http_core.c
  mod_mime.c
  mod_status.c
  mod_autoindex.c
  mod_asis.c
  mod_cgi.c
  mod_negotiation.c
  mod_dir.c
  mod_imap.c
  mod_actions.c
  mod_userdir.c
  mod_alias.c
  mod_so.c


じゃぁ全部をDSOにするにはどうしたらいい?
./configure --enable-shared=all
かな?
今度試してみよう。
-'''20050411
'''これではDSO化されなかった。'''


トップ   一覧 単語検索 最終更新   ヘルプ   最終更新のRSS