2005-03-12から1日間の記事一覧

lm_sensors

http://secure.netroedge.com/%7Elm78/ 温度やファンの回転数を監視する.Recommended Kernel Configuration に従って Device Drivers -> I2C Support 以下の全てのオプションを M にしてカーネルを再構築. # emerge lm_sensors # sensors-detect 質問に対…

cpudyn

電力管理ガイド Athlon 64 の Cool'n'Quiet を有効にする. # cd /usr/src/linux Power Management Options 以下のオプションをいじってカーネル再構築 # emerge cpudyn # rc-update add cpudyn default # /etc/init.d/cpudyn start # cat /proc/cpuinfo cpu…

Apache2 + PHP5

# emerge apache php # nano -w /etc/conf.d/apache2 APACHE2_OPTS="-D PHP5" # cd /etc/apache2/modules.d # ln -s ../conf/modules.d/70_mod_php5.conf . # nano -w /etc/apache2/httpd.conf AddType application/x-httpd-php .php AddType application/x-…

USE フラグの説明

/usr/portage/profiles/use.desc, /usr/portage/profiles/use.local.desc とかに書かれている.

パッケージがマスクされている理由

/usr/portage/profiles/package.mask を読めば書かれていることがある.

パッケージを入れたフリをする

USE="-X" していても X Window System のサポートをやめず,しつこく X.org をインストールしようとするパッケージがある.そんなとき, # emerge -pv xorg # emerge --inject x11-base/xorg-x11-(version)とすれば X.org を入れたフリができる. 追記 2005/…

マスクされたパッケージを利用する

Gentoo Linux x86 ハンドブック マスクされたパッケージを利用する !!! All ebuilds that could satisfy "パッケージ名" have been masked. !!! One of the following masked packages is required to complete your request: - パッケージ名 (masked by: mi…

C で無限大

double 型の変数を Inf とか -Inf とかで初期化したいときの話.double には INT_MAX みたいな定数はなさそう.(C99 には INFINITY という定数がある) double inf1 = 1.0 / 0.0; // warning: division by zero double inf2 = 1.0 / abs(0); // warning: divi…

GHC 6.4

http://www.haskell.org/ghc/ 3/11 付でリリースされていた.