FreeBSDにMySQLをインストール

VMware上のFreeBSDMySQLをインストールする。
今、使っているサーバーと近い状態にしたいのでインストースしているパケージのバージョンは
出来るだけ合わせるようにしようと考えている。
昨日は、↓こんな感じでハマってしまったが、状況を整理して仕切り直し。
MySQL(mysql51)をインストール ※試行錯誤中

今、使っているサーバーの状態

%portversion -v
apache-2.2.6                <  needs updating (port has 2.2.8) 
autoconf-2.61_2             =  up-to-date with port 
autoconf-wrapper-20071109   =  up-to-date with port 
db41-4.1.25_4               =  up-to-date with port 
drac-1.12_6                 <  needs updating (port has 1.12_7) 
expat-2.0.0_1               =  up-to-date with port 
gettext-0.14.5_2            <  needs updating (port has 0.16.1_3) 
gmake-3.81_2                =  up-to-date with port 
help2man-1.36.4_1           =  up-to-date with port 
libiconv-1.9.2_2            <  needs updating (port has 1.11_1) 
libtool-1.5.24              =  up-to-date with port 
libxml2-2.6.27              <  needs updating (port has 2.6.31) 
m4-1.4.9,1                  =  up-to-date with port 
mysql-client-5.1.23         =  up-to-date with port 
mysql-server-5.1.23         =  up-to-date with port 
p5-Authen-PAM-0.16_1        =  up-to-date with port 
p5-Net-SSLeay-1.30_1        =  up-to-date with port 
p5-gettext-1.05_1           =  up-to-date with port 
perl-5.8.8_1                =  up-to-date with port 
php5-5.2.5                  <  needs updating (port has 5.2.5_1) 
php5-mbstring-5.2.5         <  needs updating (port has 5.2.5_1) 
php5-mysql-5.2.5_1          =  up-to-date with port 
pkg-config-0.21             <  needs updating (port has 0.22_1) 
portaudit-0.5.11            <  needs updating (port has 0.5.12) 
portupgrade-2.4.3_2,2       =  up-to-date with port 
qpopper-4.0.9_1             <  needs updating (port has 4.0.9_2) 
rsync-2.6.9_1               <  needs updating (port has 2.6.9_2) 
ruby-1.8.5.12,1             <  needs updating (port has 1.8.6.111_1,1) 
ruby18-bdb-0.6.2            =  up-to-date with port 
ruby18-gems-1.0.1_4         =  up-to-date with port 
unzip-5.52_3                =  up-to-date with port 
webmin-1.350                <  needs updating (port has 1.400) 
wget-1.10.2                 <  needs updating (port has 1.11) 

VMware上のFreeBSDの状態

bsd# portversion -v
9base-b20060209             =  up-to-date with port 
autoconf-2.13.000227_6      =  up-to-date with port 
autoconf-2.61_2             =  up-to-date with port 
autoconf-wrapper-20071109   =  up-to-date with port 
automake-1.4.6_4            =  up-to-date with port 
automake-wrapper-20071109   =  up-to-date with port 
db41-4.1.25_4               =  up-to-date with port 
electricfence-2.2.2_2       =  up-to-date with port 
gettext-0.14.5_2            <  needs updating (port has 0.16.1_3) 
gmake-3.81_2                =  up-to-date with port 
help2man-1.36.4_1           =  up-to-date with port 
libiconv-1.9.2_2            <  needs updating (port has 1.11_1) 
libtool-1.5.24              =  up-to-date with port 
linux_base-fc-4_13          =  up-to-date with port 
lynx-2.8.5_2                <  needs updating (port has 2.8.6.5_2,1) 
m4-1.4.9,1                  =  up-to-date with port 
mysql-client-5.0.27         <  needs updating (port has 5.0.51a) 
p5-gettext-1.05_1           =  up-to-date with port 
perl-5.8.8_1                =  up-to-date with port 
popt-1.7_4                  =  up-to-date with port 
portupgrade-2.4.3_2,2       =  up-to-date with port 
rpm-3.0.6_13                =  up-to-date with port 
ruby-1.8.5_3,1              <  needs updating (port has 1.8.6.111_2,1) 
ruby18-bdb-0.6.2            =  up-to-date with port 

mysql-clientのバージョンが違うので削除

mysql-clientのバージョンが違うのでVMwareFreeBSDからmysql-client-5.0.27を削除する。

bsd# pkg_deinstall mysql-client-5.0.27
--->  Deinstalling 'mysql-client-5.0.27'
[Updating the pkgdb <format:bdb_btree> in /var/db/pkg ... - 23 packages found (-1 +0) (...) done]

portversionで確認

