*yum でいろいろインストールしてみる。 [#ga85e8b1]
-gcc
#pre{{
bash-2.05b# yum install gcc
Gathering header information file(s) from server(s)
Server: Fedora Core 2 - sh4 - Base
Finding updated packages
Downloading needed headers
Resolving dependencies
...Dependencies resolved
I will do the following:
[install: gcc 3.4.3-1.sh4]
I will install/upgrade these to satisfy the dependencies:
[deps: glibc-headers 2.3.3-27.12.sh4]
[deps: glibc-devel 2.3.3-27.12.sh4]
[deps: cpp 3.4.3-1.sh4]
[deps: glibc-kernheaders 2.6.6-2.sh4]
[deps: binutils 2.15.92.0.2-2.sh4]
Is this ok [y/N]: y
Downloading Packages
Getting glibc-headers-2.3.3-27.12.sh4.rpm
glibc-headers-2.3.3-27.12 100% |=========================| 506 kB    00:05
Getting glibc-devel-2.3.3-27.12.sh4.rpm
glibc-devel-2.3.3-27.12.s 100% |=========================| 2.1 MB    00:10
Getting cpp-3.4.3-1.sh4.rpm
cpp-3.4.3-1.sh4.rpm       100% |=========================| 1.8 MB    00:10
Getting gcc-3.4.3-1.sh4.rpm
gcc-3.4.3-1.sh4.rpm       100% |=========================| 4.3 MB    00:37
Getting glibc-kernheaders-2.6.6-2.sh4.rpm
glibc-kernheaders-2.6.6-2 100% |=========================| 1.4 MB    00:11
Getting binutils-2.15.92.0.2-2.sh4.rpm
binutils-2.15.92.0.2-2.sh 100% |=========================| 3.3 MB    00:16
Running test transaction:
Test transaction complete, Success!
binutils 100 % done 1/6
glibc-kernheaders 100 % done 2/6
glibc-headers 100 % done 3/6
glibc-devel 100 % done 4/6
cpp 100 % done 5/6
gcc 100 % done 6/6
Installed:  gcc 3.4.3-1.sh4
Dep Installed:  glibc-headers 2.3.3-27.12.sh4 glibc-devel 2.3.3-27.12.sh4 cpp 3.
4.3-1.sh4 glibc-kernheaders 2.6.6-2.sh4 binutils 2.15.92.0.2-2.sh4
Transaction(s) Complete
bash-2.05b#
}}
-g++
 yum install gcc-c++
*perl [#lfb5accc]
-perl-5.8.3-18.sh4.rpm
#pre{{
bash-2.05b# yum install perl
Gathering header information file(s) from server(s)
Server: Fedora Core 2 - sh4 - Base
Finding updated packages
Downloading needed headers
Resolving dependencies
.....Unable to satisfy dependencies
Package perl needs perl(Mac::BuildTools), this is not available.
Package perl needs perl(Mac::InternetConfig), this is not available.
Package perl needs perl(Tk), this is not available.
Package perl needs perl(Tk::Pod), this is not available.
Package perl needs perl(v5.6.0), this is not available.
bash-2.05b#
}}
こける。。。??
 rpm -ivh --nodeps perl-5.8.3-18.sh4.rpm


-rpm-rebuild~
perlを強制的にインストールするとyumでインストール成功

-perlのビルド
#pre{{
bash-2.05b# rpmbuild --rebuild perl-5.8.3-18.src.rpm
perl-5.8.3-18.src.rpm をインストール中
エラー: cannot create %sourcedir /usr/src/redhat/SOURCES
エラー: perl-5.8.3-18.src.rpm cannot be installed
}}
/usr/src/redhat/SOURCESがないが、その代わりに/usr/src/unknownがある。~
コピー。~
 cp -a /usr/src/unknown /usr/src/redhat
~
#pre{{
bash-2.05b# rpmbuild --rebuild perl-5.8.3-18.src.rpm
perl-5.8.3-18.src.rpm をインストール中
エラー: Failed build dependencies:
        tcsh is needed by perl-5.8.3-18.sh4
        gdbm-devel is needed by perl-5.8.3-18.sh4
        db4-devel is needed by perl-5.8.3-18.sh4
        dos2unix is needed by perl-5.8.3-18.sh4
}}
~
 yum install tcsh gdbm-devel db4-devel dos2unix make
最ビルドするも状況は変わらず。~
なんでperl(Mac::*),や perl(v5.6.0), が要求されるんだろう。。。~
とりあえず、FC3のPerl(perl-5.8.5-9.src.rpm)でも試行してみる。~
 bash-2.05b# rpmbuild --rebuild perl-5.8.5-9.src.rpm
今度はうまく行ったようだ。~

*Xorg [#s8cf2460]
 yum install xorg-x11
これまたエラー。
#pre{{
bash-2.05b# yum install xorg-x11
Gathering header information file(s) from server(s)
Server: Fedora Core 2 - sh4 - Base
Finding updated packages
Downloading needed headers
Resolving dependencies
..conflict between xorg-x11-font-utils and xorg-x11-base-fonts
}}

xorg-x11-font-utils-6.8.1-4.sh4.rpmとxorg-x11-base-fonts-6.7.0-5.1.sh4.rpm??~
なんかバージョンが違うし、、、。~
よくよく調べてみると、xorg-x11*-6.7.0-5にはあって、xorg-x11*-6.8.1-4にはないパッケージが多数あり、バージョンミスマッチしているらしい。~
~
 rpmbuild --rebuild fonts-xorg-6.8.1-1.src.rpm

