<?xml version="1.0" encoding="UTF-8" ?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="ja">
  <title>ズープスサイト</title>
  <link rel="alternate" type="text/html" href="http://www.fs4y.com/" />
  <link rel="self" type="application/atom+xml" href="http://www.fs4y.com/modules/weblinks/feed_atom.php" />
  <id>tag:www.fs4y.com,2010://1</id>
  <updated>2010-03-11T19:09:17+09:00</updated>
      <generator uri="http://linux2.ohwada.net/">XOOPS rssc</generator>
        <rights>Copyright (c) 2010, Ujiki.oO</rights>
    <author>
  <name>Ujiki.oO</name>
        <email>webmaster@mail2009.fs4y.com</email>
    </author>
  <entry>
  <title type="html">【Windows】サービスの動作が不安定</title>
  <link rel="alternate" type="text/html" href="http://www.monzen.org/blogn/index.php?e=119" />
  <id>tag:www.fs4y.com,2010://1.1.1</id>
  <updated>2010-01-21T09:11:07+09:00</updated>
      <published>2010-01-21T09:11:07+09:00</published>
        <category term="IT-ソフトウェア関連::Windows" /> 
    <author>
  <name>門前　聖康</name>
      </author>
      <summary type="html">Windows 2003サーバーをDBサーバーとして運用している。 このサーバーで、システム用として独自に作成しているWindowsサービスがどうやら不安定になった様子。 サービスのプロパティを開こうとすると、 「構成マネージャ: 指定されたデバイス インスタンス ハンドルは、現在のデバイスに対応していません。」 というメッセージが表示されるようになっていた。</summary>
        <content type="html"> <![CDATA[
    Windows 2003サーバーをDBサーバーとして運用している。 このサーバーで、システム用として独自に作成しているWindowsサービスがどうやら不安定になった様子。 サービスのプロパティを開こうとすると、 「構成マネージャ: 指定されたデバイス インスタンス ハンドルは、現在のデバイスに対応していません。」 というメッセージが表示されるようになっていた。
    ]]> </content>
    </entry>
  <entry>
  <title type="html">ながらくありがとうございました</title>
  <link rel="alternate" type="text/html" href="http://blog.livedoor.jp/mmj_aos/archives/1329207.html" />
  <id>tag:blog.livedoor.jp,2009:mmj_aos.1329207</id>
  <updated>2009-11-25T21:42:00+09:00</updated>
      <published>2009-11-25T21:42:00+09:00</published>
      <author>
  <name>mmj_aos</name>
      </author>
      <summary type="html">消すことにしました。あしからず </summary>
        <content type="html"> <![CDATA[
    消すことにしました。あしからず 
    ]]> </content>
    </entry>
  <entry>
  <title type="html">【バックアップ】無償ツール</title>
  <link rel="alternate" type="text/html" href="http://www.monzen.org/blogn/index.php?e=118" />
  <id>tag:www.fs4y.com,2010://1.1.5</id>
  <updated>2009-11-11T12:11:45+09:00</updated>
      <published>2009-11-11T12:11:45+09:00</published>
        <category term="IT-ソフトウェア関連::ツール類" /> 
    <author>
  <name>門前　聖康</name>
      </author>
      <summary type="html"> バックアップ用ソフトとして Acronis TrueImage や Norton Ghost は有名ですが、マイクロソフトから無償で提供されているツールがあります。 WAIK (Windows Automated Installation Kit for Windows 7 and Windows Server 2008)の中に含まれる ImageX.exe です。もともとはWindowsの自動インストールのためのツールキットですが、使えます。 GUIが無いため、コマンドラインでしか動かない点は残念ですが、HDD ...</summary>
        <content type="html"> <![CDATA[
     バックアップ用ソフトとして Acronis TrueImage や Norton Ghost は有名ですが、マイクロソフトから無償で提供されているツールがあります。 WAIK (Windows Automated Installation Kit for Windows 7 and Windows Server 2008)の中に含まれる ImageX.exe です。もともとはWindowsの自動インストールのためのツールキットですが、使えます。 GUIが無いため、コマンドラインでしか動かない点は残念ですが、HDDのイメージをバックアップするという機能は問題ありません。 
    ]]> </content>
    </entry>
  <entry>
  <title type="html">【Delegate】プロキシサーバーを使う</title>
  <link rel="alternate" type="text/html" href="http://www.monzen.org/blogn/index.php?e=117" />
  <id>tag:www.fs4y.com,2010://1.1.7</id>
  <updated>2009-11-04T22:43:28+09:00</updated>
      <published>2009-11-04T22:43:28+09:00</published>
        <category term="IT-ソフトウェア関連::Linux" /> 
    <author>
  <name>門前　聖康</name>
      </author>
      <summary type="html"> このサーバー(www.monzen.org)とは別に、バーチャルドメインのApacheを使っている。 主にテストや開発用として使っているサーバーなのだが、さらにもう一台構築し、サーバーを併用したい状況となった。 そのため仮想ドメインだけでは対応しにくくなり、Delegateを使って並行運用できるよう構成したい。 端的に何をしたいかと言えば、 ■「ドメイン①」のリクエスト[:右:] ...</summary>
        <content type="html"> <![CDATA[
     このサーバー(www.monzen.org)とは別に、バーチャルドメインのApacheを使っている。 主にテストや開発用として使っているサーバーなのだが、さらにもう一台構築し、サーバーを併用したい状況となった。 そのため仮想ドメインだけでは対応しにくくなり、Delegateを使って並行運用できるよう構成したい。 端的に何をしたいかと言えば、 ■「ドメイン①」のリクエスト[:右:]既存のApacheの仮想ドメインに転送。 ■「ドメイン②」のリクエスト[:右:]①と同じサーバーで②の仮想ドメインを使う。 ■「ドメイン③」のリクエスト[:右:]別のサーバーに転送。 といった具合で、①②は現状のまま、③を追加する感じです。 思ったよりもDelegateの日本語の情報は少ない感じ。 マニュアル片手に試行錯誤を繰り返し、「 バーチャルホストの設定 」などを参考にしながら、Linuxサーバーに設定した。 基本的な動作は良好なので、暫くはこれで運用してみましょう。
    ]]> </content>
    </entry>
  <entry>
  <title type="html">【Shiretoko】64bit Firefox</title>
  <link rel="alternate" type="text/html" href="http://www.monzen.org/blogn/index.php?e=116" />
  <id>tag:www.fs4y.com,2010://1.1.9</id>
  <updated>2009-10-26T22:54:31+09:00</updated>
      <published>2009-10-26T22:54:31+09:00</published>
        <category term="ネット関連" /> 
    <author>
  <name>門前　聖康</name>
      </author>
      <summary type="html">訳あって64bitのWindows Xp環境でFirefoxを使おうとしている。 Windows Xpでは、もちろんIEがセットアップされているのだが、せっかくなので使い慣れているFirefoxを使えるようにしたい。 という事で、 http://wiki.mozilla-x86-64.com/Firefox:Download からFirefox3.5.3 が使えそうなので、これをダウンロードしてセットアップする。 英語版なので、日本語化する。 上記でセットアップしたFirefox ...</summary>
        <content type="html"> <![CDATA[
    訳あって64bitのWindows Xp環境でFirefoxを使おうとしている。 Windows Xpでは、もちろんIEがセットアップされているのだが、せっかくなので使い慣れているFirefoxを使えるようにしたい。 という事で、 http://wiki.mozilla-x86-64.com/Firefox:Download からFirefox3.5.3 が使えそうなので、これをダウンロードしてセットアップする。 英語版なので、日本語化する。 上記でセットアップしたFirefoxを立ち上げて、 ftp://ftp.mozilla.org/pub/mozilla.org/firefox/releases/3.5.3/win32/xpi/ にアクセスし、 ja.xpi をクリックすると日本語パックがインストールされる。 基本的な挙動は問題なさそうなので、暫くこれを使ってみよう。 参考） ・ ほえほえ日誌 
    ]]> </content>
    </entry>
  <entry>
  <title type="html">【NS4600】Promise 製NASを使う</title>
  <link rel="alternate" type="text/html" href="http://www.monzen.org/blogn/index.php?e=115" />
  <id>tag:www.fs4y.com,2010://1.1.11</id>
  <updated>2009-10-09T22:10:17+09:00</updated>
      <published>2009-10-09T22:10:17+09:00</published>
        <category term="IT-ハードウェア関連::周辺機器" /> 
    <author>
  <name>門前　聖康</name>
      </author>
      <summary type="html">最近のNASには、iSCSIが実装されつつあります。 先日、BuffaloのTeraStationでも iSCSIを実装されているものが発表されたばかりです。 サーバーの増設ディスクとして利用できるRAID機能搭載iSCSI対応ハードディスク〈テラステーション IS〉 WindowsでもiSCSIが使えますし、特にLinux/UnixではiSCSIが重宝します。 しかも、既にTeraStationを一台使っているのです。 しかし それにもかかわら ...</summary>
        <content type="html"> <![CDATA[
    最近のNASには、iSCSIが実装されつつあります。 先日、BuffaloのTeraStationでも iSCSIを実装されているものが発表されたばかりです。 サーバーの増設ディスクとして利用できるRAID機能搭載iSCSI対応ハードディスク〈テラステーション IS〉 WindowsでもiSCSIが使えますし、特にLinux/UnixではiSCSIが重宝します。 しかも、既にTeraStationを一台使っているのです。 しかし それにもかかわらず、私はいまどき「NFS」を使いたいがために、 「Promise製 NS4600」を購入したのでした。 購入後、初期設定をしていたら、いきなり管理画面で設定できない状態。 工場出荷時の状態に戻す事もできないので、メーカー（Promise）にメールで連絡して対応を確認したのですが、結局、購入元に送って修理となりました。 この修理がようやく完了し、昨日到着したのですが、今回のような障害は初めてとの事。 結局のところ原因は不明ですが、全取っ替え（別の新品）となって送られてきました。 修理後は順調です。 その後、NASを設定していて気が付いたのですが、LinuxからNFS経由で接続しようとしたのですが、 # mount -t nfs NS4600_IP_ADDRESS:/VOLUME1/SHARED /var/shared_directory ... nfs failed rpc error program not registered. となって接続できない。 確認してみると、 # rpcinfo -p NS4600_IP_ADDRESS program vers proto port 100000 2 tcp 111 portmapper 100000 2 udp 111 portmapper 100011 1 udp 749 rquotad 100011 2 udp 749 rquotad 100005 1 udp 759 mountd 100005 1 tcp 761 mountd 100005 2 udp 764 mountd 100005 2 tcp 766 mountd 100005 3 udp 769 mountd 100005 3 tcp 771 mountd 100024 1 udp 944 status 100024 1 tcp 946 status のようになっているので、なるほど、NFSサーバーを使う設定（Linux/Unix共有）を「オン」にしただけでは、サービスが起動しないようです。 詳細設定画面から、サーバーを再起動したら、正常に接続できるようになりました。
    ]]> </content>
    </entry>
  <entry>
  <title type="html">【C++Builder2007】メタファイルが不正です</title>
  <link rel="alternate" type="text/html" href="http://www.monzen.org/blogn/index.php?e=114" />
  <id>tag:www.fs4y.com,2010://1.1.13</id>
  <updated>2009-09-16T20:52:18+09:00</updated>
      <published>2009-09-16T20:52:18+09:00</published>
        <category term="IT-ソフトウェア関連::Delphi/C++Builder" /> 
    <author>
  <name>門前　聖康</name>
      </author>
      <summary type="html">C++Builder2007を使って作成しているアプリケーションで、 帳票を出力するためにQuickReportを使っている。 Windows XP(32bit)で動いているこのアプリケーションで、 帳票をプレビューすると、 「 メタファイルが不正です 」 というエラーメッセージが表示された。 アプリケーションを立ち上げ直すと、エラーメッセージは表示されなくなったのだが、このエラーメッセージは初め ...</summary>
        <content type="html"> <![CDATA[
    C++Builder2007を使って作成しているアプリケーションで、 帳票を出力するためにQuickReportを使っている。 Windows XP(32bit)で動いているこのアプリケーションで、 帳票をプレビューすると、 「 メタファイルが不正です 」 というエラーメッセージが表示された。 アプリケーションを立ち上げ直すと、エラーメッセージは表示されなくなったのだが、このエラーメッセージは初めて。 このエラーに関する情報も少なく、対応できないでいる。 アプリケーションを更新（コンパイル）してから約３ヶ月稼動している中で初めて発生し、その後再現しないため、対応が難しい状況。 対策を検討中。
    ]]> </content>
    </entry>
  <entry>
  <title type="html">【BBS】掲示板 UseBB</title>
  <link rel="alternate" type="text/html" href="http://www.monzen.org/blogn/index.php?e=113" />
  <id>tag:www.fs4y.com,2010://1.1.15</id>
  <updated>2009-08-10T08:33:17+09:00</updated>
      <published>2009-08-10T08:33:17+09:00</published>
        <category term="ネット関連::WEBツール" /> 
    <author>
  <name>門前　聖康</name>
      </author>
      <summary type="html">久しぶりに掲示板を設置する事にした。 様々なツールがフリーでも公開されているが、今回はPHP.orgで採用されている 「UseBB」を試してみる。 中々よさげですね。主な理由として、 ・見た目がよい ・機能が豊富 ・実績十分 ・管理しやすい ■インストールと日本語化については、以下のサイトが参考になります。 UseBBのインストール方法～まとめ～ </summary>
        <content type="html"> <![CDATA[
    久しぶりに掲示板を設置する事にした。 様々なツールがフリーでも公開されているが、今回はPHP.orgで採用されている 「UseBB」を試してみる。 中々よさげですね。主な理由として、 ・見た目がよい ・機能が豊富 ・実績十分 ・管理しやすい ■インストールと日本語化については、以下のサイトが参考になります。 UseBBのインストール方法～まとめ～ 
    ]]> </content>
    </entry>
  <entry>
  <title type="html">【Oracle 11g】デフォルトでパスワードが有効期限付きに</title>
  <link rel="alternate" type="text/html" href="http://www.monzen.org/blogn/index.php?e=112" />
  <id>tag:www.fs4y.com,2010://1.1.17</id>
  <updated>2009-07-13T09:55:38+09:00</updated>
      <published>2009-07-13T09:55:38+09:00</published>
        <category term="IT-ソフトウェア関連::Oracle" /> 
    <author>
  <name>門前　聖康</name>
      </author>
      <summary type="html">Oralce 11g を RedHat Linux Enterprise Server で運用している。 今日、クライアント・アプリケーションから、この Oralce DB にアクセスしようとしたところ、 「パスワードの有効期限が、あと６日で切れます」 といったメッセージが表示されるようになっていた。 どうやら「Oracle 11g」では、デフォルトでパスワードの有効期限が１８０日に設定されてしまうらしい。 そのため、以 ...</summary>
        <content type="html"> <![CDATA[
    Oralce 11g を RedHat Linux Enterprise Server で運用している。 今日、クライアント・アプリケーションから、この Oralce DB にアクセスしようとしたところ、 「パスワードの有効期限が、あと６日で切れます」 といったメッセージが表示されるようになっていた。 どうやら「Oracle 11g」では、デフォルトでパスワードの有効期限が１８０日に設定されてしまうらしい。 そのため、以下のように、 パスワードの有効期限を無期限と変更しておく。 # sqlplus sys/パスワード@サービス名 as sysdba SQL> alter profile default limit password_life_time unlimited; SQL> alter user ユーザ名 identified by パスワード; 
    ]]> </content>
    </entry>
  <entry>
  <title type="html">引越しも終了し、メンテナンスを再開します</title>
  <link rel="alternate" type="text/html" href="http://www.fs4y.com/modules/news/article.php?storyid=65" />
  <id>tag:www.fs4y.com,2010://1.1.19</id>
  <updated>2009-05-17T11:39:45+09:00</updated>
      <published>2009-05-17T11:39:45+09:00</published>
      <author>
  <name>Ujiki.oO</name>
      </author>
      <summary type="html"> 神奈川県民から埼玉県民に移行した Ujiki.oO です。 遅まきながら、自宅に CATVインターネットも開通。 プライベートタイムにはインターネットで遊べるインフラ整備が完了！（えええええ～） そろそろ、ライフワークの再開ですね。（おいおい） さて、当サイトのブログ・モジュール内の記事「 日本語TCPDFで全方位プラットホームで読めて印刷できるPDFファイルを生成し ...</summary>
        <content type="html"> <![CDATA[
     神奈川県民から埼玉県民に移行した Ujiki.oO です。 遅まきながら、自宅に CATVインターネットも開通。 プライベートタイムにはインターネットで遊べるインフラ整備が完了！（えええええ～） そろそろ、ライフワークの再開ですね。（おいおい） さて、当サイトのブログ・モジュール内の記事「 日本語TCPDFで全方位プラットホームで読めて印刷できるPDFファイルを生成しよう 」内から参照しておりましたPHPのソースをUTF-8文字コードで強制表示させるように改定しておきました。遅すぎますかね。（笑） 行った処置は簡単な作業です。 公開したいPHPソースを配置したディレクトリー下の「 ．ｈｔａｃｃｅｓｓ 」ファイルに以下の一行を追加しただけです。
    ]]> </content>
    </entry>
  <entry>
  <title type="html">【BLOGN+】スパム対策</title>
  <link rel="alternate" type="text/html" href="http://www.monzen.org/blogn/index.php?e=111" />
  <id>tag:www.fs4y.com,2010://1.1.21</id>
  <updated>2009-02-23T07:58:59+09:00</updated>
      <published>2009-02-23T07:58:59+09:00</published>
        <category term="ネット関連" /> 
    <author>
  <name>門前　聖康</name>
      </author>
      <summary type="html"> BlognPlus 用コメントスパム対策モジュール をセットアップしてみました。 ヨサゲです。 これまではIPアクセス制限をかけるだけだったのですが、このモジュールのお陰でスパムが激減しました。 </summary>
        <content type="html"> <![CDATA[
     BlognPlus 用コメントスパム対策モジュール をセットアップしてみました。 ヨサゲです。 これまではIPアクセス制限をかけるだけだったのですが、このモジュールのお陰でスパムが激減しました。 
    ]]> </content>
    </entry>
  <entry>
  <title type="html">【RHEL5.2】PHP5.1.6 から Oracle DB(11.1.0.6.0) にアクセスする</title>
  <link rel="alternate" type="text/html" href="http://www.monzen.org/blogn/index.php?e=110" />
  <id>tag:www.fs4y.com,2010://1.1.23</id>
  <updated>2009-01-28T17:45:10+09:00</updated>
      <published>2009-01-28T17:45:10+09:00</published>
        <category term="ネット関連::PHP" /> 
    <author>
  <name>門前　聖康</name>
      </author>
      <summary type="html">RedHat Enterprise Linux 5.2 で動かしている Oracle11gデータベースに対し、 PHPからOCI8でアクセスしたい。 ●オラクルのバージョンは 11.1.0.6.0 ●PHPのバージョンは 5.1.6-20 以前に作業した RHEL5 + Oracle10gR2 環境で PHPを使えるようにする作業に習って作業したのだが、うまく行かなかった。 ※ 【RHEL5】PHP から Oracle DB にアクセスする この方法はPHPをソースコードから再コンパイルする ...</summary>
        <content type="html"> <![CDATA[
    RedHat Enterprise Linux 5.2 で動かしている Oracle11gデータベースに対し、 PHPからOCI8でアクセスしたい。 ●オラクルのバージョンは 11.1.0.6.0 ●PHPのバージョンは 5.1.6-20 以前に作業した RHEL5 + Oracle10gR2 環境で PHPを使えるようにする作業に習って作業したのだが、うまく行かなかった。 ※ 【RHEL5】PHP から Oracle DB にアクセスする この方法はPHPをソースコードから再コンパイルするので、 ついでに最新のPHPバージョンにアップデートできるというメリットもあるのだが、 セットアップできないのでは話にならない。 そのため peclを使う方法で作業する事にした。 この場合、既にPHPがセットアップされていないといけない。 従ってディストリビューションに含まれるPHPをセットアップしておく。 以下、rootにて。 # cd /media/.. # DVDドライブに移動 # cd Server # rpm -ivh php-* 以上でPHPをセットアップ。 以下、OCI8をセットアップする。 ソースコードからコンパイルする手順に比べると、はるかに簡単です。 OCI8のセットアップでは、Instant Clientを使う方法もあるが、 このサーバーには既に Oracle11g (11.1.0.6.0)がセットアップされているので、これを使いたい。 そのため、以下のように作業する。 # pecl install oci8 downloading oci8-1.3.4.tgz ... Starting to download oci8-1.3.4.tgz (134,240 bytes) .....done: 134,240 bytes 10 source files, building running: phpize Configuring for: PHP Api Version: 20041225 Zend Module Api No: 20050922 Zend Extension Api No: 220051025 perl: warning: Setting locale failed. perl: warning: Please check that your locale settings: LANGUAGE = (unset), LC_ALL = (unset), LC_CTYPE = "ja_JP.UTF-8", LANG = "ja_JP.SJIS" are supported and installed on your system. perl: warning: Falling back to the standard locale ("C"). perl: warning: Setting locale failed. perl: warning: Please check that your locale settings: LANGUAGE = (unset), LC_ALL = (unset), LC_CTYPE = "ja_JP.UTF-8", LANG = "ja_JP.SJIS" are supported and installed on your system. perl: warning: Falling back to the standard locale ("C"). Please provide the path to the ORACLE_HOME directory. Use 'instantclient,/path/to/instant/client/lib' if you're compiling with Oracle Instant Client [autodetect] : /u01/app/oracle/product/11.1.0/db_1 building in /var/tmp/pear-build-root/oci8-1.3.4 running: /tmp/tmppRhDk7/oci8-1.3.4/configure --with-oci8=/u01/app/oracle/product/11.1.0/db_1 checking for egrep... grep -E checking for a sed that does not truncate output... /bin/sed checking for gcc... gcc checking for C compiler default output file name... a.out checking whether the C compiler works... yes checking whether we are cross compiling... no checking for suffix of executables... checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ANSI C... none needed checking whether gcc and cc understand -c and -o together... yes checking if compiler supports -R... no checking if compiler supports -Wl,-rpath,... yes checking build system type... i686-redhat-linux-gnu checking host system type... i686-redhat-linux-gnu checking target system type... i686-redhat-linux-gnu checking for PHP prefix... /usr checking for PHP includes... -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext checking for PHP extension directory... /usr/lib/php/modules checking for PHP installed headers prefix... /usr/include/php checking for re2c... no configure: WARNING: You will need re2c 0.9.11 or later if you want to regenerate PHP parsers. checking for gawk... gawk checking for Oracle (OCI8) support... yes, shared checking PHP version... 5.1.6, ok checking Oracle Install Directory... /u01/app/oracle/product/11.1.0/db_1 checking how to run the C preprocessor... gcc -E checking for ANSI C header files... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking for long int... yes checking size of long int... 4 checking if we're on a 64-bit platform... no checking OCI8 libraries dir... lib checking Oracle version... 11.1 checking for ld used by gcc... /usr/bin/ld checking if the linker (/usr/bin/ld) is GNU ld... yes checking for /usr/bin/ld option to reload object files... -r checking for BSD-compatible nm... /usr/bin/nm -B checking whether ln -s works... yes checking how to recognise dependent libraries... pass_all checking dlfcn.h usability... yes checking dlfcn.h presence... yes checking for dlfcn.h... yes checking for g++... g++ checking whether we are using the GNU C++ compiler... yes checking whether g++ accepts -g... yes checking how to run the C++ preprocessor... g++ -E checking for g77... g77 checking whether we are using the GNU Fortran 77 compiler... yes checking whether g77 accepts -g... yes checking the maximum length of command line arguments... 32768 checking command to parse /usr/bin/nm -B output from gcc object... ok checking for objdir... .libs checking for ar... ar checking for ranlib... ranlib checking for strip... strip checking if gcc supports -fno-rtti -fno-exceptions... no checking for gcc option to produce PIC... -fPIC checking if gcc PIC flag -fPIC works... yes checking if gcc static flag -static works... yes checking if gcc supports -c -o file.o... yes checking whether the gcc linker (/usr/bin/ld) supports shared libraries... yes checking whether -lc should be explicitly linked in... no checking dynamic linker characteristics... GNU/Linux ld.so checking how to hardcode library paths into programs... immediate checking whether stripping libraries is possible... yes checking if libtool supports shared libraries... yes checking whether to build shared libraries... yes checking whether to build static libraries... no configure: creating libtool appending configuration tag "CXX" to libtool checking for ld used by g++... /usr/bin/ld checking if the linker (/usr/bin/ld) is GNU ld... yes checking whether the g++ linker (/usr/bin/ld) supports shared libraries... yes checking for g++ option to produce PIC... -fPIC checking if g++ PIC flag -fPIC works... yes checking if g++ static flag -static works... yes checking if g++ supports -c -o file.o... yes checking whether the g++ linker (/usr/bin/ld) supports shared libraries... yes checking dynamic linker characteristics... GNU/Linux ld.so checking how to hardcode library paths into programs... immediate appending configuration tag "F77" to libtool checking if libtool supports shared libraries... yes checking whether to build shared libraries... yes checking whether to build static libraries... no checking for g77 option to produce PIC... -fPIC checking if g77 PIC flag -fPIC works... yes checking if g77 static flag -static works... yes checking if g77 supports -c -o file.o... yes checking whether the g77 linker (/usr/bin/ld) supports shared libraries... yes checking dynamic linker characteristics... GNU/Linux ld.so checking how to hardcode library paths into programs... immediate configure: creating ./config.status config.status: creating config.h running: make /bin/sh /var/tmp/pear-build-root/oci8-1.3.4/libtool --mode=compile gcc -I. -I/tmp/tmppRhDk7/oci8-1.3.4 -DPHP_ATOM_INC -I/var/tmp/pear-build-root/oci8-1.3.4/include -I/var/tmp/pear-build-root/oci8-1.3.4/main -I/tmp/tmppRhDk7/oci8-1.3.4 -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/u01/app/oracle/product/11.1.0/db_1/rdbms/public -I/u01/app/oracle/product/11.1.0/db_1/rdbms/demo -DHAVE_CONFIG_H -g -O2 -c /tmp/tmppRhDk7/oci8-1.3.4/oci8.c -o oci8.lo mkdir .libs gcc -I. -I/tmp/tmppRhDk7/oci8-1.3.4 -DPHP_ATOM_INC -I/var/tmp/pear-build-root/oci8-1.3.4/include -I/var/tmp/pear-build-root/oci8-1.3.4/main -I/tmp/tmppRhDk7/oci8-1.3.4 -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/u01/app/oracle/product/11.1.0/db_1/rdbms/public -I/u01/app/oracle/product/11.1.0/db_1/rdbms/demo -DHAVE_CONFIG_H -g -O2 -c /tmp/tmppRhDk7/oci8-1.3.4/oci8.c -fPIC -DPIC -o .libs/oci8.o /bin/sh /var/tmp/pear-build-root/oci8-1.3.4/libtool --mode=compile gcc -I. -I/tmp/tmppRhDk7/oci8-1.3.4 -DPHP_ATOM_INC -I/var/tmp/pear-build-root/oci8-1.3.4/include -I/var/tmp/pear-build-root/oci8-1.3.4/main -I/tmp/tmppRhDk7/oci8-1.3.4 -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/u01/app/oracle/product/11.1.0/db_1/rdbms/public -I/u01/app/oracle/product/11.1.0/db_1/rdbms/demo -DHAVE_CONFIG_H -g -O2 -c /tmp/tmppRhDk7/oci8-1.3.4/oci8_lob.c -o oci8_lob.lo gcc -I. -I/tmp/tmppRhDk7/oci8-1.3.4 -DPHP_ATOM_INC -I/var/tmp/pear-build-root/oci8-1.3.4/include -I/var/tmp/pear-build-root/oci8-1.3.4/main -I/tmp/tmppRhDk7/oci8-1.3.4 -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/u01/app/oracle/product/11.1.0/db_1/rdbms/public -I/u01/app/oracle/product/11.1.0/db_1/rdbms/demo -DHAVE_CONFIG_H -g -O2 -c /tmp/tmppRhDk7/oci8-1.3.4/oci8_lob.c -fPIC -DPIC -o .libs/oci8_lob.o /bin/sh /var/tmp/pear-build-root/oci8-1.3.4/libtool --mode=compile gcc -I. -I/tmp/tmppRhDk7/oci8-1.3.4 -DPHP_ATOM_INC -I/var/tmp/pear-build-root/oci8-1.3.4/include -I/var/tmp/pear-build-root/oci8-1.3.4/main -I/tmp/tmppRhDk7/oci8-1.3.4 -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/u01/app/oracle/product/11.1.0/db_1/rdbms/public -I/u01/app/oracle/product/11.1.0/db_1/rdbms/demo -DHAVE_CONFIG_H -g -O2 -c /tmp/tmppRhDk7/oci8-1.3.4/oci8_statement.c -o oci8_statement.lo gcc -I. -I/tmp/tmppRhDk7/oci8-1.3.4 -DPHP_ATOM_INC -I/var/tmp/pear-build-root/oci8-1.3.4/include -I/var/tmp/pear-build-root/oci8-1.3.4/main -I/tmp/tmppRhDk7/oci8-1.3.4 -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/u01/app/oracle/product/11.1.0/db_1/rdbms/public -I/u01/app/oracle/product/11.1.0/db_1/rdbms/demo -DHAVE_CONFIG_H -g -O2 -c /tmp/tmppRhDk7/oci8-1.3.4/oci8_statement.c -fPIC -DPIC -o .libs/oci8_statement.o /bin/sh /var/tmp/pear-build-root/oci8-1.3.4/libtool --mode=compile gcc -I. -I/tmp/tmppRhDk7/oci8-1.3.4 -DPHP_ATOM_INC -I/var/tmp/pear-build-root/oci8-1.3.4/include -I/var/tmp/pear-build-root/oci8-1.3.4/main -I/tmp/tmppRhDk7/oci8-1.3.4 -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/u01/app/oracle/product/11.1.0/db_1/rdbms/public -I/u01/app/oracle/product/11.1.0/db_1/rdbms/demo -DHAVE_CONFIG_H -g -O2 -c /tmp/tmppRhDk7/oci8-1.3.4/oci8_collection.c -o oci8_collection.lo gcc -I. -I/tmp/tmppRhDk7/oci8-1.3.4 -DPHP_ATOM_INC -I/var/tmp/pear-build-root/oci8-1.3.4/include -I/var/tmp/pear-build-root/oci8-1.3.4/main -I/tmp/tmppRhDk7/oci8-1.3.4 -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/u01/app/oracle/product/11.1.0/db_1/rdbms/public -I/u01/app/oracle/product/11.1.0/db_1/rdbms/demo -DHAVE_CONFIG_H -g -O2 -c /tmp/tmppRhDk7/oci8-1.3.4/oci8_collection.c -fPIC -DPIC -o .libs/oci8_collection.o /bin/sh /var/tmp/pear-build-root/oci8-1.3.4/libtool --mode=compile gcc -I. -I/tmp/tmppRhDk7/oci8-1.3.4 -DPHP_ATOM_INC -I/var/tmp/pear-build-root/oci8-1.3.4/include -I/var/tmp/pear-build-root/oci8-1.3.4/main -I/tmp/tmppRhDk7/oci8-1.3.4 -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/u01/app/oracle/product/11.1.0/db_1/rdbms/public -I/u01/app/oracle/product/11.1.0/db_1/rdbms/demo -DHAVE_CONFIG_H -g -O2 -c /tmp/tmppRhDk7/oci8-1.3.4/oci8_interface.c -o oci8_interface.lo gcc -I. -I/tmp/tmppRhDk7/oci8-1.3.4 -DPHP_ATOM_INC -I/var/tmp/pear-build-root/oci8-1.3.4/include -I/var/tmp/pear-build-root/oci8-1.3.4/main -I/tmp/tmppRhDk7/oci8-1.3.4 -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/u01/app/oracle/product/11.1.0/db_1/rdbms/public -I/u01/app/oracle/product/11.1.0/db_1/rdbms/demo -DHAVE_CONFIG_H -g -O2 -c /tmp/tmppRhDk7/oci8-1.3.4/oci8_interface.c -fPIC -DPIC -o .libs/oci8_interface.o /bin/sh /var/tmp/pear-build-root/oci8-1.3.4/libtool --mode=link gcc -DPHP_ATOM_INC -I/var/tmp/pear-build-root/oci8-1.3.4/include -I/var/tmp/pear-build-root/oci8-1.3.4/main -I/tmp/tmppRhDk7/oci8-1.3.4 -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/u01/app/oracle/product/11.1.0/db_1/rdbms/public -I/u01/app/oracle/product/11.1.0/db_1/rdbms/demo -DHAVE_CONFIG_H -g -O2 -o oci8.la -export-dynamic -avoid-version -prefer-pic -module -rpath /var/tmp/pear-build-root/oci8-1.3.4/modules oci8.lo oci8_lob.lo oci8_statement.lo oci8_collection.lo oci8_interface.lo -Wl,-rpath,/u01/app/oracle/product/11.1.0/db_1/lib -L/u01/app/oracle/product/11.1.0/db_1/lib -lclntsh gcc -shared .libs/oci8.o .libs/oci8_lob.o .libs/oci8_statement.o .libs/oci8_collection.o .libs/oci8_interface.o -L/u01/app/oracle/product/11.1.0/db_1/lib -lclntsh -Wl,-rpath -Wl,/u01/app/oracle/product/11.1.0/db_1/lib -Wl,-soname -Wl,oci8.so -o .libs/oci8.so creating oci8.la (cd .libs &amp;&amp; rm -f oci8.la &amp;&amp; ln -s ../oci8.la oci8.la) /bin/sh /var/tmp/pear-build-root/oci8-1.3.4/libtool --mode=install cp ./oci8.la /var/tmp/pear-build-root/oci8-1.3.4/modules cp ./.libs/oci8.so /var/tmp/pear-build-root/oci8-1.3.4/modules/oci8.so cp ./.libs/oci8.lai /var/tmp/pear-build-root/oci8-1.3.4/modules/oci8.la PATH="$PATH:/sbin" ldconfig -n /var/tmp/pear-build-root/oci8-1.3.4/modules ---------------------------------------------------------------------- Libraries have been installed in: /var/tmp/pear-build-root/oci8-1.3.4/modules If you ever happen to want to link against installed libraries in a given directory, LIBDIR, you must either use libtool, and specify the full pathname of the library, or use the `-LLIBDIR' flag during linking and do at least one of the following: - add LIBDIR to the `LD_LIBRARY_PATH' environment variable during execution - add LIBDIR to the `LD_RUN_PATH' environment variable during linking - use the `-Wl,--rpath -Wl,LIBDIR' linker flag - have your system administrator add LIBDIR to `/etc/ld.so.conf' See any operating system documentation about shared libraries for more information, such as the ld(1) and ld.so(8) manual pages. ---------------------------------------------------------------------- Build complete. (It is safe to ignore warnings about tempnam and tmpnam). running: make INSTALL_ROOT="/var/tmp/pear-build-root/install-oci8-1.3.4" install Installing shared extensions: /var/tmp/pear-build-root/install-oci8-1.3.4/usr/lib/php/modules/ running: find "/var/tmp/pear-build-root/install-oci8-1.3.4" -ls 6881724 4 drwxr-xr-x 3 root root 4096 Jan 28 15:11 /var/tmp/pear-build-root/install-oci8-1.3.4 6881753 4 drwxr-xr-x 3 root root 4096 Jan 28 15:11 /var/tmp/pear-build-root/install-oci8-1.3.4/usr 6881754 4 drwxr-xr-x 3 root root 4096 Jan 28 15:11 /var/tmp/pear-build-root/install-oci8-1.3.4/usr/lib 6881755 4 drwxr-xr-x 3 root root 4096 Jan 28 15:11 /var/tmp/pear-build-root/install-oci8-1.3.4/usr/lib/php 6881756 4 drwxr-xr-x 2 root root 4096 Jan 28 15:11 /var/tmp/pear-build-root/install-oci8-1.3.4/usr/lib/php/modules 6881752 384 -rwxr-xr-x 1 root root 388194 Jan 28 15:11 /var/tmp/pear-build-root/install-oci8-1.3.4/usr/lib/php/modules/oci8.so Build process completed successfully Installing '/var/tmp/pear-build-root/install-oci8-1.3.4//usr/lib/php/modules/oci8.so' install ok: channel://pecl.php.net/oci8-1.3.4 You should add "extension=oci8.so" to php.ini 以上にて oci8.so が正常にセットアップされました。 引き続き PHPにoci8の設定を加え、apacheを再起動します。 # echo "extension=oci8.so" > /etc/php.d/oci8.ini # service httpd restart これで phpinfo ()を呼び出して「oci8」がロードされているかどうか確認します。 また apache の実行ユーザーの環境変数に ORACLE_HOME が設定する必要があるので、以下の設定を登録しておく。 #vi /etc/syscofig/httpd --- begin httpd ... #↓最後に以下を追加 export NLS_LANG=Japanese_Japan.JA16SJISTILDE export ORACLE_HOME=/u01/app/oracle/product/11.1.0/db_1 export ORACLE_SID=サービス名 --- end httpd # service httpd restart 参考) ・ 【PHP】Instant Client+peclでoci8(oracle)関数を使えるようにする 
    ]]> </content>
    </entry>
  <entry>
  <title type="html">【RHEL5.2】 Oracle11g（11.1.0.6.0）のセットアップ</title>
  <link rel="alternate" type="text/html" href="http://www.monzen.org/blogn/index.php?e=109" />
  <id>tag:www.fs4y.com,2010://1.1.25</id>
  <updated>2009-01-28T12:17:28+09:00</updated>
      <published>2009-01-28T12:17:28+09:00</published>
        <category term="IT-ソフトウェア関連::Linux" /> 
    <author>
  <name>門前　聖康</name>
      </author>
      <summary type="html"> RedHat Enterprise Linux 5.2 サーバー に Oracle 11g (11.1.0.6.0) をセットアップしようとしている。 以前にも同様の作業を行っており、 【Dell PowerEdge 2900】にセットアップした、 「 RedHat Enterprise Linux 5.0 /Oracle10gR2のセットアップ 」 と同様だろう・・・と思いつつ作業してみると、そのままではセットアップできなかったので、その差分要件を記載しておく。 ※上記のメモを一読下さ ...</summary>
        <content type="html"> <![CDATA[
     RedHat Enterprise Linux 5.2 サーバー に Oracle 11g (11.1.0.6.0) をセットアップしようとしている。 以前にも同様の作業を行っており、 【Dell PowerEdge 2900】にセットアップした、 「 RedHat Enterprise Linux 5.0 /Oracle10gR2のセットアップ 」 と同様だろう・・・と思いつつ作業してみると、そのままではセットアップできなかったので、その差分要件を記載しておく。 ※上記のメモを一読下さい。 ●スワップ領域は1512MB必要 Swap領域のサイズを1024MBとしてRHEL5.2 サーバーをセットアップしたら、「1512MB必要です」と叱られてしまった。 かといって、Linuxを再インストールするのも時間がかかるので、ファイル・システム上に追加のスワップファイル(1GB)を作成する。 以下 root ユーザーにて。 # mkdir -p /var/swap # cd /var/swap # dd if=/dev/zero of=swapfile bs=1024 count=1048576 # mkswap -v1 swapfile Setting up swapspace version 1, size = 1073737 kB # swapon swapfile # free total used free shared buffers cached Mem: 1035292 1019536 15756 0 1696 881272 -/+ buffers/cache: 136568 898724 Swap: 2097136 100 2097036 ↑Swapの領域が2GBに増えた ●追加するパッケージ Oracle 10g R2のセットアップ と同様、libXp...rpmも必要だが、それ以外に以下の３つが必要となる。 ・libaio-devel ・sysstat ・unixODBC-devel そのため、RedHat Enterprise Linux 5.2のセットアップDVDを使って、パッケージを追加インストールする。 # rpm -ivh libaio-devel-0.3.106-3.2.i386.rpm # rpm -ivh sysstat-7.0.2-1.el5.i386.rpm # rpm -ivh unixODBC-devel-2.2.11-7.1.i386.rpm ●カーネルパラメータ 以下のように「262144」→「4194304」と変更する。 # /sbin/sysctl -w net.core.rmem_default=4194304 # /sbin/sysctl -w net.core.rmem_max=4194304 
    ]]> </content>
    </entry>
  <entry>
  <title type="html">【Apache】Webalizerのためのアクセスログの出力を抑制する設定</title>
  <link rel="alternate" type="text/html" href="http://www.monzen.org/blogn/index.php?e=108" />
  <id>tag:www.fs4y.com,2010://1.1.27</id>
  <updated>2009-01-23T09:08:55+09:00</updated>
      <published>2009-01-23T09:08:55+09:00</published>
        <category term="ネット関連::サーバー" /> 
    <author>
  <name>門前　聖康</name>
      </author>
      <summary type="html"> /etc/httpd/conf/httpd.conf に以下のような記述を追加する。 SetEnvIf Remote_Addr 192.168.1. homelog nolog CustomLog logs/home_log common env=homelog この記述により 192.168.1. からのアクセスログが記述されなくなります。 SetEnvIf というディレクティブが使える事を、今回知った次第。 また「Remove_Addr」だけでなく 「Request_URI」などについても設定ができるので、必要に応じて設定する。 参考サイト  ...</summary>
        <content type="html"> <![CDATA[
     /etc/httpd/conf/httpd.conf に以下のような記述を追加する。 SetEnvIf Remote_Addr 192.168.1. homelog nolog CustomLog logs/home_log common env=homelog この記述により 192.168.1. からのアクセスログが記述されなくなります。 SetEnvIf というディレクティブが使える事を、今回知った次第。 また「Remove_Addr」だけでなく 「Request_URI」などについても設定ができるので、必要に応じて設定する。 参考サイト ・ mod_setenvif - Apache HTTP サーバ ・ WebalizerによるWebアクセスログ解析 
    ]]> </content>
    </entry>
  <entry>
  <title type="html">【HULFT】Hulft for Linux のセットアップ</title>
  <link rel="alternate" type="text/html" href="http://www.monzen.org/blogn/index.php?e=107" />
  <id>tag:www.fs4y.com,2010://1.1.29</id>
  <updated>2009-01-14T12:05:42+09:00</updated>
      <published>2009-01-14T12:05:42+09:00</published>
        <category term="IT-ソフトウェア関連::ツール類" /> 
    <author>
  <name>門前　聖康</name>
      </author>
      <summary type="html">HULFT6 for Linuxを RedHat Enterprise Linux 5 サーバーにセットアップしている。 マニュアルに従ってセットアップした後、以下のような自動起動シェルスクリプトを作り、HULFTのデーモンを起動しようとしている。 #!/bin/sh # chkconfig: 2345 20 80 # description: HULFT6 for \ # CYTO (CYTOKINE) system. export suser=monzen export HULEXEP=/usr/local/HULFT/bin export HULPATH=/usr/local/HULFT/etc case $1 in &apos;start&apos;) su - $suser -c &apos;$HULEXEP/ ...</summary>
        <content type="html"> <![CDATA[
    HULFT6 for Linuxを RedHat Enterprise Linux 5 サーバーにセットアップしている。 マニュアルに従ってセットアップした後、以下のような自動起動シェルスクリプトを作り、HULFTのデーモンを起動しようとしている。 #!/bin/sh # chkconfig: 2345 20 80 # description: HULFT6 for \ # CYTO (CYTOKINE) system. export suser=monzen export HULEXEP=/usr/local/HULFT/bin export HULPATH=/usr/local/HULFT/etc case $1 in 'start') su - $suser -c '$HULEXEP/hulsndd' su - $suser -c '$HULEXEP/hulrcvd' su - $suser -c '$HULEXEP/hulobsd' ;; 'stop') su - $suser -c '$HULEXEP/utlkillsnd' su - $suser -c '$HULEXEP/utlkillrcv' su - $suser -c '$HULEXEP/utlkillobs' ;; 'restart') $0 stop $0 start ;; *) echo "usage: $0 {start|stop|restart}" ;; esac # exit これを /etc/rc.d/init.d/hulftという名前で保存し、さらに以下のようにしてサービスに登録しておく。 # chkconfig hulft on しかし、上記のスクリプトを実行すると、以下の２つのデーモンは正常に起動するのだが /usr/local/HULFT/bin/hulsndd /usr/local/HULFT/bin/hulobsd 以下の集信用デーモン /usr/local/HULFT/bin/hulrcvd が起動しないという現象が発生した。 試しに、monzen ユーザーでコマンドラインから実行しても起動しない。 # /usr/local/HULFT/bin/hulrcvd この時のエラー（終了）コードも'0'のため「正常に終了」という状態のようで、よく分からない。 という事で試行錯誤した結果、HULFTのインストールをrootユーザーで実行したのだが、デーモンを実行するユーザが monzen である事が原因らしい。 取り敢えず、以下のように「 インストールしたディレクトリとその配下の全てのファイルのオーナーを'monzen'に変更する 」という手段にて、hulrcvdデーモンが正常に起動するようになった。 # chown -R monzen /usr/local/HULFT 
    ]]> </content>
    </entry>
  <entry>
  <title type="html">【RAD Studio 2009】Delphi/C++Builder 2009にてSQLiteを使う</title>
  <link rel="alternate" type="text/html" href="http://www.monzen.org/blogn/index.php?e=106" />
  <id>tag:www.fs4y.com,2010://1.1.31</id>
  <updated>2008-12-16T22:16:57+09:00</updated>
      <published>2008-12-16T22:16:57+09:00</published>
        <category term="IT-ソフトウェア関連::Delphi/C++Builder" /> 
    <author>
  <name>門前　聖康</name>
      </author>
      <summary type="html">Delphi/C++Builder 2009 において、簡単にSQLiteを使う方法を記載しておく。 エンバカデロ/CodeGear のサイトからDbExpress用ドライバをダウンロードする。 ID: 18385, SQLite DbExpress driver ダウンロードしたファイル「18385_sqlite_dbexpress_driver.ZIP」を解凍すると、以下の６つのファイルが展開される。 DbxSQLite3.dll install.txt license.txt sqlite3.dll SQLite3Test.exe test.db インストール方法は上記のファイル ...</summary>
        <content type="html"> <![CDATA[
    Delphi/C++Builder 2009 において、簡単にSQLiteを使う方法を記載しておく。 エンバカデロ/CodeGear のサイトからDbExpress用ドライバをダウンロードする。 ID: 18385, SQLite DbExpress driver ダウンロードしたファイル「18385_sqlite_dbexpress_driver.ZIP」を解凍すると、以下の６つのファイルが展開される。 DbxSQLite3.dll install.txt license.txt sqlite3.dll SQLite3Test.exe test.db インストール方法は上記のファイル「 install.txt 」の記述に従えばよい。これを簡単に日本語で記載しておく。 ※Delphi/C++Builder 2009がインストール済とする。 ①解凍したファイルをプログラム用のフォルダに適当に配置する。 例えば、以下のようなフォルダを作成し上記のファイルを配置する。 「C:\Program Files\CodeGear\RAD Studio\6.0\sqlite」 ②ローカルマシン内の dbxdrivers.ini ファイルを探す。 WindowsXp であれば C:\Documents and Settings\All Users\Documents\RAD Studio\dbExpress などのフォルダに配置されている。 見つからなければ「C:\」直下から「dbxdrivers.ini」を探す。 ③上記の dbxdrivers.ini ファイルを編集する。 以下の2つの定義を追加する。 [Installed Drivers] ;;; ↓この行を追加 SQLite=1 ;;; ↓このセクションを追加 [SQLite] LibraryName=C:\Program Files\CodeGear\RAD Studio\6.0\sqlite\DbxSQLite.dll GetDriverFunc=getSQLDriverSQLite VendorLib=C:\Program Files\CodeGear\RAD Studio\6.0\sqlite\sqlite.dll RoleName=Cache=2000|TextLength=1024 ④Delphi/C++Builder 2009 を立ち上げ直す。 「TSQLConnection」コンポーネントの「Driver」プロパティの中に「SQLite」が含まれるようになる。 その他にも方法があるので、必要に応じて検討する。
    ]]> </content>
    </entry>
  <entry>
  <title type="html">【PostgreSQL】Windows環境でソースコードからコンパイルする</title>
  <link rel="alternate" type="text/html" href="http://www.monzen.org/blogn/index.php?e=105" />
  <id>tag:www.fs4y.com,2010://1.1.33</id>
  <updated>2008-12-10T08:36:23+09:00</updated>
      <published>2008-12-10T08:36:23+09:00</published>
        <category term="IT-ソフトウェア関連::ツール類" /> 
    <author>
  <name>門前　聖康</name>
      </author>
      <summary type="html">調査目的で、Win32 環境でPostgreSQLをソースコードからコンパイルしようとしている。 PostgreSQLサイトの「 Native Windows FAQ 」や、「 PostgreSQL 8.3 Press Kit 」を参考にしつつ、コンパイル環境（開発環境）を準備する所からはじめる。 以下の条件で行う。 ■実行環境 WindowsXp Sp3 (x86) ■必要な事 コンパイル環境として MinGWとMSYSをセットアップする。 コンパイル時にエラーが発生す ...</summary>
        <content type="html"> <![CDATA[
    調査目的で、Win32 環境でPostgreSQLをソースコードからコンパイルしようとしている。 PostgreSQLサイトの「 Native Windows FAQ 」や、「 PostgreSQL 8.3 Press Kit 」を参考にしつつ、コンパイル環境（開発環境）を準備する所からはじめる。 以下の条件で行う。 ■実行環境 WindowsXp Sp3 (x86) ■必要な事 コンパイル環境として MinGWとMSYSをセットアップする。 コンパイル時にエラーが発生するので、ソースコード(ヘッダファイル)を修正しながら、無理矢理コンパイルする。 ●MinGWとMSYSのダウンロード コンパイラ「MinGW」と作業環境「MSYS」について、それぞれのセットアップ・ファイルをダウンロードする。 MinGWは「 SOURCEFORGE.NETのMinGWサイト 」のMinGW 5.1.4の「 Download リンク 」から、セットアップファイル「 MinGW-5.1.4.exe 」をダウンロードする。 また、MSYSはSOURCEFORGE.NETのCOREを使ってもよいのだが、今回は MSYSダウンロードサイト から「MSYS DTK (developer tool kit)」のセットアップファイル「 msysDTK-1.0.1.exe 」をダウンロードする。 ページ中央付近で「Install MSYS DTK 1.0 in C:\msys\1.0.」のように記述されている場所が、リンクになっている。 ※08.12.09時点では「MinGW」の最新版が「5.1.4」、「MSYS」の最新版が「1.0.11」である。 念のためこのバージョンの直リンクを作っておく。 ・MinGW 5.1.4 : MinGW-5.1.4.exe ・MSYS DTK 1.0 : msysDTK-1.0.1.exe ●MinGWとMSYSのセットアップ 上記でダウンロードしたファイルを実行し、それぞれセットアップする。 ちなみにMSYSのコンソール画面では「コピー＆ペースト」が使えない。これが結構不便なので「 05.ffmpegコンパイル(Win)：msys.batの変更 」を参考にしながら、「コピー＆ペースト」できるようにしておく方がよい。 ●PostgreSQLのソースファイルのダウンロード 日本PostgreSQLユーザー会 よりPostgreSQLのソースファイルをダウンロードする。 ※08.12.09時点では「8.3.5」が最新版のため、アーカイブ・ファイル名は 「 postgresql-8.3.5.tar.gz 」。 ●解凍と属性変更 ダウンロードしたアーカイブ・ファイルを「 Lhaplus 」などを使って解凍する。 ここでは「 C:\postgresql 」に解凍したものとし、以下のように展開されるとする。 C:\postgresql\postgresql-8.3.5\postgresql-8.3.5 このディレクトリに「 configure 」や「 Makefile 」が展開される。 それから、このディレクトリとサブ・ディレクトリの「読み取り専用」属性を外す （Windows のエクスプローラで一括で外す）。 ※Make作業中にファイルにリダイレクトするので読み取り属性を外す必要がある。 ●コンフィギュレーション ①MSYSのインストール先( C:\msys\1.0 など)に配置されている「 msys.bat 」を実行し、シェル環境を立ち上げる。このMSYSのシェル環境で、 # cd /c/postgres/postgresql-8.3.5/postgresql-8.3.5 # ./configure --enable-cassert --enable-debug --without-zlib .... として、Win32用の Makefile が作成される。 ■コンフィギュレーション・エラー コンフィギュレーションを実行した時に、 configure: error: no acceptable C compiler found in $PATH というエラーメッセージが表示される場合、 Cコンパイラのディレクトリがサーチ・パスに登録されていない、という事なので # export PATH=$PATH:/c/MinGW/bin のように、サーチパスに登録してから再度 configure を実行する。 ●コンパイル # mingw32-make.exe のようにMakeする。 ■コンパイルエラー コンパイル中にエラーが発生したので記載しておく。 今回は「調査目的」のため「 何はともあれコンパイルを通すのだ！ 」という方針の下、それぞれ以下のような措置を取った。 〇 libpq-be.h のコンパイルエラー In file included from c:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/security.h:38, from ../../../src/include/libpq/libpq-be.h:50, from ../../../src/include/libpq/libpq.h:21, from be-secure.c:100: c:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/sspi.h:63: error: syntax error before "SECURITY_STRING" In file included from c:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/security.h:39, from ../../../src/include/libpq/libpq-be.h:50, from ../../../src/include/libpq/libpq.h:21, from be-secure.c:100: c:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/ntsecpkg.h:123: error: syntax error before "SECURITY_STRING" c:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/ntsecpkg.h:125: error: syntax error before "LogonServer" c:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/ntsecpkg.h:127: error: syntax error before '}' token c:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/ntsecpkg.h:212: error: syntax error before "SECPKG_NAME_TYPE" c:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/ntsecpkg.h:225: error: syntax error before "SECPKG_NAME_TYPE" c:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/ntsecpkg.h:342: error: syntax error before "PSecurityUserData" mingw32-make[3]: *** [be-secure.o] Error 1 mingw32-make[3]: Leaving directory `c:/postgresql/postgresql-8.3.5/postgresql-8.3.5/src/backend/libpq' mingw32-make[2]: *** [libpq-recursive] Error 2 mingw32-make[2]: Leaving directory `c:/postgresql/postgresql-8.3.5/postgresql-8.3.5/src/backend' mingw32-make[1]: *** [all] Error 2 mingw32-make[1]: Leaving directory `c:/postgresql/postgresql-8.3.5/postgresql-8.3.5/src' mingw32-make: *** [all] Error 2 というエラーが発生した。 そこで「 [HACKERS] 8.3 .4 + Vista + MingW + initdb = ACCESS_DENIED 」を参考に、 ヘッダファイル 「 c:\postgresql\postgresql-8.3.5\postgresql-8.3.5 \src\include\libpq\libpq-be.h 」を以下のように変更 48: #ifdef ENABLE_SSPI 49: #define SECURITY_WIN32 50: #include 51: #undef SECURITY_WIN32 ↓ #ifdef ENABLE_SSPI #define SECURITY_WIN32 #include /* 
    ]]> </content>
    </entry>
  <entry>
  <title type="html">【PRO*C++】main.cc:336: error: unknown escape sequence: &amp;#039;\216&amp;#039;</title>
  <link rel="alternate" type="text/html" href="http://www.monzen.org/blogn/index.php?e=104" />
  <id>tag:www.fs4y.com,2010://1.1.35</id>
  <updated>2008-12-04T19:19:52+09:00</updated>
      <published>2008-12-04T19:19:52+09:00</published>
        <category term="ネット関連" /> 
    <author>
  <name>門前　聖康</name>
      </author>
      <summary type="html">Redhat Enterprise Linux 5にて、Oracle10g のPRO*C++プログラミングをしている。 「main.cc」 というC++で記述しているソースファイルをコンパイルしようとしたら、 main.cc:336: error: unknown escape sequence: &apos;\216&apos; というエラーが表示されてコンパイルできない。 色々調べた結果、「 表示 」という日本語を含んでいるためと分かった。 つまり 文字コードの問題 。 「 表示 」⇒「 表\示 」のよ ...</summary>
        <content type="html"> <![CDATA[
    Redhat Enterprise Linux 5にて、Oracle10g のPRO*C++プログラミングをしている。 「main.cc」 というC++で記述しているソースファイルをコンパイルしようとしたら、 main.cc:336: error: unknown escape sequence: '\216' というエラーが表示されてコンパイルできない。 色々調べた結果、「 表示 」という日本語を含んでいるためと分かった。 つまり 文字コードの問題 。 「 表示 」⇒「 表\示 」のように変更して解決。
    ]]> </content>
    </entry>
  <entry>
  <title type="html">【Windows 2000】NTPサーバーを使ってシステム時刻を自動で同期</title>
  <link rel="alternate" type="text/html" href="http://www.monzen.org/blogn/index.php?e=103" />
  <id>tag:www.fs4y.com,2010://1.1.37</id>
  <updated>2008-11-27T12:01:35+09:00</updated>
      <published>2008-11-27T12:01:35+09:00</published>
        <category term="IT-ソフトウェア関連::Windows" /> 
    <author>
  <name>門前　聖康</name>
      </author>
      <summary type="html">Windows 2000 サーバーを使っていて、気がついたら時刻が30分ほどズレていた。 あれ？「NTPサーバーに接続できなくなった？のだろうか」などと思いつつ、よく考えてみると「NTPサーバーに接続して自動的に時間を合わせる機能」は、WindowsXPから使えるようになった機能でした。 そういえば、Windows95/98 を使っていた頃は、 「 桜時計 」のような便利なフリーウェアを使って ...</summary>
        <content type="html"> <![CDATA[
    Windows 2000 サーバーを使っていて、気がついたら時刻が30分ほどズレていた。 あれ？「NTPサーバーに接続できなくなった？のだろうか」などと思いつつ、よく考えてみると「NTPサーバーに接続して自動的に時間を合わせる機能」は、WindowsXPから使えるようになった機能でした。 そういえば、Windows95/98 を使っていた頃は、 「 桜時計 」のような便利なフリーウェアを使って、OSのシステム時刻を自動調節していました。 これが、Windows 2000であれば、Windows OSの基本機能（サービス）だけで 「自動的に時刻を同期できる」 事が分かったので、これを使う。 [スタート]メニュー ⇒[ファイル名を指定して実行]から、 net time /setsntp:210.173.160.27 ※他のNTPサーバーを使う場合は「 有効なNTPサーバー 」参照の事。 を実行してサービスを登録する。 サービスを開始するために、 [コントロールパネル] ⇒[管理ツール] ⇒[サービス] サービスの一覧の中から「Windows Time」を選択して開く。 ・[スタートアップの種類]⇒[自動]に変更して「適用」を実行。 ・「開始」を実行する。 以降、Windowsが起動する時に自動的に開始されるようになった。 
    ]]> </content>
    </entry>
  <entry>
  <title type="html">【Oracle 11g】UTL_FILEを使ってテキスト・ファイルを作成する時の問題</title>
  <link rel="alternate" type="text/html" href="http://www.monzen.org/blogn/index.php?e=102" />
  <id>tag:www.fs4y.com,2010://1.1.39</id>
  <updated>2008-11-18T20:43:05+09:00</updated>
      <published>2008-11-18T20:43:05+09:00</published>
        <category term="IT-ソフトウェア関連::Oracle" /> 
    <author>
  <name>門前　聖康</name>
      </author>
      <summary type="html">RedHat Enterprisze Linux 5サーバーにOracle 11g を搭載している。 このOracle DBのPL/SQLプロシージャーを使って テキストファイルを作成する処理で、問題があったので記述しておく。 以下のような、テキストファイルを作成するためのプロシージャを作成する。 PROCEDURE DATAFILE_MAKE ( P_FILENAME IN CHAR ) IS V_DN VARCHAR2(128); V_FP UTL_FILE.FILE_TYPE; BEGIN V_DD := &apos;/tmp&apos;; V_FP := UTL_FILE.FOPEN(V_DN, P_FILENAME, &apos;W&apos;) ...</summary>
        <content type="html"> <![CDATA[
    RedHat Enterprisze Linux 5サーバーにOracle 11g を搭載している。 このOracle DBのPL/SQLプロシージャーを使って テキストファイルを作成する処理で、問題があったので記述しておく。 以下のような、テキストファイルを作成するためのプロシージャを作成する。 PROCEDURE DATAFILE_MAKE ( P_FILENAME IN CHAR ) IS V_DN VARCHAR2(128); V_FP UTL_FILE.FILE_TYPE; BEGIN V_DD := '/tmp'; V_FP := UTL_FILE.FOPEN(V_DN, P_FILENAME, 'W'); /* DATA_TBLの「DATA_ID」「DATA_01」「DATA_02」のフィールド値を 右詰・固定長のテキストファイルとして出力する */ FOR REC IN ( SELECT DATA_ID ,NVL(DATA_01, ' ') ,NVL(DATA_02, ' ') FROM DATA_TBL ORDER BY DATA_ID ) LOOP UTL_FILE.PUT(V_FP, SUBSTR(' ' || REC.DATA_ID, -6)); UTL_FILE.PUT(V_FP, SUBSTR(' ' || REC.DATA_01, -8)); UTL_FILE.PUT(V_FP, SUBSTR(' ' || REC.DATA_02, -8)); UTL_FILE.NEW_LINE(V_FP, 1); END LOOP; UTL_FILE.FCLOSE(V_FP); END DATAFILE_MAKE; 上記↑のようなプロシージャを作成し、 exec DATAFILE_MAKE('data_01.txt'); のように実行して、 /tmp/data_01.txt という固定長のテキスト・ファイルを作成する。 ※ちなみにORACLEのサーバー・パラメータに以下を追加しておく。 UTL_FILE_DIR='*' この時に以下のような問題に遭遇した。 1. ファイルの書込み権限が無いので、削除できない 2. 改行コードが"LF"となってしまう。 ■ファイルの書込み権限が無いので、削除できない ●内容 作成されるファイル「/tmp/data_01.txt」のオーナーが「oracle」ユーザーで、ファイルのパーミッションが「rw-r--r--」(644)となっているため、ファイル作成後に、他のユーザーで削除できない事が判明した。 ●解決策 「~oracle/.bash_profile」を編集、 「umask 022」⇒ 「umask 000」 に変更する。 変更後、Oracle DBサーバーを再起動する。 ●概要 オラクルDBのサーバー・プロセスを実行しているユーザーは「oracle」である。 この「oracle」ユーザーのログインスクリプト（ホームディレクトリ配下の「.bash_profile」）を見てみると、UMASKが0200となっている。 そのため、oracleユーザーで作成するファイルは、デフォルトのパーミッションが0644となってしまい、他のユーザーには書き込み権限が与えられない。 従って、デフォルトのパーミッションが「0666」となるよう umask 000 としておく。 ■改行コードが"LF"となってしまう。 ●内容 テキストファイルの改行コードが"LF"となってしまっているため、 Windowsでこのファイルを操作する時に、不整合が生じた。 ●解決策 外部コマンドを使って"LF"を"CRLF"に変更する事にした。 ・nkfを使う(文字コードをSHIFT-JISとする) # nkf -cws $org > $file ・perlを使う方法でもOK # perl -pe 's/\n/\r\n/' $org > $file ※注意：変換前のファイルの改行コードが既に"CRLF"だった場合 nkfの場合、変換後のファイルは"CRLF"のままなので問題ないのだが、Perlの場合には、変換後のファイルは「"CRCRLF"」となってしまう。 もう少し複雑なスクリプトにすれば、Perlでも変換できますが･･･。 ●概要 根本的な解決策が分からなかったので、上記のような方法を使った。 本来は「ファイルを作成する時点で"CRLF"となる」という方法が本筋とは思うのだが･･･。 
    ]]> </content>
    </entry>
</feed>