MySQLをインストールした件について
MacPortsをインストールしたのだが、あれは失敗していたっぽい。とにかくxcodeをインストール。
パスを記述した.bashrcは作成済みだったので、viで.bash_profileを作成。内容は↓。
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi
.bash_profileを保存したら、apache2を再起動。
その後、ターミナルからMacPortsのコマンドを実行。
$ sudo port -d selfupdate
すごい勢いでスクロールしていく。いろんなソフトをアプデートしているということか?
$ sudo port -d sync
こっちは、びっくりするようなことは起こらなかった。↓のようなメッセージが表示されたけど、問題ないってことだよね。
DEBUG: Synchronizing ports tree(s)
Synchronizing local ports tree from rsync://rsync.macports.org/release/ports/
DEBUG: /usr/bin/rsync -rtzv --delete-after rsync://rsync.macports.org/release/ports/ /opt/local/var/macports/sources/rsync.macports.org/release/ports
receiving file list ... donesent 36 bytes received 379094 bytes 84251.11 bytes/sec
total size is 23098224 speedup is 60.92
で、その次にいよいよMySQLのインストール。
$ sudo port install mysql5 +server
とタイプすると、インストールが開始される。いろいろとメッセージが出てくるだけあって、時間がかかる。
- > Fetching zlib
- > Attempting to fetch zlib-1.2.3.tar.bz2 from http://nchc.dl.sourceforge.net/libpng
- > Verifying checksum(s) for zlib
- > Extracting zlib
- > Applying patches to zlib
- > Configuring zlib
- > Building zlib
- > Staging zlib into destroot
- > Installing zlib @1.2.3_2
- > Activating zlib @1.2.3_2
- > Cleaning zlib
- > Fetching openssl
- > Attempting to fetch openssl-0.9.8k.tar.gz from http://distfiles.macports.org/openssl
- > Verifying checksum(s) for openssl
- > Extracting openssl
- > Applying patches to openssl
- > Configuring openssl
- > Building openssl
- > Staging openssl into destroot
- > Installing openssl @0.9.8k_0
- > Activating openssl @0.9.8k_0
- > Cleaning openssl
- > Fetching ncursesw
- > Attempting to fetch ncurses-5.7.tar.gz from http://distfiles.macports.org/ncurses
- > Verifying checksum(s) for ncursesw
- > Extracting ncursesw
- > Configuring ncursesw
- > Building ncursesw
- > Staging ncursesw into destroot
- > Installing ncursesw @5.7_0
- > Activating ncursesw @5.7_0
- > Cleaning ncursesw
- > Fetching ncurses
- > Verifying checksum(s) for ncurses
- > Extracting ncurses
- > Configuring ncurses
- > Building ncurses
- > Staging ncurses into destroot
- > Installing ncurses @5.7_0
- > Activating ncurses @5.7_0
- > Cleaning ncurses
- > Fetching readline
- > Attempting to fetch readline-6.0.tar.gz from ftp://ftp.dti.ad.jp/pub/GNU/readline
- > Verifying checksum(s) for readline
- > Extracting readline
- > Applying patches to readline
- > Configuring readline
- > Building readline
- > Staging readline into destroot
- > Installing readline @6.0.000_1
- > Activating readline @6.0.000_1
- > Cleaning readline
- > Fetching mysql5
- > Attempting to fetch mysql-5.0.77.tar.gz from http://mysql.oss.eznetsols.org/Downloads/MySQL-5.0/
- > Verifying checksum(s) for mysql5
- > Extracting mysql5
- > Applying patches to mysql5
- > Configuring mysql5
- > Building mysql5
- > Staging mysql5 into destroot
- > Creating launchd control script
###########################################################
# A startup item has been generated that will aid in
# starting mysql5 with launchd. It is disabled
# by default. Execute the following command to start it,
# and to cause it to launch at startup:
#
# sudo launchctl load -w /Library/LaunchDaemons/org.macports.mysql5.plist
###########################################################
- > Installing mysql5 @5.0.77_2+server
******************************************************
* In order to setup the database, you might want to run
* sudo -u mysql mysql_install_db5
* if this is a new install
******************************************************
- > Activating mysql5 @5.0.77_2+server
- > Cleaning mysql5
*1:上のリスト中、hatena表記上の問題から、半角の「*」を全角の「*」に変更した部分がある。こうしないと引用の表示が乱れるので、しょうがないなり。