portsからソフトのインストール
portsによるソフトファイルのインストール
はじめに _
まずは、net/cvsup-without-gui をインストールしportsを最新にする。
- rootになる
$ su -m
- net/cvsup-without-guiのインストール
# cd /usr/ports/net/cvsup-without-gui # make # make install # make clean
インストールされたソフト群を確認する。
# pkg_info
結果
cvsup-without-gui-16.1h General network file distribution system optimized for C VS expat-1.95.6_1 XML 1.0 parser written in C ezm3-1.1 Easier, more portable Modula-3 distribution for building CV gettext-0.11.5_1 GNU gettext package gmake-3.80 GNU version of 'make' utility libiconv-1.8_2 A character set conversion library libtool-1.3.4_4 Generic shared library support script
- portsを最新にする。
# cd /root # cp /usr/share/examples/cvsup/ports-supfile . # vi ports-supfile
ports-supfileの以下の行を修正する
*default host=CHANGE_THIS.FreeBSD.org
私は以下のように変更した。
*default host=cvsup6.jp.FreeBSD.org
cvsupの実行
# cvsup -L 2 ports-supfile
ソフトのインストール _
システム管理関連 _
shells/bash2 _
# cd /usr/ports/shells/bash2 # make # make install # make clean
user1のデフォルトshellをbashに変更する
# vipw
[変更前] user1:$$password$$:1001:1001::0:0:User &:/home/jun1:/bin/sh
[変更後] user:$$password$$:1001:1001::0:0:User &:/home/jun1:/usr/local/bin/bash
misc/screen _
# cd /usr/ports/misc/screen # make # make install # make clean
japanese/less _
# cd /usr/ports/japanese/less # make # make install # make clean
editors/vim _
# cd /usr/ports/editors/vim # make # make install # make clean
エラー--2004/1/8
===> gettext-0.12.1 depends on shared library: expat.4 - found
===> Generating temporary packing list
===> Checking if devel/gettext already installed
===> An older version of devel/gettext is already installed (gettext-0.11.5_1)
You may wish to ``make deinstall'' and install this port again
by ``make reinstall'' to upgrade it properly.
If you really wish to overwrite the old port of devel/gettext
without deleting it first, set the variable "FORCE_PKG_REGISTER"
in your environment or the "make install" command line.
*** Error code 1
security/sudo _
# cd /usr/ports/security/sudo # make # make install # make clean
sudoコマンドが使えるユーザーを設定する
# visudo
[追加] user1 ALL=(ALL) ALL
sysutils/portupgrade _
# cd /usr/ports/sysutils/portupgrade # make # make install # make clean
ファイル書庫関連 _
archivers/lha _
# cd /usr/ports/archivers/lha # make # make install # make clean
archivers/unzip _
# cd /usr/ports/archivers/unzip # make # make install # make clean
アプリケーション群 _
japanese/ruby-uconv _
# cd /usr/ports/japanese/ruby-uconv # make # make install # make clean
www/apache2 _
- suEXECを有効にする
まずは、portupgradeの設定
# vi /usr/local/etc/pkgtools.conf
[追加] MAKE_ARGS = { 'www/apache2' => 'WITH_SUEXEC=yes', } - suEXECを有効にしたapache2をインストール
# cd /usr/ports/www/apache2 # make WITH_SUEXEC=yes # make WITH_SUEXEC=yes install # make clean
www/mod_ruby _
# cd /usr/ports/www/mod_ruby # make # make install # make clean
www/mod_perl2 _
# cd /usr/ports/www/mod_perl2 # make # make install # make clean
lang/php5 _
# cd /usr/ports/lang/php5 # make # make install # make clean
注)php5をpostgresql7より先にインストールすると、php5と一緒にpostgresql-clientがインストールされる。このpostgresql-clientがインストールされているとpostgresql7がインストールできない。このためPostgreSQLサーバーが欲しい場合は先にdatabase/postgresql7をインストールしてからlang/php5をインストールする必要がある。
www/w3m-m17n _
# cd /usr/ports/www/w3m-m17n # make # make install # make clean
japanese/nkf _
# cd /usr/ports/japanese/nkf # make # make install # make clean
インストールしたソフト群 _
# pkg_info
結果
Copyright (C) 2003-2006 A.SAKAKI All Rights Reserved.
パソコンでサーバーを構築して、自宅サーバにしよう。