*yumの設定 [#je605214]
yumのサーバ設定
 cd /share/www/download/FedoraCore/
 yum-arch /share/www/download/FedoraCore/

yumクライアント設定
/etc/yum.conf
#pre{{
bash-2.05b# cat /etc/yum.conf
[main]
cachedir=/var/cache/yum
debuglevel=2
logfile=/var/log/yum.log
pkgpolicy=newest
distroverpkg=redhat-release
tolerant=1
exactarch=1
retries=20
exclude=XFree86*
[base]
name=Fedora Core $releasever - $basearch - Base
baseurl=http://rpm.sh-linux.org/rpm-2004/target/

[base-kogiidena]
name=Fedora Core Base-Kogiidena
baseurl=http://eggplant.ddo.jp/www/download/FedoraCore/
}}


*Xorg 再び [#ra79aadf]

#pre{{
yum list
yum install xorg-x11
Gathering header information file(s) from server(s)
Server: Fedora Core 2 - sh4 - Base
Server: Fedora Core Base-Kogiidena
Finding updated packages
Downloading needed headers
Resolving dependencies
..Dependencies resolved
I will do the following:
[install: xorg-x11 6.8.1-4.sh4]
I will install/upgrade these to satisfy the dependencies:
[deps: xorg-x11-font-utils 6.8.1-4.sh4]
[deps: ttmkfdir 3.0.9-11.sh4]
[deps: xorg-x11-Mesa-libGL 6.8.1-4.sh4]
[deps: fonts-xorg-base 6.8.1-1.noarch]
[deps: xinitrc 3.42-1.noarch]
[deps: xorg-x11-xfs 6.8.1-4.sh4]
[deps: xorg-x11-libs 6.8.1-4.sh4]
[deps: xorg-x11-xauth 6.8.1-4.sh4]
[deps: chkfontpath 1.10.0-1.sh4]
[deps: switchdesk 4.0.3-1.noarch]
Is this ok [y/N]: y

…
}}
twm等
#pre{{
bash-2.05b# yum install xorg-x11-twm xorg-x11-xdm xorg-x11-tools
Gathering header information file(s) from server(s)
Server: Fedora Core 2 - sh4 - Base
Server: Fedora Core Base-Kogiidena
Finding updated packages
Downloading needed headers
Resolving dependencies
.Dependencies resolved
I will do the following:
[install: xorg-x11-twm 6.8.1-4.sh4]
[install: xorg-x11-xdm 6.8.1-4.sh4]
[install: xorg-x11-tools 6.8.1-4.sh4]
I will install/upgrade these to satisfy the dependencies:
[deps: xterm 192-1.sh4]
[deps: xorg-x11-Mesa-libGLU 6.8.1-4.sh4]
Is this ok [y/N]: Exiting on user command.
}}

*PHP/MMCache [#ua0d7f09]
とりあえずOK
PHPを4.3.10に更新

*httpd(apache2) [#qb5a3d2d]
yumでインストール~
UserとGroupがapache.apacheになっている。
debianの旧環境/share/wwwを使用する場合オーナを変更が必要。~
ちなみに、debianでは www-data.www-data(33.33)になっている。~
 chown -R apache.apache --from 33.33

&color(red){chroot-debianとFC2を相互運用することを考えると、apacheを入れる前に、apache.apache=33.33になるよう、ユーザ、グループを追加しておいたほうがいいかも。。};~
mysqlも同様。
*anthy [#v25e4274]
ビルドして動いているらしいが、辞書がおかしい。~
ググって見た。
#pre{{
手元にある Fedora の gcc-3.4.3-6 でも、**さんと同様に壊れた辞書が
できてしまいました。

どうも、fedora の gcc-3.4.3 に入っているパッチが悪さしているようです。
とりあえず以下の anthy-5924 に対するパッチで、正常な辞書ができると思い
ます。


--- mkanthydic/mkdic.c.orig	2004-08-29 04:54:48.000000000 +0900
+++ mkanthydic/mkdic.c	2004-11-27 01:06:54.930846856 +0900
@@ -455,7 +455,8 @@
 	(strcmp(ye->entries[i-1].word, we->word) ||
 	 strcmp(ye->entries[i-1].wt, we->wt) ||
 	 ye->entries[i-1].freq != we->freq)) {
-      count += fprintf(yomi_entry_out, "%s", we->wt);
+      fprintf(yomi_entry_out, "%s", we->wt);
+      count += strlen(we->wt);
       if (we->freq > 1) {
 	count += fprintf(yomi_entry_out, "*%d", we->freq);
       }
@@ -464,7 +465,8 @@
     /* 単語を出力する場所がこの単語のid */
     we->offset = count + ye->offset;
     /* 単語を出力する */
-    count += fprintf(yomi_entry_out, "%s", we->word);
+    fprintf(yomi_entry_out, "%s", we->word);
+    count += strlen(we->word);
   }
 
   fputc(0, yomi_entry_out);
}}
こんなGCC使いたくないかも。。。~
gcc-3.4.3-7にて対策とあるので、gccもビルドしたほうがいいのかな〜!!~

mysql
 yum install mysql-server mysql php-mysql perl-DBI perl-DBD-MySQL
OK
debian環境からDB移行も簡単。

*あとは、sambaとnetatalk。。。。 [#scc26da4]

#counter

トップ   編集 差分 バックアップ 添付 複製 名前変更 リロード   新規 一覧 単語検索 最終更新   ヘルプ   最終更新のRSS