アットウィキロゴ

管理者権限


sudoでpasswdコマンドを実行すると、rootにパスワードを設定することができる。

% sudo passwd root
password:

rootにパスワードを設定したら、あとはsuコマンドでrootになれる。
以下はrootにパスワードを設定した後のコマンド実行例である。


パスを通す

# export PATH=$PATH:/Users/miura/gcc/usr/local/bin

"PATH=$PATH:" で今までのパスに加えてくれる。

# export で確認。




Apple X11 のパス


Finkやi-installer で導入したコマンドのパスが通っていないので、作る。.bash_profile というファイルを作って、そこに
PATH=$PATH:$HOME/bin:/usr/local/bin:/sw/bin:
と追加してみたがうまくいかない。ついでに/bashrcに
source .bash_profile
を追加したらなんとか動くようになった。


AirMac

たまに家でつながらないので、いろいろいじっていたが、結局ルータを再起動したら動くようになった。何だったんだろう?


ImageMagick

“Display”で起動する。なかなか使えそう。


X11でマニュアルが見えない。

terminal で “man man”をかけて、出てきた/usr/share/misc/man.confをチェック。MANPATHをexport で加えるようにしたら動くようになった。
ついでに、X window system で使えるコマンドが/usr/X11R6/man/の下にいろいろ出ている。なかなかいじるとおもろいが。

iCalのクラッシュ


MacBookで、iCal の調子が悪くなった。さらに環境設定で管理者権限のパスワードを入れるダイアログが一瞬出て消えるようになった。なんだこれ?探してみたら

~/Library/Logs/CrashReporter/iCal.crash.log

のなかで、libstdc++.dylibでエラーが起きていることがわかった。記述を探してみると、



Hi,

I have observed this problem on a number of machines (all Intel, Mac OS X 10.4.8-10). Unfortunately the only way of recovering it I have found also is running Archive and Install. However, the problem seems to only occur when there is a version of GCC (and hence libstdc++.6.dylib) installed in /usr/local/.

Is or was that true of your machine?

We have been able to avoid re-occurence so far by renaming /usr/local just before running the update and then restoring it afterwards (including after any necessary reboots). It seems that the Software Update links against the /usr/local/lib version of libstdc++.6.dylib if it finds it, rather than that in /usr/lib, or something of that nature.


という記事を発見。hpc.sourceforge.net でgccをインストールしていたので、多分原因はこれであろう。しょうがないのでアーカイブインストールする。

タグ:

+ タグ編集
  • タグ:
最終更新:2007年11月12日 05:06