はじめての自宅サーバ構築 - Fedora/CentOS -
Last Update 2018/05/30
[ 更新履歴 ] [ サイト マップ ] [ 質問掲示板 ] [ 雑談掲示板 ] [ リンク ]
トップ >> 質問掲示板

 このスレッドはクローズされています。記事の閲覧のみとなります。

 mod_jk2.so作成時のエラー
日時: 2007/01/11 17:59
名前: aki

はじめましてakiです。
Tomcatとapacheの連携を行いたいのですが、makeのときに以下のようなエラーがでてしまいます。

list=' server/apache2'; \
for i in $list; do \
 echo "Making $target in $i"; \
 if test "$i" != "."; then \
 (cd $i && make) || exit 1; \
fi; \
done;
Making in server/apache2
make[1]: Entering directory `/usr/local/src/jakarta-tomcat-connectors-jk2-2.0.4-src/jk/native2/server/apache2'
mkdir -p ../../../build/jk2/apache2/usr/lib/httpd/modules
/bin/sh /usr/bin/libtool --silent --mode=compile gcc -O2 -g -pipe -march=i386 -mcpu=i686 -DSSL_EXPERIMENTAL_ENGINE -I/usr/kerberos/include -pthread  -DLINUX=2 -D_REENTRANT -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -D_SVID_SOURCE -D_GNU_SOURCE  -I../../include -I/usr/include/httpd -I/home/centos/4build/BUILD/httpd-2.0.46/prefork/srclib/apr-util/include /home/centos/4build/BUILD/httpd-2.0.46/srclib/apr-util/include -I/home/centos/4build/BUILD/httpd-2.0.46/prefork/srclib/apr/include /home/centos/4build/BUILD/httpd-2.0.46/srclib/apr/include  -DCHUNK_SIZE=4096 -DUSE_APACHE_MD5  -c ../../common/jk_channel.c -o ../../../build/jk2/apache2/jk_channel.lo
gcc: cannot specify -o with -c or -S and multiple compilations
make[1]: *** [../../../build/jk2/apache2/jk_channel.lo] Error 1
make[1]: Leaving directory `/usr/local/src/jakarta-tomcat-connectors-jk2-2.0.4-src/jk/native2/server/apache2'
make: *** [jk2-build] Error 1

このようなエラーを直したい場合をどのようにすればいいのでしょうか?
メンテ

Page:  [1] [2] [3] [4]

■ コンテンツ関連情報

 Re: mod_jk2.so作成時のエラー ( No.11 )
日時: 2007/01/12 18:40
名前: aki

locale情報とはコマンドでlocaleと打てばよいのでしょうか?

# locale
とコマンドを打ったところ

locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
LANG=ja_JP.SJIS
LC_CTYPE="ja_JP.SJIS"
LC_NUMERIC="ja_JP.SJIS"
LC_TIME="ja_JP.SJIS"
LC_COLLATE="ja_JP.SJIS"
LC_MONETARY="ja_JP.SJIS"
LC_MESSAGES="ja_JP.SJIS"
LC_PAPER="ja_JP.SJIS"
LC_NAME="ja_JP.SJIS"
LC_ADDRESS="ja_JP.SJIS"
LC_TELEPHONE="ja_JP.SJIS"
LC_MEASUREMENT="ja_JP.SJIS"
LC_IDENTIFICATION="ja_JP.SJIS"
LC_ALL=

となりました。
メンテ
 Re: mod_jk2.so作成時のエラー ( No.12 )
日時: 2007/01/12 18:51
名前: 管理者

# LC_ALL=ja_JP.UTF-8
# export LC_ALL
# LANG=ja_JP.UTF-8
# export LANG

上記を実施後、「# yum check-update」と行うとどうなりますか?
メンテ
 Re: mod_jk2.so作成時のエラー ( No.13 )
日時: 2007/01/15 10:20
名前: aki

お世話になります。
返信のほう遅れて申し訳ありません。

# yum check-update
のコマンドを打った結果
Gathering header information file(s) from server(s)
Server: CentOS-3 - Addons
Server: CentOS-3 - Base
Server: CentOS-3 - Plus
Server: CentOS-3 - Extras
Server: CentOS-3 - Testing
Server: CentOS-3 - Updates
Finding updated packages
Downloading needed headers
Name                Arch  Version         Repo
--------------------------------------------------------------------------------
XFree86-Mesa-libGL         i386  4.3.0-115.EL       update
XFree86-Mesa-libGLU         i386  4.3.0-115.EL       update
XFree86-font-utils         i386  4.3.0-115.EL       update
XFree86-libs            i386  4.3.0-115.EL       update
XFree86-libs-data          i386  4.3.0-115.EL       update
XFree86-xfs             i386  4.3.0-115.EL       update
bind                i386  20:9.2.4-14_EL3     base
bind-libs              i386  20:9.2.4-14_EL3     base
bind-utils             i386  20:9.2.4-14_EL3     base
gnupg                i386  1.2.1-19         update
httpd                i386  2.0.46-61.ent.centos3  base
httpd-devel             i386  2.0.46-61.ent.centos3  base
kernel               i686  2.4.21-47.0.1.EL     update
kernel-doc             i386  2.4.21-47.0.1.EL     update
kernel-source            i386  2.4.21-47.0.1.EL     update
kernel-utils            i386  1:2.4-8.37.15      base
mod_ssl               i386  1:2.0.46-61.ent.centos3 base
openssh               i386  3.6.1p2-33.30.13     update
openssh-clients           i386  3.6.1p2-33.30.13     update
openssh-server           i386  3.6.1p2-33.30.13     update
perl                i386  2:5.8.0-94.EL3      base
perl-CGI              i386  2:2.89-94.EL3      base
perl-CPAN              i386  2:1.61-94.EL3      base
perl-DBD-MySQL           i386  2.1021-4.EL3       base
perl-DB_File            i386  2:1.806-94.EL3      base
perl-XML-Parser           i386  2.31-16.EL3       base
php                 i386  4.3.2-37.ent       update
php-imap              i386  4.3.2-37.ent       update
php-ldap              i386  4.3.2-37.ent       update
php-mysql              i386  4.3.2-37.ent       update
php-odbc              i386  4.3.2-37.ent       update
php-pgsql              i386  4.3.2-37.ent       update
samba                i386  3.0.9-1.3E.10      base
samba-common            i386  3.0.9-1.3E.10      base
tar                 i386  1.13.25-15.RHEL3     update