bsd# portversion -v
9base-b20060209             =  up-to-date with port 
autoconf-2.13.000227_6      =  up-to-date with port 
autoconf-2.61_2             =  up-to-date with port 
autoconf-wrapper-20071109   =  up-to-date with port 
automake-1.4.6_4            =  up-to-date with port 
automake-wrapper-20071109   =  up-to-date with port 
db41-4.1.25_4               =  up-to-date with port 
electricfence-2.2.2_2       =  up-to-date with port 
gettext-0.14.5_2            <  needs updating (port has 0.16.1_3) 
gmake-3.81_2                =  up-to-date with port 
help2man-1.36.4_1           =  up-to-date with port 
libiconv-1.9.2_2            <  needs updating (port has 1.11_1) 
libtool-1.5.24              =  up-to-date with port 
linux_base-fc-4_13          =  up-to-date with port 
lynx-2.8.5_2                <  needs updating (port has 2.8.6.5_2,1) 
m4-1.4.9,1                  =  up-to-date with port 
p5-gettext-1.05_1           =  up-to-date with port 
perl-5.8.8_1                =  up-to-date with port 
popt-1.7_4                  =  up-to-date with port 
portupgrade-2.4.3_2,2       =  up-to-date with port 
rpm-3.0.6_13                =  up-to-date with port 
ruby-1.8.5_3,1              <  needs updating (port has 1.8.6.111_2,1) 
ruby18-bdb-0.6.2            =  up-to-date with port 


mysql-clientが削除されている。

gettextはそのまま

gettextのバージョンはどちらもgettext-0.14.5_2なので
取りあえずこのままにする。


portinstall mysql-server

mysql51-clientがfetch errorになってしまう。

bsd# portinstall mysql-server
--->  Found 5 ports matching 'mysql-server':
	databases/mysql323-server
	databases/mysql40-server
	databases/mysql41-server
	databases/mysql50-server
	databases/mysql51-server
