差分

この文書の現在のバージョンと選択したバージョンの差分を表示します。

この比較画面にリンクする

両方とも前のリビジョン 前のリビジョン
次のリビジョン
前のリビジョン
os:freebsd:ports:start [2010/05/21 22:03]
yuki Page moved and renamed from os:freebsd:ports to os:freebsd:ports:start
os:freebsd:ports:start [2011/11/04 05:41] (現在)
yuki
ライン 1: ライン 1:
-====== portsを使う ​======+====== ports ======
 FreeBSDのportsはaptとかyumとは少し趣が違って、ソースを落として自分でコンパイルする仕組み(だといいなぁ)。\\ FreeBSDのportsはaptとかyumとは少し趣が違って、ソースを落として自分でコンパイルする仕組み(だといいなぁ)。\\
 FreeBSDを導入時によく使うのでメモ程度に。 FreeBSDを導入時によく使うのでメモ程度に。
ライン 8: ライン 8:
 日本語環境でハンガリー語とかベトナム語は使わないから最初に削っておく。 日本語環境でハンガリー語とかベトナム語は使わないから最初に削っておく。
 <​code>​ <​code>​
-cat "​REFUSE arabic chinese french german hebrew hungarian"​ >> /​etc/​portsnap.conf +# echo "​REFUSE arabic chinese french german hebrew hungarian"​ >> /​etc/​portsnap.conf 
-cat "​REFUSE korean polish portuguese russian ukrainian vietnamese"​ >> /​etc/​portsnap.conf+# echo "​REFUSE korean polish portuguese russian ukrainian vietnamese"​ >> /​etc/​portsnap.conf
 </​code>​ </​code>​
  
 初回はportsツリーが無いので一から作成。 初回はportsツリーが無いので一から作成。
 <​code>​ <​code>​
-portsnap fetch extract +portsnap fetch extract 
-</code+</code>
 2回目以降は差分だけアップデート 2回目以降は差分だけアップデート
 <​code>​ <​code>​
-portsnap fetch update+portsnap fetch update
 </​code>​ </​code>​
  
ライン 26: ライン 26:
   - ディレクトリ移動   - ディレクトリ移動
   - make install clean   - make install clean
 +    * make config-recursiveを先に使用することで、依存関係先のmakeコンフィグも一括で先に設定できる。お茶でも飲もう。
  
 例:openssh-portable 例:openssh-portable
ライン 60: ライン 61:
 </​code>​ </​code>​
  
 +===== パッチがbrokenになったとき =====
 +例えば、以下のようなメッセージが出力された場合
 +<​code>#​ pkg_replace openssh-portable
 +---> ​ Replacing '​openssh-portable-5.2.p1_3,​1'​ with '​openssh-portable-5.8.p2,​1'​
 +---> ​ Building '/​usr/​ports/​security/​openssh-portable'​
 +===> ​ openssh-portable-5.8.p2,​1 is marked as broken: latest upstream sftp file control public key patch is not up to date for OpenSSH 5.8p2.
 +*** Error code 1</​code>​
 +make configを行い、(broken)と付いたパッチのチェックを外して([X] -> [ ])、再度makeしてみること。
  
  
os/freebsd/ports/start.1274446994.txt.gz · 最終更新: 2010/05/22 17:40 (外部編集)
CC Attribution-Noncommercial-Share Alike 4.0 International
Driven by DokuWiki Recent changes RSS feed Valid CSS Valid XHTML 1.0