この様になり
# yum update
を行った結果

Gathering header information file(s) from server(s)
Server: CentOS-3 - Addons
Server: CentOS-3 - Base
Server: CentOS-3 - Plus
Server: CentOS-3 - Extras
Server: CentOS-3 - Testing
Server: CentOS-3 - Updates
Finding updated packages
Downloading needed headers
Resolving dependencies
Dependencies resolved
I will do the following:
[install: kernel 2.4.21-47.0.1.EL.i686]
[update: perl-DBD-MySQL 2.1021-4.EL3.i386]
[update: tar 1.13.25-15.RHEL3.i386]
[update: perl-CPAN 2:1.61-94.EL3.i386]
[update: openssh-server 3.6.1p2-33.30.13.i386]
[update: XFree86-Mesa-libGLU 4.3.0-115.EL.i386]
[update: XFree86-libs-data 4.3.0-115.EL.i386]
[update: XFree86-xfs 4.3.0-115.EL.i386]
[update: bind 20:9.2.4-14_EL3.i386]
[update: httpd 2.0.46-61.ent.centos3.i386]
[update: perl 2:5.8.0-94.EL3.i386]
[update: kernel-utils 1:2.4-8.37.15.i386]
[update: php-odbc 4.3.2-37.ent.i386]
[update: openssh-clients 3.6.1p2-33.30.13.i386]
[update: samba-common 3.0.9-1.3E.10.i386]
[update: php 4.3.2-37.ent.i386]
[update: php-pgsql 4.3.2-37.ent.i386]
[update: gnupg 1.2.1-19.i386]
[update: php-mysql 4.3.2-37.ent.i386]
[update: httpd-devel 2.0.46-61.ent.centos3.i386]
[update: perl-CGI 2:2.89-94.EL3.i386]
[update: samba 3.0.9-1.3E.10.i386]
[update: bind-utils 20:9.2.4-14_EL3.i386]
[update: bind-libs 20:9.2.4-14_EL3.i386]
[update: XFree86-Mesa-libGL 4.3.0-115.EL.i386]
[update: perl-DB_File 2:1.806-94.EL3.i386]
[update: php-ldap 4.3.2-37.ent.i386]
[update: kernel-source 2.4.21-47.0.1.EL.i386]
[update: XFree86-libs 4.3.0-115.EL.i386]
[update: openssh 3.6.1p2-33.30.13.i386]
[update: kernel-doc 2.4.21-47.0.1.EL.i386]
[update: mod_ssl 1:2.0.46-61.ent.centos3.i386]
[update: perl-XML-Parser 2.31-16.EL3.i386]
[update: php-imap 4.3.2-37.ent.i386]
[update: XFree86-font-utils 4.3.0-115.EL.i386]
Is this ok [y/N]: y
Downloading Packages
warning: rpmts_HdrFromFdno: V3 DSA signature: NOKEY, key ID 025e513b
Error: Could not find the GPG Key necessary to validate pkg /var/cache/yum/base/packages/perl-DBD-MySQL-2.1021-4.EL3.i386.rpm
Error: You may want to run yum clean or remove the file:
 /var/cache/yum/base/packages/perl-DBD-MySQL-2.1021-4.EL3.i386.rpm
Error: You may also check that you have the correct GPG keys installed

の様になりました。

メンテ
 Re: mod_jk2.so作成時のエラー ( No.14 )
日時: 2007/01/15 10:38
名前: 管理者

yum自体のコマンドは正常動作するようになりましたね。

CentOSは(厳密にはFCも)モジュール正当性チェックを行うため、手動でGPG-KEYの取り込まなければなりません。

以下を実施した後に再度アップデートを行ってください。

# rpm --import http://ftp.riken.jp/Linux/centos/RPM-GPG-KEY-CentOS-3
メンテ
 Re: mod_jk2.so作成時のエラー ( No.15 )
日時: 2007/01/15 11:36
名前: aki

updateに成功しました。

updateを行った後に、もう一度
# rpm -qa httpd httpd-devel gcc
のコマンドを打ってみました。

gcc-3.2.3-56
httpd-2.0.46-61.ent.centos3
httpd-devel-2.0.46-61.ent.centos3

httpd,httpd-develはupdateされたようなのですが、gccが変わっていないみたいです。
メンテ

Page:  [1] [2] [3] [4]

■ その他

ページ先頭へ

Copyright(©)2004-2018 First home server construction. All Right Reserved.