Ports
どうも Ports に登録されている PHP が 5.2 系から 5.3 系に変更されたのをきっかけにして、PHP のモジュールの更新ができなくなった。 修正に参考にしたサイト FreeBSD - portupgradeの導入・利用
現在、設定されているオプションの確認 % make showconfig 現在、設定されているオプションの破棄 % sudo make rmconfig オプションの再設定 % sudo make config オプションを変更して、最初のインストールを失敗した場合 オプションを変更して、初めて port…
作業前に、すでに Apache と MySQL Server、MySQL Client をインストール済みだったが、ports から phpMyAdmin をインストールする場合、依存関係にあるプログラムをインストールしてくれる。 # whereis phpmyadmin phpmyadmin: /usr/ports/databases/phpmya…
対象となる ports の確認をする # portsclean -Dn 掃除を実行する # portsclean -D
make deinstall でアンインストールをする # whereis p5-DBD-Oracle p5-DBD-Oracle: /usr/ports/databases/p5-DBD-Oracle # cd /usr/ports/databases/p5-DBD-Oracle/ # make deinstall ===> Deinstalling for databases/p5-DBD-Oracle ===> Deinstalling p5-…
# whereis py-MySQLdb py-MySQLdb: /usr/ports/databases/py-MySQLdb # cd /usr/ports/databases/py-MySQLdb # make fetch-recursive # make install clean # whereis py-sqlobject py-sqlobject: /usr/ports/databases/py-sqlobject # cd /usr/ports/databa…
変更されたのは2009年6月9日なので、そろそろ変更を反映しても良さそう。 # cd /usr/ports/ /usr/ports# ls -l lang/ | grep python2 drwxr-xr-x 3 root wheel 512 Jun 12 09:06 python23 drwxr-xr-x 3 root wheel 512 Jun 12 09:06 python24 drwxr-xr-x 3 r…
# whereis pecl-APC pecl-APC: /usr/ports/www/pecl-APC # cd /usr/ports/www/pecl-APC # make fetch-recursive # make install clean ************************************************************************ You may edit /usr/local/etc/php.ini to c…
memcached をインストールする # whereis memcached memcached: /usr/ports/databases/memcached # cd /usr/ports/databases/memcached/ # make fetch-recursive # make install clean PHP のエクステンション、pecl-memcache をインストールする # whereis …
httpd.conf の設定 httpd.conf に PHP の設定がない場合は下記のように設定する。 % sudo vi /usr/local/etc/apache22/httpd.conf # enable PHP 5.x <IfModule mod_php5.c> AddType application/x-httpd-php .php AddType application/x-httpd-php-source .phps </IfModule> % sudo /usr/loca…
% whereis php5-extensions /usr/ports/lang/php5-extensions % cd /usr/ports/lang/php5-extensions % sudo make config-recursive % make install clean make config-recursive でインストールする Extension を選択する。 php5-extensionsの依存関係で、p…
# Ports Tree を最新にする # portsnap fetch update # バージョンが古くなっているパッケージを表示する # portversion -vL= [Updating the portsdb <format:bdb_btree> in /usr/ports ... - 18486 port entries found .........1000.........2000.........3000.........4000.</format:bdb_btree>…
portsnap のマニュアルに cron で実行する場合は、現地時間の午前3時に実施するように記載されている。 If your clock is set to local time, adding the line 0 3 * * * root /usr/sbin/portsnap cron to /etc/crontab is a good way to make sure you alwa…
# cd /usr/ports/ # whereis portsnap portsnap: /usr/ports/ports-mgmt/portsnap # cd ports-mgmt/portsnap # make fetch-recursive # make install clean 初めて portsnap を利用するときは portsnap は最初だけ全ての ports tree 全体を portsnap.conf フ…
昔は cvsup を利用していたが、今は portsnap を利用するようだ。 portsnap と cvsupについて CVSup の短所は CVSup is insecure. The protocol uses no encryption or signing, and any attacker who can intercept the connection can insert arbitrary da…
# whereis zsh zsh: /usr/ports/shells/zsh # cd /usr/ports/shells/zsh/ # make # make install # make clean 必要なソースを先に取得する方法 依存関係にある ports を先にダウンロードしておく。 # make fetch-recursive
ユーザー領域にFreeBSD portsをインストールする方法
FreeBSD のシステムインストール時に、 sysinstall が Ports Collection をインストールするかどうかを尋ねてきたはずです。 No を選んだ場合、以下の作業をおこない Ports Collection をインストールしてください。 sysinstall を利用する方法 ここでは、再…