●rsync
rsyncで指定したファイルだけをっていうのは以外とめんどいというか・・・
テクが必要なんですねぇ。
rsyncで指定したファイルだけをっていうのは以外とめんどいというか・・・
テクが必要なんですねぇ。
とある事で大量のデータを読み出すことになり、その後のベリファイのツールとしてなにか
いいものはないかと探してみたところ、md5deepというものを発券したので
インストールしてみました。
で、4つのコピーしたフォルダーの内3つは問題なかったのですが、うちひとつにエラーらしき結果に。
でも、そのなかの任意のファイル(テキストファイル)をmd5sumしてみると同じ結果に。。。
よくわかりません。
昨日からやりだしてみたのですが・・・
サンプルなさすぎだお。
パイソンなら多少サンプルあったけど、rubyはほとんどなしだな^^;
かなりの試行錯誤が必要かも。
っていうのはなかなかパワーがありますね。
でも、ひとつのファイルなんで、激しくインサート処理とかする場合はDB全体がロックされてしまうのでした。
私にはなんだかもうよくわかりません。
しかし、これからも言語はどんどん出てくるのでしょう。
その度に覚えるのかと思うとなんだかなーっと。
JQueryだのCanvasだのいろいろやっているのですが、浦島太郎状態です。
世の中はこうも変わっているのですね。
::for /f %%i in ('dir /ad /b') do @echo %%i
set dateStr=%date:~0,4%%date:~5,2%%date:~8,2%
::echo %dateStr%
for /f %%i in (bbb.txt) do "C:\Program Files\Lhaplus\Lhaplus.exe" /c:zip /o:c:\temp /p:abc .\%%i
cd c:\temp2
mkdir %dateStr%
move c:\temp\*.zip c:\temp2\%dateStr%
sh-3.2$ echo `date '+%Y/%m/%d'`
2010/05/06
sh-3.2$ echo `date '+%Y/%m/%d'` :hogehoge:fugefuge
2010/05/06 :hogehoge:fugefuge
sh-3.2$ echo "`date '+%Y/%m/%d'` :hogehoge:fugefuge"
2010/05/06 :hogehoge:fugefuge
sh-3.2$
とりあえず、手元にあった915チップセットのマシンで実験してみました。
(環境は、アンテナ線ではなく赤白黄の外部入力でやってます・・・)
録画ですが、映像は問題ないのですが音がNGです。まったく録音されていません。
まぁ、それどころか普通にCDとか再生しても音が鳴りません。
オンボードもあきらめて、古いサウンドカードにしてみたら音は鳴るようになったものの「ホワイトノイズ」が凄くつかいものになりません。(何も音を出していないのに、「ザー」って音がでっぱなしの状態です。)
次に、巷で売っているサウンドカードを買ってきてやってみましたが、これもNGでした。
仕方ないので、845チップセットのマシンにMythdora12.23をインストールしてみましたが
一番最初のパターンと同じで音が録音されません。
こうなればもう最終手段ってことでMythdora10.21をインストール・・・
これはうまく逝きました。
うーん。なんかFedora12はサウンド関連でいろいろと問題ありな感じですね。
調べてみるといろいろ苦戦されている方もいるみたいで。
昨日、Fedora10(mythdora10.21)からセキュリティのアップデートの案内がきていたので何も考えずに
アップデートを実行。で、再起動を求められたので再起動しました。
しばらくして画面を見ると、自動的にログインしてX画面が起動するはずが、
画面が真っ白なままで何も表示されない状態になってしまいました。
(とりあえず、マウスカーソルだけは表示されて動かせる状態でした。)
とりあえず、以下を実行。
yum install kmod-nvidia
再起動して、画面が表示されました^^;
MythTvを0.21から0.22にしてからMythTv Playerがつかいものにならなくなっていたのですが、
配布元のページを見てみるとなんと最新バージョンが公開されていました。
(私が使っていたのは、0.5.0で最新版は0.7.0みたいです。)
で、試しに使用してみたところ「ばっちり」使えますよ。
作成者に感謝です。
結局なんとかリカバリーはしたものの、データベースの文字化けが復活しませんでした。
さらに、MythTVPlayerも動かなくなってしまいました。
あーあ。
なんとかリカバリーに成功したので、mythbackendを起動してみると今度は問題なし。
で、mythwebを起動してみると今度は以下のエラーが発生。
Error at xxx/includes/mythbackend.php, line 172:
Incompatible protocol version (mythweb=40, backend=50)
なんすか。今度はバージョンの違いですか!?
とりあえず、key重複のエラーが発生していたのはわかったので以下の荒療治を実行しました。
mythconverg-to_uncorrupt.sql.gzを解凍して、
ERROR 1062 (23000) at line 1578
で表示されていた、「1578」行を削除して保存。
↓
保存したファイルを圧縮。
↓
リカバリープログラムの実行。
あとは、ひたすら繰り返し。
覚悟を決めて、http://www.mythtv.org/wiki/Fixing_Corrupt_Database_Encoding
を参考にしてやってみましたよ。
で、
[root@kororin mythtv]# /usr/share/mythtv/mythconverg_restore.pl --directory /xxx/yyy --filename /xxx/yyy/mythconverg-to_uncorrupt.sql.gz
ERROR 1062 (23000) at line 1578: Duplicate entry '’ï¼ï¼™ãƒ¯ãƒ¼ãƒ«ãƒ‰ã€€ãƒ™ã�' for key 1
ERROR: Cannot write to mysql, stopped at /usr/share/mythtv/mythconverg_restore.pl line 1536,
エラー発生。
あーあ。
この状態でmythwebにアクセスしてみたところ以下のエラーが発生していました。
Backtrace:
datetime: 2009-11-14 11:42:12 (JST)
errornum: 256
error type: User Error
error string: SQL Error: Table 'mythconverg.settings' doesn't exist [#1146]
順調に稼働していたMythDora 10.21ですが久しぶりにmythwebを起動してみたところ、
以下のメッセージが表示されました。
Error
Unable to connect to the master backend at 127.0.0.1:xxxxx.
Is it running?
「バックエンド起動してるのー?」ってことですよね。
とりあえず、mythtvsetupを動かしてみることにしました。
[mythtv@kororin ~]$ mythtvsetup
2009-11-08 15:37:45.362 Newest MythTV Schema Version : 1244
QSqlQuery::exec: database not open
2009-11-08 15:37:46.283 DB Error (Index creation failed.):
Query was:
Driver error was [1/-1]:
Driver not loaded
Database error was:
Driver not loaded
2009-11-08 15:37:46.283 DB charset pre-conversion test failed! Your database seems to be partially corrupted. Please move the backup to a safe place. Your database must be fixed before you can upgrade beyond 0.21-fixes. Please see http://www.mythtv.org/wiki/index.php/Fixing_Corrupt_Database_Encoding for information.
2009-11-08 15:37:46.283 Database Schema upgrade FAILED, unlocking.
2009-11-08 15:37:46.284 Couldn't upgrade database to new schema.
Error in my_thread_global_end(): 2 threads didn't exit
あーーーーー。DB関係の問題のようです。
(最近、MythTV関係のパッケージが更新されていたのでそれの影響かな。)
そして、以下のページに解決方法が掲載されていました。
http://www.mythtv.org/wiki/Fixing_Corrupt_Database_Encoding
うーん。
これは大掛かりですね。相当な覚悟が必要かも。
しかし、今までは何回かアップデートしても平気だったんですけどね。
今回のアップデートは21系から22系に変わったからなのでしょうか!?
(ちなみに、何も録画していない環境でmythtvsetupを起動したときはエラーはなく正常終了しました。)
いやー、久しぶりの更新になってしまいました。
10月の下旬から「clamavがバージョンアップされたんで更新してくれ」とのメールが来ていたので
更新してみることにしました。
clamavのページからtarファイルを持ってきて/usr/local/srcに展開。
で、./configureしてmakeするとError(エラー発生)です。
色々調べてみるとパッチが公開されいるようなので適用してみることにしました。
パッチは、以下のページで公開されています。
http://lurker.clamav.net/message/20091029.213216.07116386.en.html
で、上記のリンク先の内容をコピペしておきます。
[root@kororin libclamav]# pwd
/usr/local/src/clamav-0.95.3/libclamav
先ほどコピペした内容をpatch.txtに保存します。
[root@kororin libclamav]# vi patch.txt
パッチを適用します。
[root@kororin libclamav]# patch -p2 < patch.txt
あとは、普通に./configureとmakeとmake installすればOKです。(多分)
サイボーズ4のダイイング・メッセージです。笑。
CGI Error
The specified CGI application misbehaved by not returning a complete set of HTTP headers. The headers it did return are:
root宛てに以下のようなメールがきていました。
Last ClamAV update process started at Sat Jun 13 23:01:01 2009
Last Status:
WARNING: Your ClamAV installation is OUTDATED!
WARNING: Local version: 0.95.1 Recommended version: 0.95.2
さっさとバージョンアップしましょう。
おっと、まだバージョンは0.99のまんまですね。
1.0はいつごろでるのやら。
今となってはもう1ヶ月近く前なのですが、Mythdora 10.21マシンのウイルス対策として
clamavを入れてみました。
しばらくは問題なかったのですがあるときからroot宛にメールがくるようになりました。
内容は、/etc/cron.hourly/freshclamが失敗していて、
原因は「バージョンが古いから入れ直せ」ということなんですが
0.95.0から0.95.1にあがっただけで入れ直せとは^^;
(しかもtarファイルを展開して地味にmake&インストールしないといけません。)
このあたりはまだまだWindowsには負けてますね。
以下のような挙動になります。
vlcの0.8.6のときは出なかったのですが、0.9系にあげたら出るようになりました。
もちろん、ストリーミングは出来ません。
このD-busってのが曲者なんかな。
00000001] main libvlc debug: translation test: code is "ja"
[00000416] inhibit interface error: Failed to connect to the D-Bus session daemon: dbus-launch failed to autolaunch D-Bus session: Autolaunch error: X11 initialization failed.
[00000416] main interface error: no suitable interface module
[00000001] main libvlc error: interface "inhibit,none" initialization failed
[00000422] main interface: creating httpd
vlcってほんとに高機能だと思うけど、オプションが複雑杉。
でも、使いこなせればかなりいろんなことが出来るんですよね。
大部分の人が再生だけしか使っていなそうだけど^^;
うーん。パッチの適用なんて・・・
と甘い考えは命取りになることもあるんですね。
いやー、参りました。
ほんとにどこでどうなるかなんてわかりませんでつ。
明らかに私のマシンはスペック不足のような。笑。
おまけに、画面の解像度は640*480とかしかでないし。
画面の効果を有効にすると怒られるし・・・
でも、一番びっくりだったのは、初期状態では他のマシンからSSH出来ないことですかね。
F/Wで閉じられてるみたいですね。
まぁ、安全といえば安全なんでしょうけども。
ほんとは、UbuntuにMythTVを入れてみようと思ったけどやっぱり、MythDora5.0にしておこうかな。
あ、デスクトップ版ではなくてサーバ版入れればよかったのか!?
Ubuntu 8.10デスクトップ版をインストールしてみました。
とりあえず、インストールした時点でGV-MVP/RXを認識しているかチェック。
以下は、dmesgのダンプ。(抜粋)
[ 15.621328] Linux video capture interface: v2.00
[ 15.719471] ivtv: Start initialization, version 1.4.0
[ 15.719683] ivtv0: Initializing card #0
[ 15.719694] ivtv0: Autodetected I/O Data GV-MVP/RX, GV-MVP/RX2W (dual tuner) card (cx23416 based)
[ 15.727882] ivtv 0000:03:00.0: PCI INT A -> GSI 16 (level, low) -> IRQ 16
[ 15.727897] ivtv0: Unreasonably low latency timer, setting to 64 (was 32)
[ 16.105062] saa7115 0-0021: saa7115 found (1f7115d0e100000) @ 0x42 (ivtv i2c driver #0)
[ 16.186173] input: ImExPS/2 Generic Explorer Mouse as /devices/platform/i8042/serio1/input/input5
[ 16.656378] tuner 0-0043: chip found @ 0x86 (ivtv i2c driver #0)
[ 16.745151] tda9887 0-0043: creating new instance
[ 16.745157] tda9887 0-0043: tda988[5/6/7] found
[ 16.795675] All bytes are equal. It is not a TEA5767
[ 16.795811] tuner 0-0060: chip found @ 0xc0 (ivtv i2c driver #0)
[ 16.796192] upd64031a 0-0012: chip found @ 0x24 (ivtv i2c driver #0)
[ 16.807406] upd64083 0-005c: chip found @ 0xb8 (ivtv i2c driver #0)
[ 16.822980] wm8739 0-001a: chip found @ 0x34 (ivtv i2c driver #0)
[ 16.828395] vp27smpx 0-005b: chip found @ 0xb6 (ivtv i2c driver #0)
[ 16.891969] tuner-simple 0-0060: creating new instance
[ 16.891977] tuner-simple 0-0060: type set to 46 (Panasonic VP27s/ENGE4324D)
[ 16.894855] ivtv0: Registered device video0 for encoder MPG (4096 kB)
[ 16.894910] ivtv0: Registered device video32 for encoder YUV (2048 kB)
[ 16.894965] ivtv0: Registered device vbi0 for encoder VBI (1024 kB)
[ 16.895025] ivtv0: Registered device video24 for encoder PCM (320 kB)
[ 16.895031] ivtv0: Initialized card #0: I/O Data GV-MVP/RX, GV-MVP/RX2W (dual tuner)
なんか認識しているようですね。
全ダンプは、続きを読むで確認してください。
HP-UXでmkdir -pを同時に実行したところ、cronのログにrc=1のメッセージが・・・
どうやらmkdir -pは同時に実行させると失敗することがあるようですね。
私の場合は、10個のプログラムが同時に走る処理だったのですが。汗。
最近は、DVD並の画質で容量は1/4ぐらいのが流行りなんですね。
まったく知りませんでした。
しかし、再生するにはCPUパワーを必要みたいですが。
今度自分でも作成してみようと思います。どのぐらい時間かかるんだろ。
WinCVSからモジュール消そうとするとエラーが出てきました。
どうやらスペースが含まれているのが原因っぽいのかな。
よくわかりません。
しかし、CVSにコミットするときの決まりぐらいはあっていいものだが・・・
まぁ、現場によってそこら辺はほんと違うもんですねぇ。
なんかもうFedora9どころかFedora10なんすかね。
これは、Fedora8もそろそろ危ないかな。
ぼちぼち、MythDora 5.0に乗り換えるしかないかも。
フォルダを右クリックすると検索メニューが出てきます。
そこでは以下のオプションを指定出来ます。
・ファイル名のすべてまたは一部
・ファイルに含まれている単語または句
で、ファイルに含まれている単語または句で、ある単語を指定して
テキストファイルを検索させてみたのですが・・・
拡張子がpl(Perlファイル)はヒットするんですが、sh(シェルスクリプト)がヒットしないではないですか。
これは、仕様でつか!?
echo "1234567890 ○○-○○○0101www.yahoo.co.jp/jpn/hoge.jpg" | sed -e "s/.*○○-○○○0[1-3]//g" | sed -e "s/\/.*//g" | sed -e "s/\(0[1-3]\)/&,/g"
ここ数ヶ月色々mythdoaraについて試しているの近日中にまとめるつもりです。
fedora.jpにアクセスできないなー。
もう移行したってことですか!?
以前挫折していたmythdoraに再び挑戦してみました。
インストールとかは全然問題なかったのですが、その後が大問題です。
yum install fonts-japaneseとやってもエラーになってしまいました。
うーん。どうやら接続先のサーバーにつながらないみたいのが原因のようです。
(関係あるかどうかは知りませんがfedora.jpもつながらないですね^^;)
でも、ちょっと調べてなんとか日本語化はうまくいきました。
で、mythdoraの方なんですがやっぱりカードを認識していないみたいですね。
(カードはGV-MVP/RXを使っています。)
覚悟を決めて、ドライバから見直したところ・・・・
キタ─wwヘ√レvv~(゚∀゚)─wwヘ√レvv~─ !!
うまく逝きました ((( ̄( ̄( ̄( ̄ー ̄) ̄) ̄) ̄)))
うーん。前回挫折したときにもうちょっと頑張ってみればよかったです。
もちろん、mythstreamtvも起動しました。感動です。
(これを確認するのに1年ぐらいかかりましたよ。)
でも、録画したものはストリーミング出来るけど放送中のは出来るのだろうか。
早速DLしてみました^^;
しかし、DLするのに時間がかかります。(CDだと2枚組みになります。)
これから挑戦してみようという人はあらかじめDLしておいたほうがいいです。
で、インストールは別に何も悩むところはなかったのですが、再起動後の起動中に
文字化けしている画面が表示されてしまいました。
これは何秒かすると消えて普通にログイン画面が表示されます。
ここまではよかったんです・・・
で、ログインするといろんなところが文字化けしています。(・ω・ )
いろいろさまよったところ、どうも日本語のフォントが入っていないとのことです。
フォント入れれば問題ないので焦らないほうがいいですね。
で、肝心のmythtvの方ですが・・・
NGでした。。゚(゚´Д`゚)゚。
mythtv-setup上では、キャプチャカードも自動的に認識しているしチャンネルの設定&番組表の取得も
問題ないんです。
しかし、映像が全く出ません。砂嵐です・・・
ここで挫折してしまいました。うーん。
映像さえ出れば凄かったのですが・・・
でも、これだけ簡単にインストール&設定出来るのであれば今後に期待出来そうな感じです。
追記
再起動後に表示される文字化けの画面は、無視していい内容でした。
(悔しかったのでインストールするときの言語を英語で入れて確認をしてみました。)
挫折からいろんなページをさまよっていると、mythdora4.0というのものをハッケン(・∀・)
なんでも、Fedora6をベースにmythtv風味にしてあるとのこと。
しかも、mythstreamtvも動作するとの表示が・・・
これはもしかして(゚∀゚ )・・・
ここまいろいろとやってみたのですが、Vineの時に挫折してしまったmythstreamtvに再度挑戦してみることにしました。
(mythstreamtvはvlcを使用するのですが、このvlcが依存関係がものすごく強烈なんです。
Vineのときはなんとかコンパイルして映像までは出たのですが音が出ませんでした。)
■svnのインストール
debian:/usr/src# apt-get install subversion
Reading package lists... Done
Building dependency tree... Done
The following extra packages will be installed:
libneon26 libsvn1
Suggested packages:
subversion-tools db4.4-util
The following NEW packages will be installed:
libneon26 libsvn1 subversion
0 upgraded, 3 newly installed, 0 to remove and 1 not upgraded.
Need to get 1739kB of archives.
After unpacking 5014kB of additional disk space will be used.
Do you want to continue [Y/n]?
■ffmpegとvlcのダウンロード
debian:~# cd /usr/src/
debian:/usr/src# ls
ivtv.tar.bz2 linux linux-headers-2.6.18-5 linux-headers-2.6.18-5-686 linux-kbuild-2.6.18 modules
debian:/usr/src# svn checkout svn://svn.mplayerhq.hu/ffmpeg/trunk ffmpeg
debian:/usr/src# wget "http://download.videolan.org/pub/videolan/vlc/0.8.6d/vlc-0.8.6d.tar.gz"
debian:/usr/src# tar zxvf vlc-0.8.6d.tar.gz
以下いろんなものが必要ですのでひたすら作業します。
debian:/usr/src# wget "http://liba52.sourceforge.net/files/a52dec-0.7.4.tar.gz"
debian:/usr/src# tar zxvf a52dec-0.7.4.tar.gz
debian:/usr/src# cd a52dec-0.7.4
debian:/usr/src/a52dec-0.7.4# ls
AUTHORS COPYING ChangeLog HISTORY INSTALL Makefile.am Makefile.in NEWS README TODO acinclude.m4 aclocal.m4 autotools bootstrap configure configure.in doc include liba52 libao src test vc++
debian:/usr/src/a52dec-0.7.4# ./configure
debian:/usr/src/a52dec-0.7.4# make
debian:/usr/src/a52dec-0.7.4# make install
debian:/usr/src# wget "http://downloads.sourceforge.net/faac/faac-1.25.tar.gz"
debian:/usr/src# tar zxvf faac-1.25.tar.gz
debian:/usr/src# cd faac
debian:/usr/src/faac# nkf -d bootstrap > bootstrap2
debian:/usr/src/faac# mv configure.in configure.in_orig
debian:/usr/src/faac# nkf -d configure.in_orig > configure.in
debian:/usr/src/faac# chmod +x bootstrap2
debian:/usr/src/faac# ./bootstrap2
./bootstrap2: line 3: aclocal: command not found
./bootstrap2: line 4: autoheader: command not found
./bootstrap2: line 8: libtoolize: command not found
./bootstrap2: line 10: automake: command not found
./bootstrap2: line 11: autoconf: command not found
エラー発生
■automakeを入れる
debian:/usr/src/faac# apt-get install automake
debian:/usr/src/faac# ./bootstrap2
configure.in:10: warning: underquoted definition of MY_DEFINE
configure.in:10: run info '(automake)Extending aclocal'
configure.in:10: or see http://sources.redhat.com/automake/automake.html#Extending-aclocal
configure.in:16: warning: macro `AM_PROG_LIBTOOL' not found in library
./bootstrap2: line 8: libtoolize: command not found
configure.in:4: installing `./missing'
configure.in:4: installing `./install-sh'
common/mp4v2/Makefile.am:5: Libtool library used but `LIBTOOL' is undefined
common/mp4v2/Makefile.am:5: The usual way to define `LIBTOOL' is to add `AC_PROG_LIBTOOL'
common/mp4v2/Makefile.am:5: to `configure.in' and run `aclocal' and `autoconf' again.
common/mp4v2/Makefile.am:5: If `AC_PROG_LIBTOOL' is in `configure.in', make sure
common/mp4v2/Makefile.am:5: its definition is in aclocal's search path.
common/mp4v2/Makefile.am: installing `./depcomp'
libfaac/Makefile.am:1: Libtool library used but `LIBTOOL' is undefined
libfaac/Makefile.am:1: The usual way to define `LIBTOOL' is to add `AC_PROG_LIBTOOL'
libfaac/Makefile.am:1: to `configure.in' and run `aclocal' and `autoconf' again.
libfaac/Makefile.am:1: If `AC_PROG_LIBTOOL' is in `configure.in', make sure
libfaac/Makefile.am:1: its definition is in aclocal's search path.
configure.in:16: error: possibly undefined macro: AM_PROG_LIBTOOL
If this token and others are legitimate, please use m4_pattern_allow.
See the Autoconf documentation.
debian:/usr/src/faac# ./configure
configure: creating ./config.status
config.status: creating common/Makefile
config.status: error: cannot find input file: common/mp4v2/Makefile.in
またもやエラー発生とおもったらconfigureの前ですでにエラーが・・・
いろいろさまよった挙句、先人のお知恵を拝借させて頂きました。
MY_DEFINEをかぎ括弧で括るといいようです。
debian:/usr/src/faac# vi configure.in
AC_DEFUN([MY_DEFINE], [ AC_DEFINE($1, 1, [define if needed]) ])
debian:/usr/src/faac# ./bootstrap2
configure.in:16: warning: macro `AM_PROG_LIBTOOL' not found in library
./bootstrap2: line 8: libtoolize: command not found
common/mp4v2/Makefile.am:5: Libtool library used but `LIBTOOL' is undefined
common/mp4v2/Makefile.am:5: The usual way to define `LIBTOOL' is to add `AC_PROG_LIBTOOL'
common/mp4v2/Makefile.am:5: to `configure.in' and run `aclocal' and `autoconf' again.
common/mp4v2/Makefile.am:5: If `AC_PROG_LIBTOOL' is in `configure.in', make sure
common/mp4v2/Makefile.am:5: its definition is in aclocal's search path.
libfaac/Makefile.am:1: Libtool library used but `LIBTOOL' is undefined
libfaac/Makefile.am:1: The usual way to define `LIBTOOL' is to add `AC_PROG_LIBTOOL'
libfaac/Makefile.am:1: to `configure.in' and run `aclocal' and `autoconf' again.
libfaac/Makefile.am:1: If `AC_PROG_LIBTOOL' is in `configure.in', make sure
libfaac/Makefile.am:1: its definition is in aclocal's search path.
configure.in:16: error: possibly undefined macro: AM_PROG_LIBTOOL
If this token and others are legitimate, please use m4_pattern_allow.
See the Autoconf documentation.
再びエラーが・・・
■libtoolのインストール
apt-get install libtool
やっとエラーがなくなった。
debian:/usr/src/faac# ./configure
debian:/usr/src/faac# make
debian:/usr/src/faac# make install
■lameのインストール
http://downloads.sourceforge.net/lame/lame-3.97.tar.gz?modtime=1159107882&big_mirror=0
debian:/usr/src# tar zxvf lame-3.97.tar.gz
debian:/usr/src# cd lame-3.97
debian:/usr/src/lame-3.97# ./configure
debian:/usr/src/lame-3.97# make
debian:/usr/src/lame-3.97# make install
■libtheoraのインストール
debian:/usr/src# wget "http://downloads.xiph.org/releases/theora/libtheora-1.0beta2.tar.gz"
debian:/usr/src# tar zxvf libtheora-1.0beta2.tar.gz
debian:/usr/src# cd libtheora-1.0beta2
debian:/usr/src/libtheora-1.0beta2# ./configure
エラー発生
configure: WARNING: *** doxygen not found, API documentation will not be built
checking for python... true
checking for ld used by gcc... (cached) /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... (cached) yes
checking if the linker (/usr/bin/ld) is GNU ld... (cached) yes
checking for pkg-config... no
checking for Ogg... no
*** Could not run Ogg test program, checking why...
*** The test program failed to compile or link. See the file config.log for the
*** exact error that occured. This usually means Ogg was incorrectly installed
*** or that you have moved Ogg since it was installed.
configure: error:
libogg is required to build this package!
please see http://www.xiph.org/ for how to
obtain a copy.
■liboggのインストール
debian:/usr/src# wget "http://downloads.xiph.org/releases/ogg/libogg-1.1.3.tar.gz"
debian:/usr/src# tar zxvf libogg-1.1.3.tar.gz
debian:/usr/src# cd libogg-1.1.3
debian:/usr/src/libogg-1.1.3# ./configure
debian:/usr/src/libogg-1.1.3# make
debian:/usr/src/libogg-1.1.3# make install
■再び挑戦
debian:/usr/src/libtheora-1.0beta2# ./configure
------------------------------------------------------------------------
libtheora 1.0beta2: Automatic configuration OK.
General configuration:
Encoding support: ........... yes
Floating point support: ..... yes
Assembly optimization: ...... 32 bit x86
API Documentation: .......... no
Build example code: ......... yes
Installation paths:
libtheora: ................... /usr/local/lib
C header files: .............. /usr/local/include/theora
Documentation: ............... /usr/local/share/doc/libtheora
Building:
Type 'make' to compile libtheora.
Type 'make install' to install libtheora.
Type 'make check' to run test suite (Valgrind testing not enabled)
Example programs will be built but not installed.
------------------------------------------------------------------------
debian:/usr/src/libtheora-1.0beta2# make
debian:/usr/src/libtheora-1.0beta2# make install
■libvorbisのインストール
debian:/usr/src# wget "http://downloads.xiph.org/releases/vorbis/libvorbis-1.2.0.tar.gz"
debian:/usr/src# tar zxvf libvorbis-1.2.0.tar.gz
debian:/usr/src# cd libvorbis-1.2.0
debian:/usr/src/libvorbis-1.2.0# ./configure
debian:/usr/src/libvorbis-1.2.0# make
debian:/usr/src/libvorbis-1.2.0# make install
■ffmpegのインストール
./configure --enable-ffmpeg --enable-libmp3lame --enable-libfaac --enable-zlib --enable-liba52 --enable-libvorbis --enable-libtheora --enable-debug --enable-gpl --enable-pp
debian:/usr/src/ffmpeg# make
debian:/usr/src/ffmpeg# make install
■vlcのインストール
debian:/usr/src# cd vlc-0.8.6d
debian:/usr/src# ./configure --disable-x11 --disable-xvideo --disable-gtk --disable-sdl --enable-ffmpeg --with-ffmpeg-mp3lame --with-ffmpeg-zlib --enable-mad --enable-libdvbpsi --enable-a52 --disable-dvdplay --enable-dvdnav --enable-vorbis --enable-ogg --enable-theora --enable-mkv --enable-freetype --disable-cddax --disable-vcdx --enable-speex --enable-flac --enable-goom --enable-livedotcom --enable-caca --disable-skins2 --enable-modplug --enable-debug --enable-gpl --enable-mp3lame --enable-pp --with-ffmpeg-tree=/usr/src/ffmpeg
■libmadが不足していたのでインストール
debian:/usr/src# wget "ftp://ftp.mars.org/pub/mpeg/libmad-0.15.1b.tar.gz"
debian:/usr/src# tar zxvf libmad-0.15.1b.tar.gz
debian:/usr/src# cd libmad-0.15.1b
debian:/usr/src/libmad-0.15.1b# ./configure
debian:/usr/src/libmad-0.15.1b# make
debian:/usr/src/libmad-0.15.1b# make install
■libmpeg2が不足していたのでインストール
debian:/usr/src# wget "http://libmpeg2.sourceforge.net/files/mpeg2dec-0.4.1.tar.gz"
debian:/usr/src# tar zxvf mpeg2dec-0.4.1.tar.gz
debian:/usr/src# cd mpeg2dec-0.4.1
debian:/usr/src/mpeg2dec-0.4.1# ./configure
debian:/usr/src/mpeg2dec-0.4.1# make
debian:/usr/src/mpeg2dec-0.4.1# make install
■freetypeが不足していたのでインストール
debian:/usr/src# wget "http://download.savannah.gnu.org/releases/freetype/freetype-2.3.5.tar.gz"
debian:/usr/src# tar zxvf freetype-2.3.5.tar.gz
debian:/usr/src# cd freetype-2.3.5
debian:/usr/src/freetype-2.3.5# ./configure
debian:/usr/src/freetype-2.3.5# make
debian:/usr/src/freetype-2.3.5# make install
これでconfigureは通過するようになった。
しかし、makeでエラーが発生したのでしかたなくflacをいれてみた。
debian:/usr/src# wget "http://downloads.sourceforge.net/flac/flac-1.2.1.tar.gz?modtime=1189961849&big_mirror=0"
debian:/usr/src# tar zxvf flac-1.2.1.tar.gz
debian:/usr/src# cd flac-1.2.1
debian:/usr/src/flac-1.2.1# ./configure
debian:/usr/src/flac-1.2.1# make
debian:/usr/src/flac-1.2.1# make install
make失敗。→原因さっぱりわからず。→ソースを修正したがそれでも次にエラーが発生
ソースの修正は、以下を参照してください。(外国の方が修正していました。)
I got it work in this way "p_sys->oc->pb = &p_sys->io;"
で、このあとvlcのバージョンを色々と変えてみるも全くうまくいきませんでした。
(aptだとすんなりはいりますけどね。汗。)
ところが、思わぬ事態が・・・
なんと、以下のページによると自分のいれたmythtvではmythstreamtvは既にサポートされていないとのことです。
http://www.mythtv.org/wiki/index.php/MythStreamTV
とほほ・・・
mythwebで録画したファイルをダウンロードしようとしたのですが、ファイルが存在していないだの文字化けが発生していたので修正することにしました。
■リンクの張替え
debian:/var/www/mythweb/data# rm recordings
debian:/var/www/mythweb/data# ln -s /var/video recordings
debian:/var/www/mythweb/data# ls -la
total 12
drwxr-xr-x 2 root root 4096 Jan 9 01:08 .
drwxr-xr-x 7 root root 4096 Jan 8 17:18 ..
-rw-r--r-- 1 root root 180 Sep 6 19:54 .htaccess
lrwxrwxrwx 1 root root 30 Jan 8 15:46 cache -> /var/cache/mythweb/image_cache
lrwxrwxrwx 1 root root 14 Jan 8 15:46 music -> /var/lib/music
lrwxrwxrwx 1 root root 10 Jan 9 01:08 recordings -> /var/video
lrwxrwxrwx 1 root root 30 Jan 8 15:46 tv_icons -> /var/cache/mythweb/image_cache
lrwxrwxrwx 1 root root 18 Jan 8 15:46 video -> /var/lib/mythvideo
lrwxrwxrwx 1 root root 18 Jan 8 15:46 video_covers -> /var/lib/mythvideo
■apache2の設定の見直し
debian:/var/www/mythweb/data# /etc/init.d/apache2 restart
debian:/var/www/mythweb/data# vi /etc/apache2/apache2.conf
#LanguagePriority en ca cs da de el eo es et fr he hr it ja ko ltz nl nn no pl pt pt-BR ru sv zh-CN zh-TW
LanguagePriority ja en ca cs da de el eo es et fr he hr it ko ltz nl nn no pl pt pt-BR ru sv zh-CN zh-TW
■文字化け対策
Jcodeモジュールを入れておきます。で、以下のファイルを編集します。
debian:/var/www/mythweb/modules/stream# vi handler.pl
以下の感じで修正します。
use Jcode;
$name .= $suffix;
# SJIS
$name = jcode($name)->sjis;
続きはまた今度。
その5までと、他のmythtvの設定が終わり問題なさそうなので、続いてmythwebをやってみましたよ。
■http://localhost/mythweb/にアクセスしたがエラーがでたのでapache2の設定を変更
rootディレクトリを/var/wwwに変更
■以下のエラーが表示された。
Database Access Denied
You are most likely receiving this message because you
have failed to configure mythweb's database login info.
Please see .htaccess for instructions.
■.htaccessの設定を変更
debian:/etc/init.d# cd /var/www
debian:/var/www# ls
analog apache2-default mythweb
debian:/var/www# ls -la
total 12
drwxr-xr-x 3 root root 4096 Jan 8 15:46 .
drwxr-xr-x 16 root root 4096 Jan 8 11:19 ..
lrwxrwxrwx 1 root root 24 Jan 7 19:51 analog -> /usr/share/analog/images
drwxr-xr-x 2 root root 4096 Jan 7 19:51 apache2-default
lrwxrwxrwx 1 root root 25 Jan 8 15:46 mythweb -> /usr/share/mythtv/mythweb
debian:/var/www# pwd
/var/www
debian:/var/www# cd mythweb
debian:/var/www/mythweb# ls
data includes js modules mythweb.php mythweb.pl skins
debian:/var/www/mythweb# ls -la
total 44
drwxr-xr-x 7 root root 4096 Jan 8 15:46 .
drwxr-xr-x 7 root root 4096 Jan 8 15:46 ..
lrwxrwxrwx 1 root root 28 Jan 8 15:46 .htaccess -> /etc/mythtv/mythweb-htaccess
-rw-r--r-- 1 root root 6294 Sep 6 19:54 .htaccess.dist
drwxr-xr-x 2 root root 4096 Jan 8 15:46 data
drwxr-xr-x 3 root root 4096 Jan 8 15:46 includes
drwxr-xr-x 2 root root 4096 Jan 8 15:46 js
drwxr-xr-x 12 root root 4096 Jan 8 15:46 modules
-rw-r--r-- 1 root root 938 Sep 6 19:54 mythweb.php
-rwxr-xr-x 1 root root 2523 Sep 6 19:54 mythweb.pl
drwxr-xr-x 6 root root 4096 Jan 8 15:46 skins
setenv db_password "ozqweeww"
の部分を適切なパスワードに変更する。
■番組情報の自動取得
debian:/var/log/mythtv# export EDITOR=vi
debian:/var/log/mythtv# crontab -e
以下を追加
30 03 * * * /usr/bin/mythfilldatabase > /var/log/mythtv/mythfilldatabase.log 2>&1
しかし、これは動作していませんでした。
コマンドラインからmythfilldatabaseを実行すればよいのでしょうけど、毎日やってては^^;
どうも、xmltvだけはaptから入れないでソースから入れた方がいいような。
(さらにいうと、mythfilldatabaseを実行してもループしてます^^;)
続きはまた今度。
■xmltvのインストール
debian:~# apt-get install xmltv
Reading package lists... Done
Building dependency tree... Done
The following extra packages will be installed:
libarchive-zip-perl libcompress-zlib-perl libconvert-binhex-perl libcrypt-ssleay-perl
libdate-manip-perl libfcgi-perl libhtml-tableextract-perl
libhttp-cache-transparent-perl libio-socket-ssl-perl libio-stringy-perl
libmailtools-perl libmime-lite-perl libmime-perl libnet-ssleay-perl libossp-uuid-perl
libossp-uuid15 libsoap-lite-perl libterm-readkey-perl libtimedate-perl
libtk-tablematrix-perl libwww-mechanize-perl libxml-libxml-common-perl
libxml-libxml-perl libxml-namespacesupport-perl libxml-parser-perl libxml-sax-perl
libxml-twig-perl libxml-writer-perl libxmltv-perl perl-tk xmltv-gui xmltv-util
Suggested packages:
libhtml-element-extended-perl uuid libunicode-map8-perl libunicode-string-perl
liblog-tracemessages-perl
Recommended packages:
libnet-jabber-perl libtie-ixhash-perl libxml-xpath-perl libterm-progressbar-perl
liblingua-preferred-perl libtext-kakasi-perl
The following NEW packages will be installed:
libarchive-zip-perl libcompress-zlib-perl libconvert-binhex-perl libcrypt-ssleay-perl
libdate-manip-perl libfcgi-perl libhtml-tableextract-perl
libhttp-cache-transparent-perl libio-socket-ssl-perl libio-stringy-perl
libmailtools-perl libmime-lite-perl libmime-perl libnet-ssleay-perl libossp-uuid-perl
libossp-uuid15 libsoap-lite-perl libterm-readkey-perl libtimedate-perl
libtk-tablematrix-perl libwww-mechanize-perl libxml-libxml-common-perl
libxml-libxml-perl libxml-namespacesupport-perl libxml-parser-perl libxml-sax-perl
libxml-twig-perl libxml-writer-perl libxmltv-perl perl-tk xmltv xmltv-gui xmltv-util
0 upgraded, 33 newly installed, 0 to remove and 1 not upgraded.
Need to get 6760kB of archives.
After unpacking 22.4MB of additional disk space will be used.
Do you want to continue [Y/n]?
■mythtvユーザでログインしてmythtv-setupを実行
■チャンネル設定がうまくいかないようなのでlibtext-kakasi-perlを入れる
debian:~# apt-get install libtext-kakasi-perl
Reading package lists... Done
Building dependency tree... Done
The following extra packages will be installed:
kakasi-dic libkakasi2
The following NEW packages will be installed:
kakasi-dic libkakasi2 libtext-kakasi-perl
0 upgraded, 3 newly installed, 0 to remove and 1 not upgraded.
Need to get 958kB of archives.
After unpacking 2458kB of additional disk space will be used.
Do you want to continue [Y/n]?
■php5-mysqlのインストール
debian:/etc/init.d# /etc/init.d/apache2 restart
Forcing reload of web server (apache2)... waiting .
debian:/etc/init.d# apt-get install php5-mysql
続きはまた今度
■mythtvのインストール
debian:~# apt-get install mythtv
Reading package lists... Done
Building dependency tree... Done
The following extra packages will be installed:
gawk libavcodeccvs51 libavutilcvs49 libfaac0 libfaad0 libfame-0.9 libglib1.2 libgtk1.2
libgtk1.2-common liblame0 libmagick9 libmjpegtools0 libmyth-0.20.2 libpostproccvs51
libpvm3 libqt3-mt-mysql libquicktime0 libx264-54 libxvidcore4 mythtv-backend
mythtv-common mythtv-database mythtv-frontend pwgen transcode ttf-freefont
Suggested packages:
libwmf-bin mythweb mythmusic mythweather mythgallery mythdvd mythvideo mythgame
libdvdcss xvid4conf
Recommended packages:
pvm mythtv-doc mythtv-themes xmltv-util sox mjpegtools toolame transcode-doc
x-ttcidfont-conf
The following NEW packages will be installed:
gawk libavcodeccvs51 libavutilcvs49 libfaac0 libfaad0 libfame-0.9 libglib1.2 libgtk1.2
libgtk1.2-common liblame0 libmagick9 libmjpegtools0 libmyth-0.20.2 libpostproccvs51
libpvm3 libqt3-mt-mysql libquicktime0 libx264-54 libxvidcore4 mythtv mythtv-backend
mythtv-common mythtv-database mythtv-frontend pwgen transcode ttf-freefont
0 upgraded, 27 newly installed, 0 to remove and 1 not upgraded.
Need to get 24.3MB/26.1MB of archives.
After unpacking 65.2MB of additional disk space will be used.
Do you want to continue [Y/n]? y
WARNING: The following packages cannot be authenticated!
libavutilcvs49 libfaac0 libfaad0 liblame0 libx264-54 libxvidcore4 libavcodeccvs51
libfame-0.9 libmjpegtools0 libmyth-0.20.2 libpostproccvs51 mythtv-common
mythtv-database mythtv-frontend transcode mythtv-backend mythtv
Install these packages without verification [y/N]? y
Get:1 http://cdn.debian.or.jp etch/main gawk 1:3.1.5.dfsg-4 [694kB]
Media change: please insert the disc labeled
'Debian GNU/Linux 4.0 r2 _Etch_ - Official i386 NETINST Binary-1 20080103-00:44'
in the drive '/cdrom/' and press enter
■途中でこんなんがでてくる
qqqqqqqqqqqqqqqqqqqqqqqqqqu Configuring mythtv-database tqqqqqqqqqqqqqqqqqqqqqqqqqqk
x This information will be used to create a database and user for MythTV. x
x x
x Unless you have explicitly changed the password on the MySQL server, leave this x
x blank. x
x x
x What is the password for the MySQL administrator account 'root': x
x x
x _________________________________________________________________________________ x
x x
x
x
lqqqqqqqqqqqqqqqqqqqqqqqqqqqu Configuring mythtv-backend tqqqqqqqqqqqqqqqqqqqqqqqqqqqqk
x x
x mythtv-setup must be run in order to complete MythTV installation x
x x
x You must run mythtv-setup as a user in the 'mythtv' group in order to complete x
x mythtv configuration. Note that this program requires an X display, so you must x
x either login to an X session as a user in the 'mythtv' group, or otherwise arrange x
x for that user to have access to your X display. x
x x
x You must complete all four steps presented in the program. x
x x
x Once you have done this, you may start the backend by executing the following x
x command: x
x x
x sudo /etc/init.d/mythtv-backend start
■初期データベースの作成
debian:~# mysql -u root -p < /usr/share/mythtv/sql/mc.sql
debian:~# mysqlshow
mysqlshow: Access denied for user 'root'@'localhost' (using password: NO)
debian:~# mysqlshow -u root -p
Enter password:
+--------------------+
| Databases |
+--------------------+
| information_schema |
| mysql |
| mythconverg |
+--------------------+
mythconvergが表示されているのでOKです。
続きはまた今度。
■mysqlを入れるためにapt-lineの追加をします。
↓以下を追加
deb http://www.debian-multimedia.org etch main
debian:~# vi /etc/apt/sources.list
debian:~# apt-get update
■mysqlのインストール
debian:~# apt-get install mysql-server mysql-client mysql-devel
Reading package lists... Done
Building dependency tree... Done
E: Couldn't find package mysql-devel
debian:~# apt-get install mysql-server mysql-client
Reading package lists... Done
Building dependency tree... Done
The following extra packages will be installed:
libdbd-mysql-perl libdbi-perl libmysqlclient15off libnet-daemon-perl libplrpc-perl
mysql-client-5.0 mysql-common mysql-server-5.0
Suggested packages:
dbishell libcompress-zlib-perl tinyca
The following NEW packages will be installed:
libdbd-mysql-perl libdbi-perl libmysqlclient15off libnet-daemon-perl libplrpc-perl
mysql-client mysql-client-5.0 mysql-common mysql-server mysql-server-5.0
0 upgraded, 10 newly installed, 0 to remove and 1 not upgraded.
Need to get 35.3MB of archives.
After unpacking 91.7MB of additional disk space will be used.
Do you want to continue [Y/n]? y
■念のため再起動して動作しているか確認する
ebian:~# reboot
debian:~# mysqlshow
+--------------------+
| Databases |
+--------------------+
| information_schema |
| mysql |
+--------------------+
■mysqlのrootのパスワードを設定する。
(hogehogeの部分を適当な文字列に変更する。)
debian:~# mysql -u root
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 8
Server version: 5.0.32-Debian_7etch4-log Debian etch distribution
Type 'help;' or '\h' for help. Type '\c' to clear the buffer.
mysql> SET PASSWORD FOR root@localhost=PASSWORD('hogehoge');
Query OK, 0 rows affected (0.00 sec)
■パスワードの確認
コマンドプロンプトが表示されたらOKです。
debian:~# mysql -u root -p
Enter password:
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 10
Server version: 5.0.32-Debian_7etch4-log Debian etch distribution
Type 'help;' or '\h' for help. Type '\c' to clear the buffer.
mysql>
続きはまた今度
■Googleで色々調べてみた結果以下を実行してうまくいくとのことだったので実行。
debian:/usr/src/modules/ivtv/i2c-drivers# module-assistant
(UPDATEを実行後PREPAREを実行するとのことでした。)
Getting source for kernel version: 2.6.18-5-686
apt-get install linux-headers-2.6.18-5-686
Reading package lists... Done
Building dependency tree... Done
The following extra packages will be installed:
gcc-4.1 libssp0 linux-headers-2.6.18-5 linux-kbuild-2.6.18
Suggested packages:
gcc-4.1-doc gcc-4.1-locales libc6-dev-amd64 lib64gcc1 lib64ssp0
Recommended packages:
libc6-dev libmudflap0-dev
The following NEW packages will be installed:
gcc-4.1 libssp0 linux-headers-2.6.18-5 linux-headers-2.6.18-5-686 linux-kbuild-2.6.18
0 upgraded, 5 newly installed, 0 to remove and 0 not upgraded.
Need to get 0B/4078kB of archives.
After unpacking 27.4MB of additional disk space will be used.
Do you want to continue [Y/n]? y
CDを要求されるのでセットする。
The following extra packages will be installed:
g++ g++-4.1 gcc libc6-dev libstdc++6-4.1-dev linux-kernel-headers
Suggested packages:
gcc-4.1-doc lib64stdc++6 manpages-dev autoconf automake1.9 libtool flex bison gcc-doc
glibc-doc libstdc++6-4.1-doc
The following NEW packages will be installed:
build-essential g++ g++-4.1 gcc libc6-dev libstdc++6-4.1-dev linux-kernel-headers
0 upgraded, 7 newly installed, 0 to remove and 0 not upgraded.
Need to get 8855kB of archives.
After unpacking 38.3MB of additional disk space will be used.
Do you want to continue [Y/n]?
Reading database ... 90506 files and directories currently installed.)
Unpacking linux-kernel-headers (from .../linux-kernel-headers_2.6.18-7_i386.deb) ...
Selecting previously deselected package libc6-dev.
Unpacking libc6-dev (from .../libc6-dev_2.3.6.ds1-13etch4_i386.deb) ...
Selecting previously deselected package gcc.
Unpacking gcc (from .../gcc_4%3a4.1.1-15_i386.deb) ...
Selecting previously deselected package libstdc++6-4.1-dev.
Unpacking libstdc++6-4.1-dev (from .../libstdc++6-4.1-dev_4.1.1-21_i386.deb) ...
Selecting previously deselected package g++-4.1.
Unpacking g++-4.1 (from .../g++-4.1_4.1.1-21_i386.deb) ...
Selecting previously deselected package g++.
Unpacking g++ (from .../g++_4%3a4.1.1-15_i386.deb) ...
Selecting previously deselected package build-essential.
Unpacking build-essential (from .../build-essential_11.3_i386.deb) ...
Setting up linux-kernel-headers (2.6.18-7) ...
Setting up libc6-dev (2.3.6.ds1-13etch4) ...
Setting up gcc (4.1.1-15) ...
Setting up libstdc++6-4.1-dev (4.1.1-21) ...
Setting up g++-4.1 (4.1.1-21) ...
Setting up g++ (4.1.1-15) ...
Setting up build-essential (11.3) ...
Done!
Press Return to continue...
メニューにもどるので抜けます。
再びmake
debian:/usr/src/modules/ivtv/i2c-drivers# make
make -C /lib/modules/2.6.18-5-686/build M=/usr/src/modules/ivtv/i2c-drivers modules
make[1]: Entering directory `/usr/src/linux-headers-2.6.18-5-686'
CC [M] /usr/src/modules/ivtv/i2c-drivers/saa717x.o
CC [M] /usr/src/modules/ivtv/i2c-drivers/saa7115.o
CC [M] /usr/src/modules/ivtv/i2c-drivers/tvaudio.o
/usr/src/modules/ivtv/i2c-drivers/tvaudio.c:1396:5: warning: "MMM" is not defined
Building modules, stage 2.
MODPOST
CC /usr/src/modules/ivtv/i2c-drivers/saa7115.mod.o
LD [M] /usr/src/modules/ivtv/i2c-drivers/saa7115.ko
CC /usr/src/modules/ivtv/i2c-drivers/saa717x.mod.o
LD [M] /usr/src/modules/ivtv/i2c-drivers/saa717x.ko
CC /usr/src/modules/ivtv/i2c-drivers/tvaudio.mod.o
LD [M] /usr/src/modules/ivtv/i2c-drivers/tvaudio.ko
make[1]: Leaving directory `/usr/src/linux-headers-2.6.18-5-686'
うまく逝きましたね。(゚∀゚ )
■コンパイルした後の様子です。
debian:/usr/src/modules/ivtv/i2c-drivers# ls -la
total 444
drwxr-xr-x 3 root root 4096 Jan 7 23:51 .
drwxr-xr-x 5 root root 4096 Jan 7 2007 ..
-rw-r--r-- 1 root root 222 Jan 7 23:51 .saa7115.ko.cmd
-rw-r--r-- 1 root root 12520 Jan 7 23:51 .saa7115.mod.o.cmd
-rw-r--r-- 1 root root 14866 Jan 7 23:51 .saa7115.o.cmd
-rw-r--r-- 1 root root 222 Jan 7 23:51 .saa717x.ko.cmd
-rw-r--r-- 1 root root 12520 Jan 7 23:51 .saa717x.mod.o.cmd
-rw-r--r-- 1 root root 14866 Jan 7 23:51 .saa717x.o.cmd
drwxr-xr-x 2 root root 4096 Jan 7 23:51 .tmp_versions
-rw-r--r-- 1 root root 222 Jan 7 23:51 .tvaudio.ko.cmd
-rw-r--r-- 1 root root 12520 Jan 7 23:51 .tvaudio.mod.o.cmd
-rw-r--r-- 1 root root 15101 Jan 7 23:51 .tvaudio.o.cmd
-rw-r--r-- 1 root staff 404 Dec 17 2006 Kbuild
-rw-r--r-- 1 root root 685 Jan 7 2007 Makefile
-rw-r--r-- 1 root root 430 Nov 27 2005 Makefile2.4
-rw-r--r-- 1 root root 0 Jan 7 23:51 Module.symvers
-rw-r--r-- 1 root staff 43113 Nov 6 2006 saa7115.c
-rw-r--r-- 1 root root 17718 Jan 7 23:51 saa7115.ko
-rw-r--r-- 1 root root 1336 Jan 7 23:51 saa7115.mod.c
-rw-r--r-- 1 root root 3252 Jan 7 23:51 saa7115.mod.o
-rw-r--r-- 1 root root 15052 Jan 7 23:51 saa7115.o
-rw-r--r-- 1 root root 42141 Nov 10 2006 saa717x.c
-rw-r--r-- 1 root root 21267 Jan 7 23:51 saa717x.ko
-rw-r--r-- 1 root root 1256 Jan 7 23:51 saa717x.mod.c
-rw-r--r-- 1 root root 3188 Jan 7 23:51 saa717x.mod.o
-rw-r--r-- 1 root root 18680 Jan 7 23:51 saa717x.o
-rw-r--r-- 1 root staff 56991 Mar 31 2007 tvaudio.c
-rw-r--r-- 1 root root 28529 Jan 7 23:51 tvaudio.ko
-rw-r--r-- 1 root root 1779 Jan 7 23:51 tvaudio.mod.c
-rw-r--r-- 1 root root 4148 Jan 7 23:51 tvaudio.mod.o
-rw-r--r-- 1 root root 24988 Jan 7 23:51 tvaudio.o
■*.ko をカーネルモジュールへコピーします。
debian:/usr/src/modules/ivtv/i2c-drivers# chmod 744 saa7115.ko tvaudio.ko
debian:/usr/src/modules/ivtv/i2c-drivers#cp -a saa7115.ko tvaudio.ko /lib/modules/$(uname -r)/kernel/drivers/media/video/
■ファームウェアのインストール
debian:/lib/firmware# mkdir /tmp/firmware
debian:/lib/firmware# cd /tmp/firmware/
debian:/tmp/firmware# wget http://dl.ivtvdriver.org/ivtv/firmware/firmware.tar.gz
--23:58:38-- http://dl.ivtvdriver.org/ivtv/firmware/firmware.tar.gz
=> `firmware.tar.gz'
Resolving dl.ivtvdriver.org... 130.133.35.29
Connecting to dl.ivtvdriver.org|130.133.35.29|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 124,478 (122K) [application/x-gzip]
100%[==============================================>] 124,478 54.21K/s
23:58:42 (54.14 KB/s) - `firmware.tar.gz' saved [124478/124478]
debian:/tmp/firmware# tar zxvf firmware.tar.gz
debian:/tmp/firmware# cp -a v4l-cx2341x-dec.fw v4l-cx2341x-enc.fw v4l-cx2341x-init.mpg /lib/firmware
debian:/tmp# rm -rf firmware/
debian:/tmp# depmod -a
debian:/tmp# modprobe ivtv
┐(´д`)┌
■make installし忘れていたのでreboot後にインストールしますた。
debian:/usr/src/modules/ivtv/i2c-drivers# make install
make -C /lib/modules/2.6.18-5-686/build M=/usr/src/modules/ivtv/i2c-drivers modules
make[1]: Entering directory `/usr/src/linux-headers-2.6.18-5-686'
Building modules, stage 2.
MODPOST
make[1]: Leaving directory `/usr/src/linux-headers-2.6.18-5-686'
make INSTALL_MOD_PATH= INSTALL_MOD_DIR=kernel/drivers/media/video KERNELRELEASE=2.6.18-5-686 \
-C /lib/modules/2.6.18-5-686/build M=/usr/src/modules/ivtv/i2c-drivers modules_install
make[1]: Entering directory `/usr/src/linux-headers-2.6.18-5-686'
INSTALL /usr/src/modules/ivtv/i2c-drivers/saa7115.ko
INSTALL /usr/src/modules/ivtv/i2c-drivers/saa717x.ko
INSTALL /usr/src/modules/ivtv/i2c-drivers/tvaudio.ko
DEPMOD 2.6.18-5-686
make[1]: Leaving directory `/usr/src/linux-headers-2.6.18-5-686'
debian:/usr/src/modules/ivtv/i2c-drivers# depmod -a
debian:/usr/src/modules/ivtv/i2c-drivers# modprobe ivtv
■録画出来るか同化のテストを行います。
debian:/usr/src/modules/ivtv/i2c-drivers# v4l2-ctl -s ntsc-j
Standard set to 00002000
debian:/usr/src/modules/ivtv/i2c-drivers# ivtv-tune -tjapan-bcast -c 1
/dev/video0: 91.250 MHz
debian:/usr/src/modules/ivtv/i2c-drivers#cat /dev/video0 > test.mpg
test.mpgをWindowsにもっていって再生出来ていたら幸せです。
続きはまた今度。
現在、vinelinux4.1でmythtvを動かしているのですが、以前から興味があったdebianで試してみました。
なお、以下の内容は私の作業メモ的な内容ですので、悪魔でもご参考までにどうぞ。
使用しているキャプチャカードは、GV-MVP/RXです。
■認識しているかどうかチェック
→問題なさそうです。
debian:~# lspci
00:00.0 Host bridge: Intel Corporation 82845G/GL[Brookdale-G]/GE/PE DRAM Controller/Host-Hub Interface (rev 03)
00:01.0 PCI bridge: Intel Corporation 82845G/GL[Brookdale-G]/GE/PE Host-to-AGP Bridge (rev 03)
00:1d.0 USB Controller: Intel Corporation 82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) USB UHCI Controller #1 (rev 02)
00:1d.1 USB Controller: Intel Corporation 82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) USB UHCI Controller #2 (rev 02)
00:1d.7 USB Controller: Intel Corporation 82801DB/DBM (ICH4/ICH4-M) USB2 EHCI Controller (rev 02)
00:1e.0 PCI bridge: Intel Corporation 82801 PCI Bridge (rev 82)
00:1f.0 ISA bridge: Intel Corporation 82801DB/DBL (ICH4/ICH4-L) LPC Interface Bridge (rev 02)
00:1f.1 IDE interface: Intel Corporation 82801DB (ICH4) IDE Controller (rev 02)
00:1f.3 SMBus: Intel Corporation 82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) SMBus Controller (rev 02)
00:1f.5 Multimedia audio controller: Intel Corporation 82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) AC'97 Audio Controller (rev 02)
01:00.0 VGA compatible controller: nVidia Corporation NV17 [GeForce4 MX 440] (rev a3)
03:00.0 Multimedia video controller: Internext Compression Inc iTVC16 (CX23416) MPEG-2 Encoder (rev 01)
03:02.0 Ethernet controller: Intel Corporation 82540EM Gigabit Ethernet Controller (rev 02)
■SSHのインストール
→Windowsで作業したかったのでSSHで接続しようとしたら入っていないようだったのでインストールしました。debianをインストールするときに何か選択する必要があるのでしょうか!?
debian:~# apt-get install ssh
■aptlineの編集
→お約束ということらしいですね。
debian:~# vi /etc/apt/sources.list
deb http://ftp.de.debian.org/debian etch main contrib
↑
を追加しました。
■反映
debian:~# apt-get update
■ドライバ
→ドライバを入れます。
debian:~# apt-get install ivtv-modules-2.6-686 ivtv-source ivtv-utils
Reading package lists... Done
Building dependency tree... Done
The following extra packages will be installed:
debhelper dpatch gettext html2text intltool-debian ivtv-modules-2.6.18-5-686
libconfig-inifiles-perl libvideo-ivtv-perl module-assistant po-debconf
Suggested packages:
dh-make curl cvs gettext-doc build-essential
Recommended packages:
fakeroot patchutils perl-tk devscripts libmail-sendmail-perl libcompress-zlib-perl
The following NEW packages will be installed:
debhelper dpatch gettext html2text intltool-debian ivtv-modules-2.6-686
ivtv-modules-2.6.18-5-686 ivtv-source ivtv-utils libconfig-inifiles-perl
libvideo-ivtv-perl module-assistant po-debconf
0 upgraded, 13 newly installed, 0 to remove and 0 not upgraded.
Need to get 3553kB of archives.
After unpacking 10.5MB of additional disk space will be used.
Do you want to continue [Y/n]?
■再起動後確認
→どうやらうまくいっているような感じです!?
debian:/usr/local/src# lsmod
Module Size Used by
ppdev 8676 0
lp 11012 0
button 6672 0
ac 5188 0
battery 9636 0
ipv6 226272 19
dm_snapshot 15552 0
dm_mirror 19152 0
dm_mod 50232 2 dm_snapshot,dm_mirror
loop 15048 0
tsdev 7520 0
snd_intel8x0 30332 0
snd_ac97_codec 83104 1 snd_intel8x0
snd_ac97_bus 2400 1 snd_ac97_codec
snd_pcm_oss 38368 0
snd_mixer_oss 15200 1 snd_pcm_oss
ivtv 155472 0
snd_pcm 68676 3 snd_intel8x0,snd_ac97_codec,snd_pcm_oss
firmware_class 9600 1 ivtv
i2c_algo_bit 8424 1 ivtv
snd_timer 20996 1 snd_pcm
cx2341x 10308 1 ivtv
snd 47012 6 snd_intel8x0,snd_ac97_codec,snd_pcm_oss,snd_mixer_oss,snd_pcm,snd_timer
psmouse 35016 0
i2c_i801 7468 0
floppy 53156 0
parport_pc 32132 1
parport 33256 3 ppdev,lp,parport_pc
tveeprom 13840 1 ivtv
videodev 21120 1 ivtv
v4l1_compat 12036 2 ivtv,videodev
v4l2_common 20448 3 ivtv,cx2341x,videodev
serio_raw 6660 0
i2c_core 19680 4 ivtv,i2c_algo_bit,i2c_i801,tveeprom
pcspkr 3072 0
rtc 12372 0
soundcore 9248 1 snd
snd_page_alloc 9640 2 snd_intel8x0,snd_pcm
shpchp 33024 0
pci_hotplug 28704 1 shpchp
intel_agp 22204 1
agpgart 29896 1 intel_agp
evdev 9088 1
ext3 119240 1
jbd 52456 1 ext3
mbcache 8356 1 ext3
ide_cd 36064 0
cdrom 32544 1 ide_cd
ide_disk 14848 3
piix 9444 0 [permanent]
e1000 108480 0
generic 4868 0 [permanent]
ide_core 110504 4 ide_cd,ide_disk,piix,generic
ehci_hcd 28136 0
uhci_hcd 21164 0
usbcore 112644 3 ehci_hcd,uhci_hcd
thermal 13608 0
processor 28840 1 thermal
fan 4804 0
■各種ファイルのダウンロード
→以下の場所で行うこと(途中の説明では作業場所が間違っていたために、ファイルの移動とかを行っています。)
debian:/usr/src/modules/ivtv/i2c-drivers# pwd
/usr/src/modules/ivtv/i2c-drivers
ドライバは、かってに Linuxさんから取得しました。
すばらしいものをありがとうございました♪
他にもいろいろ有用なものがおいてあるみたいですよ。( ・∀・)イイ!
debian:/usr/local/src# wget "http://www.macmil.co.jp/macmil/dat/saa7115p.tar"
debian:/usr/local/src# wget "http://www.macmil.co.jp/macmil/dat/tvaudiop.tar"
debian:/usr/local/src# wget "http://www.macmil.co.jp/macmil/dat/kbuil082.tar"
debian:/usr/local/src# mkdir i2c-drivers
debian:/usr/local/src# ls
i2c-drivers kbuil082.tar saa7115p.tar tvaudiop.tar
debian:/usr/local/src# mv kbuil082.tar ./i2c-drivers/
debian:/usr/local/src# mv saa7115p.tar ./i2c-drivers/
debian:/usr/local/src# mv tvaudiop.tar ./i2c-drivers/
debian:/usr/local/src# ls
i2c-drivers
debian:/usr/local/src# cd i2c-drivers/
debian:/usr/local/src# cd i2c-drivers/
debian:/usr/local/src/i2c-drivers# ls
kbuil082.tar saa7115p.tar tvaudiop.tar
debian:/usr/local/src/i2c-drivers# mv saa7115p.tar saa7115.c
debian:/usr/local/src/i2c-drivers# mv tvaudiop.tar tvaudio.c
debian:/usr/local/src/i2c-drivers# mv kbuil082.tar Kbuild
debian:/usr/local/src/i2c-drivers# cd /usr/src/
debian:/usr/src# ls
ivtv.tar.bz2
debian:/usr/src# ls -la
total 128
drwxrwsr-x 2 root src 4096 Jan 7 21:45 .
drwxr-xr-x 11 root root 4096 Jan 7 19:50 ..
-rw-r--r-- 1 root root 118255 Jan 7 2007 ivtv.tar.bz2
debian:/usr/src# tar jxvf ivtv.tar.bz2
modules/
modules/ivtv/
modules/ivtv/driver/
modules/ivtv/driver/Kbuild
modules/ivtv/driver/Makefile
modules/ivtv/driver/Makefile2.4
modules/ivtv/driver/ivtv-audio.c
modules/ivtv/driver/ivtv-audio.h
modules/ivtv/driver/ivtv-cards.c
modules/ivtv/driver/ivtv-cards.h
modules/ivtv/driver/ivtv-compat.h
modules/ivtv/driver/ivtv-controls.c
modules/ivtv/driver/ivtv-controls.h
modules/ivtv/driver/ivtv-driver.c
modules/ivtv/driver/ivtv-driver.h
modules/ivtv/driver/ivtv-fileops.c
modules/ivtv/driver/ivtv-fileops.h
modules/ivtv/driver/ivtv-firmware.c
modules/ivtv/driver/ivtv-firmware.h
modules/ivtv/driver/ivtv-gpio.c
modules/ivtv/driver/ivtv-gpio.h
modules/ivtv/driver/ivtv-i2c.c
modules/ivtv/driver/ivtv-i2c.h
modules/ivtv/driver/ivtv-ioctl.c
modules/ivtv/driver/ivtv-ioctl.h
modules/ivtv/driver/ivtv-irq.c
modules/ivtv/driver/ivtv-irq.h
modules/ivtv/driver/ivtv-kthreads.c
modules/ivtv/driver/ivtv-kthreads.h
modules/ivtv/driver/ivtv-mailbox.c
modules/ivtv/driver/ivtv-mailbox.h
modules/ivtv/driver/ivtv-osd.c
modules/ivtv/driver/ivtv-osd.h
modules/ivtv/driver/ivtv-queue.c
modules/ivtv/driver/ivtv-queue.h
modules/ivtv/driver/ivtv-streams.c
modules/ivtv/driver/ivtv-streams.h
modules/ivtv/driver/ivtv-svnrelease.h
modules/ivtv/driver/ivtv-svnversion.h
modules/ivtv/driver/ivtv-svnversion.h.tmp
modules/ivtv/driver/ivtv-vbi.c
modules/ivtv/driver/ivtv-vbi.h
modules/ivtv/driver/ivtv-version.h
modules/ivtv/driver/ivtv-video.c
modules/ivtv/driver/ivtv-video.h
modules/ivtv/driver/ivtv-yuv.c
modules/ivtv/driver/ivtv-yuv.h
modules/ivtv/driver/ivtv.h
modules/ivtv/i2c-drivers/
modules/ivtv/i2c-drivers/Kbuild
modules/ivtv/i2c-drivers/Makefile
modules/ivtv/i2c-drivers/Makefile2.4
modules/ivtv/i2c-drivers/saa717x.c
modules/ivtv/debian/
modules/ivtv/debian/changelog
modules/ivtv/debian/control
modules/ivtv/debian/compat
modules/ivtv/debian/control.modules.in
modules/ivtv/debian/rules
modules/ivtv/debian/copyright
debian:/usr/src# ls
ivtv.tar.bz2 modules
debian:/usr/src/modules/ivtv/i2c-drivers# mv /usr/local/src/i2c-drivers/saa7115.c ./
debian:/usr/src/modules/ivtv/i2c-drivers# mv /usr/local/src/i2c-drivers/tvaudio.c ./
debian:/usr/src/modules/ivtv/i2c-drivers# mv /usr/local/src/i2c-drivers/Kbuild ./
debian:/usr/src/modules/ivtv/i2c-drivers# ls
Kbuild Makefile Makefile2.4 saa7115.c saa717x.c tvaudio.c
debian:/usr/src/modules/ivtv/i2c-drivers# ls -la
total 168
drwxr-xr-x 2 root root 4096 Jan 7 23:36 .
drwxr-xr-x 5 root root 4096 Jan 7 2007 ..
-rw-r--r-- 1 root staff 404 Dec 17 2006 Kbuild
-rw-r--r-- 1 root root 685 Jan 7 2007 Makefile
-rw-r--r-- 1 root root 430 Nov 27 2005 Makefile2.4
-rw-r--r-- 1 root staff 43113 Nov 6 2006 saa7115.c
-rw-r--r-- 1 root root 42141 Nov 10 2006 saa717x.c
-rw-r--r-- 1 root staff 56991 Mar 31 2007 tvaudio.c
■make
→失敗してしまいますた。
debian:/usr/src/modules/ivtv/i2c-drivers# make
make -C /lib/modules/2.6.18-5-686/build M=/usr/src/modules/ivtv/i2c-drivers modules
make: *** /lib/modules/2.6.18-5-686/build: No such file or directory. Stop.
make: *** [all] Error 2
続きはまた今度。
criticalと表示されていたんですが、よーく英語を読んでみると
「危ないから変えたほうがいいんじゃないの? 一応まだつかえるけどさ」ってことでした。
で、じゃんぱらさんでHDDの型番を検索してみると、( ゚∀)キタ!!( ゚∀゚ )キタ━━━
あるじゃありませんか~♪
さっそく購入してしまいましたよ。
でも、ここで問題が・・・
どちらのHDDが壊れていたのかわかんないんですよねぇ。
criticalっていうのはそんなもんなんでしょうか。完全に壊れてしまえばどちらのHDDが死んでいるかわかるんでしょうか。何分初めてのことなのでよくわかりません。いろいろRAIDカード機能を試してみたのですがどこにも載っていなかったですよね。
で、新しいHDDをつけてみたのですが、offlineになってしまいました^^;
調べてみるとofflineっていうのはcriticalよりも悪い状態でarrayとして認識していないことらしいとのこと。
( -人-).。oO(・・・・・・)
この状態だとリビルドしようとしてもしてくれません。泣。
とりあえず目標としては、criticalでリビルド可能な状態に変更していろいろ接続やらなにやら試しました。試行錯誤すること30分、ようやくリビルドが始まりました^^;
120GBのミラーリングをリビルドするのに要した時間は30分程度でしょうか。まぁ、許せる時間ではありますねぇ。
しかし、RAIDも構成時には新品で売ってたHDDも2年もすると店で買えなくなってしまうので問題がありますね。RAID(ミラーリング)を組むときは同じ容量のものを3つ以上買っておくのがいいのかも。
1年位前に初めてRAID1(ミラーリング)に挑戦して今に至るのですが、
ついにどちらかのHDDが逝ったようです・・・
まぁ、その前から兆候はあったんです。明らかに変な音が鳴っていました。
やばいかなぁと思いつつ使っていたのですが、昨日ついに起動するときにメッセージがでました。
「critical」( ゚∀)キタ!!( ゚∀゚ )キタ━━━
で、ディスクを交換しようと思ったのですが同じ型番のディスクはもう新品では売っていませんでした。
ヤフオクで狙うしかないかなぁ。
もう耐えられなくなってきたので、ノートPCにメモリー増設してしまいました。^^;
最近、Vistaが発売された影響で需要が増えた?せいなのか以前に比べて安くなっていました。
メモリーは、1GBだと値段が高すぎなので、512MBを購入してみました。
ちょっと不安だったのですが、ノーブランドのバルク品でもちゃんと認識して動作してくれました。
(゚Д゚ )ウモォー
これで、256MB+512MBになったので少しは快適になりました。
ウィルス対策ソフトはいろいろありますが、私は、デスクトップPCの方では、ウィルスバスター2006を使っていて、ノートPCではFreeAVGというのを使っていました。今回、FreeAVGが使えなくなるらしいとの話を聞き、ウィルスバスター2007をインストールしてみました。
(ウィルスバスター2007は1ライセンスで3台までインストールできるみたいですね)
インストール後の感想なんですが、
・明らかにPCの動作が遅くなりました^^;(2006よりもかな。)
・メモリー使いまくりです。(FreeAVGはそんなに使わなかったのに。)
・デイリーアップデートの処理に時間かかりすぎ。
あぁ。ノートPCのメモリーは256MB×2なんですが、空きスロットがひとつもないので増設するにしても256MB捨てないといけません。
激しい動きをすると激しく固まりますね・・・
まるで、Windows95とか98みたいです。
上手に付き合うには一日1回程度は再起動が必要なようです。
最近6が発表されたようですが、今度はもっとましになっているのかしら。
EclipseでCVSを初めてつかってみました。
で、CVSからチェックアウトするときにローカルとサーバーで同じ名前のフォルダがあったので、
ローカルのフォルダをWindows上から削除した祭になってしまいました^^;
なんとか別の名前でチェックアウトして適当にごまかしたらなんとかなりました^^;
ちゃんとEclipseから削除しないとNGなんすね。
以前RedHat8.0を使用していた時は、標準でlogwatchがインストールされていたのですが、VineLinux4.0ではインストールされていませんでした。logwatchはシステムのセキュリティに関する情報をメールで毎日教えてくれるので便利だったのでインストールしてみることにしました。
まずはファイルを取得します。
wget ftp://ftp.kaybee.org/pub/linux/logwatch-7.3.2.tar.gz
/usr/local/srcに展開します。(まぁ、どこでもいいんですが。)
tar zxvf logwatch-7.3.2.tar.gz
あとは、以下のように作業を進めます。作業はrootで行います。
mkdir /etc/logwatch
mkdir /etc/logwatch/scripts
mkdir /etc/logwatch/conf
mkdir /etc/logwatch/conf/logfiles
mkdir /etc/logwatch/conf/services
touch /etc/logwatch/conf/logwatch.conf
touch /etc/logwatch/conf/ignore.conf
touch /etc/logwatch/conf/override.conf
mkdir /usr/share/logwatch
mkdir /usr/share/logwatch/dist.conf
mkdir /usr/share/logwatch/dist.conf/logfiles
mkdir /usr/share/logwatch/dist.conf/services
mv conf/ /usr/share/logwatch/default.conf
mv scripts/ /usr/share/logwatch/scripts
mv lib /usr/share/logwatch/lib
mkdir /var/cache/logwatch
ln -s /usr/share/logwatch/scripts/logwatch.pl /etc/cron.daily/0logwatch
ln -s /usr/share/logwatch/scripts/logwatch.pl /usr/sbin/logwatch
とりあえずこれで、毎朝4時2分にroot宛てにメールが届きます。
(メールサーバーの機能が構築されていればですが・・・)
先日の続きです。
PostgreSQL7.4.14なんですが、問題を解決したと思っていたらまた別問題が。。。
cronからPostgreSQLを使うとNGになっていたんです。
以下のようなエラーが発生していました。
/usr/local/pgsql/bin/psql: error while loading shared libraries: libreadline.so.4: cannot open shared object file: No such file or directory
どうやら、「そんなファイルないぞ。( ゚Д゚)ヴォケ!!」っとおっしゃっている様子。
/usr/lib
で以下のコマンドを発行してみると・・・
ls -la libreadline.so*
lrwxrwxrwx 1 root root 18 12月29日 21:40 libreadline.so.5 -> libreadline.so.5.1*
-rwxr-xr-x 1 root root 188116 3月19日 2006 libreadline.so.5.1*
確かに、libreadline.so.4はないですね。┐(´∇`)┌
とりあえずリンクを作成して様子を見ることにしました。
ln -s libreadline.so.5.1 libreadline.so.4
今のところcronでも問題ないみたいなのでよしとしますか。
qmailをインストールする前に、パッチをあてようと思い、qmail-maildir++.patch等のパッチをあてました。
で、make setup checkしてみると以下のようなエラーで終わっていました。泣。
(OSは、Vine Linux4.0です)
rm -f trylsock.o trylsock
./compile maildirquota.c
./compile maildirgetquota.c
./compile maildiropen.c
./compile maildirparsequota.c
./compile overmaildirquota.c
overmaildirquota.c:15:27: " 文字での終端を欠いています
overmaildirquota.c:16: error: 文法エラー before "sam"
overmaildirquota.c:16:10: " 文字での終端を欠いています
overmaildirquota.c:25: error: 文法エラー before "if"
overmaildirquota.c:32: 警告: data definition has no type or storage class
overmaildirquota.c:33: error: 文法エラー before '}' token
overmaildirquota.c:36: error: redefinition of `ret_value'
overmaildirquota.c:32: error: `ret_value' previously defined here
overmaildirquota.c:36: 警告: data definition has no type or storage class
overmaildirquota.c:37: error: 文法エラー before '}' token
make: *** [overmaildirquota.o] エラー 1
どうやら、パッチの対象となったovermaildirquota.cに問題がある模様。
googleで検索してみると、外国にも同じような問題に悩む人がいました。
それを読んでみて、overmaildirquota.cをいじってみることにしました。
幸いにもソースが50行程度しかなく、これなら私でもなんとかなりそう ( ̄ー ̄)
で、私がいじったのは以下の部分。
<修正前>
static const char rcsid[]="$Id: overquota.c,v 1.0 2002/06/09 16:21:05 mr
sam Exp $";
<修正後>
static const char rcsid[]="$Id: overquota.c,v 1.0 2002/06/09 16:21:05 mrsam Exp $";
なんてことはないです。そう、途中で改行しないようにしただけです^^;
でも、めでたくエラーは出なくなりました(TдT)
やっと週末休むことが出来たので先週から放置プレーにあったqmailのインストールを再開したのですが、
tcpserverのインストールでこけてしまいました^^;(OSはVine Linux4.0です。)
エラーは以下の通りです。
Incorrectly built binary which accesses errno, h_errno or _res directly. Needs to be fixed.
色々調べた結果、errno.hファイルの以下のように修正すればいいそうです。
<修正前>
extern int errno;
<修正後>
#include<errno.h>
今度はmake出来るかなと思ったのですが、また失敗でした^^;
しょうがないので荒技で一度ucspi-tcp-0.88ディレクトリを削除して
もう一度解凍してmakeしたらうまくいきました。
先は長そうでつ。
自宅サーバー入れ替え用に、Vine Linux4.0をインストールしていたマシンがあったので
PostgreSQL7.4.14をインストールしてみました。
PostgreSQLは今まで何回もインストールしたことがあったのですが、
今回はすんなり行かなかったのでメモしておきます。
ソースをDLして、./configureをしてみたのですがまず以下のようなエラーが発生しました。
configure: error: readline library not found
If you have readline already installed, see config.log for details on the
failure. It is possible the compiler isn't looking in the proper directory.
Use --without-readline to disable readline support.
なんかreadlineってものを入れるか、configureでwithoutにしてくださいとのことでした。
むかついたので、readlineを以下のようにインストールしてみました。
(readline自体はGoogleで検索すればみつかります。以下の例は、ダウンロードしたものを
/usr/local/srcにおいてあります。)
[root src]# tar zxvf readline-4.3.tar.gz
[root src]]# cd readline-4.3
[root readline-4.3]# ./configure
[root readline-4.3]# make
[root readline-4.3]# make install
リンクを作成しておきます。
[root readline-4.3]# ldconfig
これで行けると思ったらまたエラーが。┐(´∇`)┌
configure: error: zlib library not found
If you have zlib already installed, see config.log for details on the
failure. It is possible the compiler isn't looking in the proper directory.
Use --without-zlib to disable zlib support.
readlineの時と同じようなエラーだったのでまた同様にしてみました。
root src]#tar zxvf zlib-1.2.3.tar.gz
[root src]# cd zlib-1.2.3
[root zlib-1.2.3]# ./configure -shared
[root zlib-1.2.3]# make
[root zlib-1.2.3]# make install
リンクを作成しておきます。
[root zlib-1.2.3]# ldconfig
今度こそ行けると思ったんですがまたもやNGです。orz
checking test program... failed
configure: error:
*** Could not execute a simple test program. This may be a problem
*** related to locating shared libraries. Check the file 'config.log'
*** for the exact reason.
なんなんだろう。
私は、ライブラリのパスに問題があるのかと思い以下のようにしました。
(LD_LIBRARY_PATHに/usr/local/libを追加してみました。)
[postgres@hogehoge postgres]$ vi .bashrc
PATH="$PATH":/usr/local/pgsql/bin
export POSTGRES_HOME=/usr/local/pgsql
export PGLIB=$POSTGRES_HOME/lib
export PGDATA=$POSTGRES_HOME/data
export MANPATH="$MANPATH":$POSTGRES_HOME/man
export LD_LIBRARY_PATH="$LD_LIBRARY_PATH":$PGLIB:/usr/local/lib
[postgres@hogehoge postgres]$ source .bashrc
すると、今度は問題なくconfigureに成功しました!
で、make installまでも問題ありませんでした。
あぁ。久しぶりにlinuxを触ったなぁ。疲れた。
先週の終わりから今週にかけて仕事が"お祭"の状態になってしまいました。
昨日は20時で打ち止めとなったので早く帰りましたが・・・
来年は1月5日からと思っていたら4日も結局出ることに。( >Д<;)
今まで別ページで扱っていたffmpegとffserverを使用した"家庭内TV視聴システム「きゃぷら~」"のページを移植しました。
メルコさんのIEEE1394カードをヤフオクで落札したので取り付けてみました。
(IFC-ILP4という型番です。)
ですが、わたしのマザーボードとは相性が最悪らしくWindowsは起動するものの固まってしまいます。
いろいろ試行錯誤した挙句、どうもオンボードのLANが原因ということがわかりました。
(BIOSでオンボードのLANをDisableにしたところ今までの現象が嘘のように直りました。)
オンボードのLANは、リアルテックのチップでした。^^;
最近のサーバーは、シリアルポートがひとつしかないものが多いんでしょうか。
(もしくは2つあるんだけど、ひとつはすでに使用済みになっているとか・・・)
普通はシリアルなんて使わないから、UPSをつないでも平気なんでしょうけど、今かかわっているシステムはシリアルを使用して通信を行っている(TA使ってます。)のでシリアルが足りません。
意外と盲点なのではないでしょうか!?
HDDを2台使用したミラーリングをする場合、
玄人志向さんのRAIDカード(ATA133 RAID PCI )のマニュアルと見ると、
IDE1にプライマリーに1台+セカンダリーに1台をつなぐとあるのですが、
PROMISEさんだと、IDE1にプライマリーに1台・IDE2にプライマリーに1台でつなぐと
あります。RAIDカードによってつなぎ方が変わるもんなんですかねぇ。