Install 'databases/mysql323-server'? [yes] no
Install 'databases/mysql40-server'? [yes] no
Install 'databases/mysql41-server'? [yes] no
Install 'databases/mysql50-server'? [yes] no
Install 'databases/mysql51-server'? [yes] yes
[Gathering depends for databases/mysql51-server ......... done]
--->  Installing 'mysql-client-5.1.24_1' from a port (databases/mysql51-client)
--->  Building '/usr/ports/databases/mysql51-client'
===>  Cleaning for mysql-client-5.1.24_1
===>  Vulnerability check disabled, database not found
=> mysql-5.1.24-rc.tar.gz doesn't seem to exist in /usr/ports/distfiles/.
=> Attempting to fetch from ftp://ftp.easynet.be/mysql/Downloads/MySQL-5.1/.
fetch: ftp://ftp.easynet.be/mysql/Downloads/MySQL-5.1/mysql-5.1.24-rc.tar.gz: File unavailable (e.g., file not found, no access)
=> Attempting to fetch from ftp://ftp.fi.muni.cz/pub/mysql/Downloads/MySQL-5.1/.
fetch: ftp://ftp.fi.muni.cz/pub/mysql/Downloads/MySQL-5.1/mysql-5.1.24-rc.tar.gz: File unavailable (e.g., file not found, no access)
=> Attempting to fetch from http://mysql.mirrors.cybercity.dk/Downloads/MySQL-5.1/.
fetch: http://mysql.mirrors.cybercity.dk/Downloads/MySQL-5.1/mysql-5.1.24-rc.tar.gz: Connection refused
=> Attempting to fetch from ftp://ftp.fh-wolfenbuettel.de/pub/database/mysql/Downloads/MySQL-5.1/.
fetch: ftp://ftp.fh-wolfenbuettel.de/pub/database/mysql/Downloads/MySQL-5.1/mysql-5.1.24-rc.tar.gz: File unavailable (e.g., file not found, no access)
=> Attempting to fetch from ftp://ftp.gwdg.de/pub/misc/mysql/Downloads/MySQL-5.1/.
fetch: ftp://ftp.gwdg.de/pub/misc/mysql/Downloads/MySQL-5.1/mysql-5.1.24-rc.tar.gz: File unavailable (e.g., file not found, no access)
=> Attempting to fetch from http://netmirror.org/mirror/mysql.com/Downloads/MySQL-5.1/.
fetch: http://netmirror.org/mirror/mysql.com/Downloads/MySQL-5.1/mysql-5.1.24-rc.tar.gz: Not Found
=> Attempting to fetch from ftp://netmirror.org/mysql.com/Downloads/MySQL-5.1/.
fetch: ftp://netmirror.org/mysql.com/Downloads/MySQL-5.1/mysql-5.1.24-rc.tar.gz: File unavailable (e.g., file not found, no access)
=> Attempting to fetch from http://mirrors.ntua.gr/MySQL/Downloads/MySQL-5.1/.
fetch: http://mirrors.ntua.gr/MySQL/Downloads/MySQL-5.1/mysql-5.1.24-rc.tar.gz: Not Found
=> Attempting to fetch from ftp://ftp.ntua.gr/pub/databases/mysql/Downloads/MySQL-5.1/.
fetch: ftp://ftp.ntua.gr/pub/databases/mysql/Downloads/MySQL-5.1/mysql-5.1.24-rc.tar.gz: File unavailable (e.g., file not found, no access)
=> Attempting to fetch from http://mysql.sote.hu/Downloads/MySQL-5.1/.
fetch: http://mysql.sote.hu/Downloads/MySQL-5.1/mysql-5.1.24-rc.tar.gz: Not Found
=> Attempting to fetch from ftp://ftp.rhnet.is/pub/mysql/Downloads/MySQL-5.1/.
fetch: ftp://ftp.rhnet.is/pub/mysql/Downloads/MySQL-5.1/mysql-5.1.24-rc.tar.gz: File unavailable (e.g., file not found, no access)
=> Attempting to fetch from ftp://mirror.widexs.nl/pub/mysql/Downloads/MySQL-5.1/.
fetch: ftp://mirror.widexs.nl/pub/mysql/Downloads/MySQL-5.1/mysql-5.1.24-rc.tar.gz: File unavailable (e.g., file not found, no access)
=> Attempting to fetch from ftp://mirror.etf.bg.ac.yu/mysql/Downloads/MySQL-5.1/.
fetch: ftp://mirror.etf.bg.ac.yu/mysql/Downloads/MySQL-5.1/mysql-5.1.24-rc.tar.gz: File unavailable (e.g., file not found, no access)
=> Attempting to fetch from ftp://mirror.switch.ch/mirror/mysql/Downloads/MySQL-5.1/.
fetch: ftp://mirror.switch.ch/mirror/mysql/Downloads/MySQL-5.1/mysql-5.1.24-rc.tar.gz: File unavailable (e.g., file not found, no access)
=> Attempting to fetch from http://mysql.dp.ua/Downloads/MySQL-5.1/.
fetch: http://mysql.dp.ua/Downloads/MySQL-5.1/mysql-5.1.24-rc.tar.gz: No address record
=> Attempting to fetch from http://mysql.mirrored.ca/Downloads/MySQL-5.1/.
fetch: http://mysql.mirrored.ca/Downloads/MySQL-5.1/mysql-5.1.24-rc.tar.gz: size mismatch: expected 27501156, actual 593
=> Attempting to fetch from ftp://mirror.services.wisc.edu/mirrors/mysql/Downloads/MySQL-5.1/.
fetch: ftp://mirror.services.wisc.edu/mirrors/mysql/Downloads/MySQL-5.1/mysql-5.1.24-rc.tar.gz: File unavailable (e.g., file not found, no access)
=> Attempting to fetch from ftp://ftp.orst.edu/pub/mysql/Downloads/MySQL-5.1/.
fetch: ftp://ftp.orst.edu/pub/mysql/Downloads/MySQL-5.1/mysql-5.1.24-rc.tar.gz: No address record
=> Attempting to fetch from http://mysql.mirrors.pair.com/Downloads/MySQL-5.1/.
fetch: http://mysql.mirrors.pair.com/Downloads/MySQL-5.1/mysql-5.1.24-rc.tar.gz: Not Found
=> Attempting to fetch from ftp://mysql.bannerlandia.com.ar/mirrors/mysql/Downloads/MySQL-5.1/.
fetch: ftp://mysql.bannerlandia.com.ar/mirrors/mysql/Downloads/MySQL-5.1/mysql-5.1.24-rc.tar.gz: Connection refused
=> Attempting to fetch from ftp://ftp.linorg.usp.br/mysql/Downloads/MySQL-5.1/.
fetch: ftp://ftp.linorg.usp.br/mysql/Downloads/MySQL-5.1/mysql-5.1.24-rc.tar.gz: File unavailable (e.g., file not found, no access)
=> Attempting to fetch from ftp://ftp.cbn.net.id/mirror/mysql/Downloads/MySQL-5.1/.
fetch: ftp://ftp.cbn.net.id/mirror/mysql/Downloads/MySQL-5.1/mysql-5.1.24-rc.tar.gz: File unavailable (e.g., file not found, no access)
=> Attempting to fetch from http://download.softagency.net/MySQL/Downloads/MySQL-5.1/.
fetch: http://download.softagency.net/MySQL/Downloads/MySQL-5.1/mysql-5.1.24-rc.tar.gz: Not Found
=> Attempting to fetch from ftp://ftp.FreeBSD.org/pub/FreeBSD/ports/distfiles/.
fetch: ftp://ftp.FreeBSD.org/pub/FreeBSD/ports/distfiles/mysql-5.1.24-rc.tar.gz: File unavailable (e.g., file not found, no access)
=> Couldn't fetch it - please try to retrieve this
=> port manually into /usr/ports/distfiles/ and try again.
*** Error code 1

Stop in /usr/ports/databases/mysql51-client.
** Command failed [exit code 1]: /usr/bin/script -qa /tmp/portinstall.3290.0 env make
** Fix the problem and try again.
--->  Skipping 'databases/mysql51-server' because a requisite port 'databases/mysql51-client' failed (specify -k to force)
** Listing the failed packages (-:ignored / *:skipped / !:failed)
	! databases/mysql51-client	(fetch error)
	* databases/mysql51-server
bsd# 


ちょっと保留、
また週末にでも進める予定。