Unix
ビルド用のディレクトリを作成 ( ここでは ディレクトリ名を "buildir" )し このディレクトリから../configure --prefix=/home/shuuzou/src/glibc-2.3.6/inst_tmp --enable-add-ons --with-headers=/usr/src/linux-2.4/include --without-selinuxすると エラ…
あるコマンドがLD_LIBRARY_PATHなどの環境変数から ライブラリの検索パスを得ている場合、そのコマンドを sudoから実行すると以下のようなエラーがでる。(コマンド) error while loading shared libraries: libstdc++.so.6: cannot open shared object file:…
ちょいメモ。int stat(const char *path, struct stat *buf)関数と int lstat(const char *path, struct stat *buf)関数との違い。path で 指定するファイルがシンボリックだった場合 stat は リンク先のファイルの状態を lstat は リンク元のファイルの状態…
良く忘れるので 時刻合わせ# ntpdate ntp.nc.u-tokyo.ac.jp ← ちなみに東京大学