macportsとgccとgitインストール

macports

  • なんかmacで使われているパッケージインストールマネージャ的なものでいろいろお世話になるそうなので入れる

ダウンロード

インストール

  • ダブルクリックして通常パッケージと同様にインストール
  • 特に設定する項目なし

設定

  • 設定ファイルとかリポジトリ管理サーバとかを最新にするための更新
 kamihayashi-no-MacBook-Air:ios kambayashia$ sudo port -v selfupdate
 :
 :
 The ports tree has been updated. To upgrade your installed ports, you should run
  port upgrade outdated

gitインストール

f:id:kambayashi:20120724005843p:image

  • ようやくインストール
    • これでなんやかんや入る
kamihayashi-no-MacBook-Air:ios kambayashia$ sudo port install git-core
Password:

git clone

  • これでclone可能
kamihayashi-no-MacBook-Air:ios kambayashia$ git clone git@xxxxxxx.jp:xxxxxxxxxxxx/hogehoge.git
Cloning into 'hogehoge'...
The authenticity of host 'xxxxxxxxxxxxxxxxxxxxxxx' can't be established.
RSA key fingerprint is xxxxxxxxxxxxxxxxxxxxxxxxxx
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added 'xxxxxxxxxxxxxxxxxxxxxxxxx' (RSA) to the list of known hosts.
Identity added: /Users/kambayashia/.ssh/id_rsa (/Users/kambayashia/.ssh/id_rsa)
remote: Counting objects: 207, done.
remote: Compressing objects: 100% (191/191), done.
remote: Total 207 (delta 9), reused 207 (delta 9)
Receiving objects: 100% (207/207), 10.44 MiB | 2.23 MiB/s, done.
Resolving deltas: 100% (9/9), done.