月別アーカイブ: 2009年11月

CentOS4.6+MySQL 4.0.26

参った。

RPMでインストール自体は出来るのだが・・・

# rpm -ivh ./MySQL-server-4.0.26-0.i386.rpm
Preparing...                ########################################### [100%]
1:MySQL-server           ########################################### [100%]
Preparing db table
Preparing host table
Preparing user table
Preparing func table
Preparing tables_priv table
Preparing columns_priv table
Installing all prepared tables
Fatal error: Can't change to run as user 'mysql'.  Please check that the user exists!
091130  7:05:11 Aborting
091130  7:05:11 /usr/sbin/mysqld: Shutdown Complete
Installation of grant tables failed!
Examine the logs in /var/lib/mysql for more information.
You can also try to start the mysqld daemon with:
/usr/sbin/mysqld --skip-grant &
You can use the command line tool
/usr/bin/mysql to connect to the mysql
database and look at the grant tables:
shell> /usr/bin/mysql -u root mysql
mysql> show tables
Try 'mysqld --help' if you have problems with paths. Using --log
gives you a log in /var/lib/mysql that may be helpful.
The latest information about MySQL is available on the web at
http://www.mysql.com
Please consult the MySQL manual section: 'Problems running mysql_install_db',
and the manual section that describes problems on your OS.
Another information source is the MySQL email archive.
Please check all of the above before mailing us!
And if you do mail us, you MUST use the /usr/bin/mysqlbug script!

途中でエラーが出て、MySQLが起動出来ない・・・

4.1系ならインストールも起動も出来るのだが、4.0系→4.1系でデータ型やら、ちょっと変わった部分があるので、そのままデータを移行出来ないのです。

色々調べてみたのだが、回避方法が見つからない。。。orz

4.0系の最新バージョンを入れようとしたのだが、もう、4.0系が公開されていないので、入れようもないのです。

色々やってみるか。。

でわ。

USBメモリ+UniformServer+Starbug1でポータブルBTS環境を構築

さて、気軽に使えるBTSシステムである、Starbug1をUSBメモリに入れ、持ち運べるようにしてみました。

ミドルウェア環境は、UniformServerを使います。

※WAMPです

以下、簡単な流れです。

1) USBメモリを準備、端末に接続

  → 今回はFドライブとしました

2) UniformServerをダウンロード

  → http://www.uniformserver.com/

3) UniformServerをインストール

  → インストール先はUSBメモリを指定

   → F:\UniServer へインストールされる

4) Starbug1をダウンロード

  → http://starbug1.sourceforge.jp/

5) ダウンロードしたStarbug1をドキュメントルートに展開する

  → F:\UniServer\www\starbug1

6) httpd.conf を修正する

  → F:\UniServer\usr\local\apache2\conf\httpd.conf

   → ExecCGIを追記して、CGIを動作させる

7) UniformServerを起動する

  → Start_Server.bat を実行

8) ブラウザにてアクセス

  → http://localhost/starbug1/index.cgi

これでポータブルBTS環境の構築は完了。

USBメモリさえあれば、会社でも家でも同じBTSが使えます。

自分用のタスク管理に良いかもですね。

でわ。

CentOS4.6+Java 1.4.2.01

ちょっと、古い環境を構築せねばならない事となり。

CentOS4.6 に Java1.4.2.01 を入れようとしたのですが・・・

Sunのサイトより、Linux版のパッケージをダウンロード。

j2sdk-1_4_2_01-linux-i586-rpm.bin

んでもって、RPMを作るべく、実行するのだが・・・

# chown 755 ./j2sdk-1_4_2_01-linux-i586-rpm.bin
# ./j2sdk-1_4_2_01-linux-i586-rpm.bin
Sun Microsystems, Inc.
Binary Code License Agreement
for the
JAVATM 2 SOFTWARE DEVELOPMENT KIT (J2SDK), STANDARD EDITION, VERSION 1.4.2_X
(snip)
For inquiries please contact: Sun Microsystems, Inc., 4150 Network Circle,
Santa Clara, California 95054, U.S.A.
(LFI#130039/Form ID#011801)
Do you agree to the above license terms? [yes or no]
yes
Unpacking...
tail: cannot open `+473' for reading: No such file or directory
Checksumming...
1
The download file appears to be corrupted.  Please refer
to the Troubleshooting section of the Installation
Instructions on the download page for more information.

あれ・・・?

RPMが作れない。

色々調べたところ、カーネルのバージョンが新しすぎる事が原因でした。

なので、検証機で置いてあった、CentOS4.2にてRPMを作成。

# ./j2sdk-1_4_2_01-linux-i586-rpm.bin
Sun Microsystems, Inc.
Binary Code License Agreement
for the
JAVATM 2 SOFTWARE DEVELOPMENT KIT (J2SDK), STANDARD EDITION, VERSION 1.4.2_X
(snip)
For inquiries please contact: Sun Microsystems, Inc., 4150 Network Circle,
Santa Clara, California 95054, U.S.A.
(LFI#130039/Form ID#011801)
Do you agree to the above license terms? [yes or no]
yes
Unpacking...
Checksumming...
00Extracting...
UnZipSFX 5.40 of 28 November 1998, by Info-ZIP (Zip-Bugs@lists.wku.edu).
inflating: j2sdk-1_4_2_01-linux-i586.rpm
Done.

おk。

CentOS4.6 の環境にRPMをFTP転送して、インストール完了。

ちょっとハマったw

解決出来て良かった。

でわ。