なんだこれは

はてなダイアリーから移転しました。

家抜子 をクリーンインストール

唐突にconcrete5と言っていたのを思い出したので、MacOSX10.4の家抜子をクリーンインストールしてみた。で、mac port 1.8.2で適当にmysql apache php5をいれてみた。

10.4のクリーンインストールして、updateする前に起動すると、最初に開くページでSafariが落ちるのは勘弁してもらいたい。

以下、作業log

mysql5 のbuildで失敗した件

$ sudo port install mysql5
      • > Computing dependencies for mysql5
      • > Fetching mysql5
      • > Attempting to fetch mysql-5.1.41.tar.gz from http://distfiles.macports.org/mysql5
      • > Verifying checksum(s) for mysql5
      • > Extracting mysql5
      • > Applying patches to mysql5
      • > Configuring mysql5
      • > Building mysql5

Error: Target org.macports.build returned: shell command " cd
"/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_databases_mysql5/work/mysql-5.1.41"
&& /usr/bin/make -j1 all " returned error 2
Command output: /usr/bin/g++-4.0 -DMYSQL_SERVER

  • DDEFAULT_MYSQL_HOME="\"/opt/local\""
  • DMYSQL_DATADIR="\"/opt/local/var/db/mysql5\""
  • DSHAREDIR="\"/opt/local/share/mysql5/mysql\""
  • DPLUGINDIR="\"/opt/local/lib/mysql5/mysql/plugin\""
  • DHAVE_EVENT_SCHEDULER -DHAVE_CONFIG_H -I. -I../include
  • I/opt/local/include -I../include -I../include -I../regex -I.
  • I/opt/local/include -I/opt/local/include -O2 -fPIC -arch ppc
  • fno-implicit-templates -fno-exceptions -fno-rtti -D_P1003_1B_VISIBLE
  • DSIGNAL_WITH_VIO_CLOSE -DSIGNALS_DONT_BREAK_READ
  • DIGNORE_SIGHUP_SIGQUIT -DDONT_DECLARE_CXA_PURE_VIRTUAL -MT

sql_rename.o -MD -MP -MF .deps/sql_rename.Tpo -c -o sql_rename.o
sql_rename.cc
mv -f .deps/sql_rename.Tpo .deps/sql_rename.Po
/usr/bin/g++-4.0 -DMYSQL_SERVER -DDEFAULT_MYSQL_HOME="\"/opt/local\""

  • DMYSQL_DATADIR="\"/opt/local/var/db/mysql5\""
  • DSHAREDIR="\"/opt/local/share/mysql5/mysql\""
  • DPLUGINDIR="\"/opt/local/lib/mysql5/mysql/plugin\""
  • DHAVE_EVENT_SCHEDULER -DHAVE_CONFIG_H -I. -I../include
  • I/opt/local/include -I../include -I../include -I../regex -I.
  • I/opt/local/include -I/opt/local/include -O2 -fPIC -arch ppc
  • fno-implicit-templates -fno-exceptions -fno-rtti -D_P1003_1B_VISIBLE
  • DSIGNAL_WITH_VIO_CLOSE -DSIGNALS_DONT_BREAK_READ
  • DIGNORE_SIGHUP_SIGQUIT -DDONT_DECLARE_CXA_PURE_VIRTUAL -MT

sql_crypt.o -MD -MP -MF .deps/sql_crypt.Tpo -c -o sql_crypt.o
sql_crypt.cc
mv -f .deps/sql_crypt.Tpo .deps/sql_crypt.Po
/usr/bin/g++-4.0 -DMYSQL_SERVER -DDEFAULT_MYSQL_HOME="\"/opt/local\""

  • DMYSQL_DATADIR="\"/opt/local/var/db/mysql5\""
  • DSHAREDIR="\"/opt/local/share/mysql5/mysql\""
  • DPLUGINDIR="\"/opt/local/lib/mysql5/mysql/plugin\""
  • DHAVE_EVENT_SCHEDULER -DHAVE_CONFIG_H -I. -I../include
  • I/opt/local/include -I../include -I../include -I../regex -I.
  • I/opt/local/include -I/opt/local/include -O2 -fPIC -arch ppc
  • fno-implicit-templates -fno-exceptions -fno-rtti -D_P1003_1B_VISIBLE
  • DSIGNAL_WITH_VIO_CLOSE -DSIGNALS_DONT_BREAK_READ
  • DIGNORE_SIGHUP_SIGQUIT -DDONT_DECLARE_CXA_PURE_VIRTUAL -MT

sql_load.o -MD -MP -MF .deps/sql_load.Tpo -c -o sql_load.o sql_load.cc
mv -f .deps/sql_load.Tpo .deps/sql_load.Po
/usr/bin/g++-4.0 -DMYSQL_SERVER -DDEFAULT_MYSQL_HOME="\"/opt/local\""

  • DMYSQL_DATADIR="\"/opt/local/var/db/mysql5\""
  • DSHAREDIR="\"/opt/local/share/mysql5/mysql\""
  • DPLUGINDIR="\"/opt/local/lib/mysql5/mysql/plugin\""
  • DHAVE_EVENT_SCHEDULER -DHAVE_CONFIG_H -I. -I../include
  • I/opt/local/include -I../include -I../include -I../regex -I.
  • I/opt/local/include -I/opt/local/include -O2 -fPIC -arch ppc
  • fno-implicit-templates -fno-exceptions -fno-rtti -D_P1003_1B_VISIBLE
  • DSIGNAL_WITH_VIO_CLOSE -DSIGNALS_DONT_BREAK_READ
  • DIGNORE_SIGHUP_SIGQUIT -DDONT_DECLARE_CXA_PURE_VIRTUAL -MT

mf_iocache.o -MD -MP -MF .deps/mf_iocache.Tpo -c -o mf_iocache.o
mf_iocache.cc
mv -f .deps/mf_iocache.Tpo .deps/mf_iocache.Po
/usr/bin/g++-4.0 -DMYSQL_SERVER -DDEFAULT_MYSQL_HOME="\"/opt/local\""

  • DMYSQL_DATADIR="\"/opt/local/var/db/mysql5\""
  • DSHAREDIR="\"/opt/local/share/mysql5/mysql\""
  • DPLUGINDIR="\"/opt/local/lib/mysql5/mysql/plugin\""
  • DHAVE_EVENT_SCHEDULER -DHAVE_CONFIG_H -I. -I../include
  • I/opt/local/include -I../include -I../include -I../regex -I.
  • I/opt/local/include -I/opt/local/include -O2 -fPIC -arch ppc
  • fno-implicit-templates -fno-exceptions -fno-rtti -D_P1003_1B_VISIBLE
  • DSIGNAL_WITH_VIO_CLOSE -DSIGNALS_DONT_BREAK_READ
  • DIGNORE_SIGHUP_SIGQUIT -DDONT_DECLARE_CXA_PURE_VIRTUAL -MT

field_conv.o -MD -MP -MF .deps/field_conv.Tpo -c -o field_conv.o
field_conv.cc
mv -f .deps/field_conv.Tpo .deps/field_conv.Po
/usr/bin/g++-4.0 -DMYSQL_SERVER -DDEFAULT_MYSQL_HOME="\"/opt/local\""

  • DMYSQL_DATADIR="\"/opt/local/var/db/mysql5\""
  • DSHAREDIR="\"/opt/local/share/mysql5/mysql\""
  • DPLUGINDIR="\"/opt/local/lib/mysql5/mysql/plugin\""
  • DHAVE_EVENT_SCHEDULER -DHAVE_CONFIG_H -I. -I../include
  • I/opt/local/include -I../include -I../include -I../regex -I.
  • I/opt/local/include -I/opt/local/include -O2 -fPIC -arch ppc
  • fno-implicit-templates -fno-exceptions -fno-rtti -D_P1003_1B_VISIBLE
  • DSIGNAL_WITH_VIO_CLOSE -DSIGNALS_DONT_BREAK_READ
  • DIGNORE_SIGHUP_SIGQUIT -DDONT_DECLARE_CXA_PURE_VIRTUAL -MT

sql_show.o -MD -MP -MF .deps/sql_show.Tpo -c -o sql_show.o sql_show.cc
mv -f .deps/sql_show.Tpo .deps/sql_show.Po
/usr/bin/g++-4.0 -DMYSQL_SERVER -DDEFAULT_MYSQL_HOME="\"/opt/local\""

  • DMYSQL_DATADIR="\"/opt/local/var/db/mysql5\""
  • DSHAREDIR="\"/opt/local/share/mysql5/mysql\""
  • DPLUGINDIR="\"/opt/local/lib/mysql5/mysql/plugin\""
  • DHAVE_EVENT_SCHEDULER -DHAVE_CONFIG_H -I. -I../include
  • I/opt/local/include -I../include -I../include -I../regex -I.
  • I/opt/local/include -I/opt/local/include -O2 -fPIC -arch ppc
  • fno-implicit-templates -fno-exceptions -fno-rtti -D_P1003_1B_VISIBLE
  • DSIGNAL_WITH_VIO_CLOSE -DSIGNALS_DONT_BREAK_READ
  • DIGNORE_SIGHUP_SIGQUIT -DDONT_DECLARE_CXA_PURE_VIRTUAL -MT sql_udf.o
  • MD -MP -MF .deps/sql_udf.Tpo -c -o sql_udf.o sql_udf.cc

mv -f .deps/sql_udf.Tpo .deps/sql_udf.Po
/usr/bin/g++-4.0 -DMYSQL_SERVER -DDEFAULT_MYSQL_HOME="\"/opt/local\""

  • DMYSQL_DATADIR="\"/opt/local/var/db/mysql5\""
  • DSHAREDIR="\"/opt/local/share/mysql5/mysql\""
  • DPLUGINDIR="\"/opt/local/lib/mysql5/mysql/plugin\""
  • DHAVE_EVENT_SCHEDULER -DHAVE_CONFIG_H -I. -I../include
  • I/opt/local/include -I../include -I../include -I../regex -I.
  • I/opt/local/include -I/opt/local/include -O2 -fPIC -arch ppc
  • fno-implicit-templates -fno-exceptions -fno-rtti -D_P1003_1B_VISIBLE
  • DSIGNAL_WITH_VIO_CLOSE -DSIGNALS_DONT_BREAK_READ
  • DIGNORE_SIGHUP_SIGQUIT -DDONT_DECLARE_CXA_PURE_VIRTUAL -MT

sql_analyse.o -MD -MP -MF .deps/sql_analyse.Tpo -c -o sql_analyse.o
sql_analyse.cc
mv -f .deps/sql_analyse.Tpo .deps/sql_analyse.Po
/usr/bin/g++-4.0 -DMYSQL_SERVER -DDEFAULT_MYSQL_HOME="\"/opt/local\""

  • DMYSQL_DATADIR="\"/opt/local/var/db/mysql5\""
  • DSHAREDIR="\"/opt/local/share/mysql5/mysql\""
  • DPLUGINDIR="\"/opt/local/lib/mysql5/mysql/plugin\""
  • DHAVE_EVENT_SCHEDULER -DHAVE_CONFIG_H -I. -I../include
  • I/opt/local/include -I../include -I../include -I../regex -I.
  • I/opt/local/include -I/opt/local/include -O2 -fPIC -arch ppc
  • fno-implicit-templates -fno-exceptions -fno-rtti -D_P1003_1B_VISIBLE
  • DSIGNAL_WITH_VIO_CLOSE -DSIGNALS_DONT_BREAK_READ
  • DIGNORE_SIGHUP_SIGQUIT -DDONT_DECLARE_CXA_PURE_VIRTUAL -MT

sql_cache.o -MD -MP -MF .deps/sql_cache.Tpo -c -o sql_cache.o
sql_cache.cc
mv -f .deps/sql_cache.Tpo .deps/sql_cache.Po
/usr/bin/g++-4.0 -DMYSQL_SERVER -DDEFAULT_MYSQL_HOME="\"/opt/local\""

  • DMYSQL_DATADIR="\"/opt/local/var/db/mysql5\""
  • DSHAREDIR="\"/opt/local/share/mysql5/mysql\""
  • DPLUGINDIR="\"/opt/local/lib/mysql5/mysql/plugin\""
  • DHAVE_EVENT_SCHEDULER -DHAVE_CONFIG_H -I. -I../include
  • I/opt/local/include -I../include -I../include -I../regex -I.
  • I/opt/local/include -I/opt/local/include -O2 -fPIC -arch ppc
  • fno-implicit-templates -fno-exceptions -fno-rtti -D_P1003_1B_VISIBLE
  • DSIGNAL_WITH_VIO_CLOSE -DSIGNALS_DONT_BREAK_READ
  • DIGNORE_SIGHUP_SIGQUIT -DDONT_DECLARE_CXA_PURE_VIRTUAL -MT slave.o
  • MD -MP -MF .deps/slave.Tpo -c -o slave.o slave.cc

mv -f .deps/slave.Tpo .deps/slave.Po
/usr/bin/g++-4.0 -DMYSQL_SERVER -DDEFAULT_MYSQL_HOME="\"/opt/local\""

  • DMYSQL_DATADIR="\"/opt/local/var/db/mysql5\""
  • DSHAREDIR="\"/opt/local/share/mysql5/mysql\""
  • DPLUGINDIR="\"/opt/local/lib/mysql5/mysql/plugin\""
  • DHAVE_EVENT_SCHEDULER -DHAVE_CONFIG_H -I. -I../include
  • I/opt/local/include -I../include -I../include -I../regex -I.
  • I/opt/local/include -I/opt/local/include -O2 -fPIC -arch ppc
  • fno-implicit-templates -fno-exceptions -fno-rtti -D_P1003_1B_VISIBLE
  • DSIGNAL_WITH_VIO_CLOSE -DSIGNALS_DONT_BREAK_READ
  • DIGNORE_SIGHUP_SIGQUIT -DDONT_DECLARE_CXA_PURE_VIRTUAL -MT

sql_repl.o -MD -MP -MF .deps/sql_repl.Tpo -c -o sql_repl.o sql_repl.cc
sql_repl.cc: In function `int init_replication_sys_vars()':
sql_repl.cc:1823: internal compiler error: Bus error
Please submit a full bug report,
with preprocessed source if appropriate.
See url:http://developer.apple.com/bugreporter for instructions.
make[3]: *** [sql_repl.o] Error 1
make[2]: *** [all-recursive] Error 1
make[1]: *** [all] Error 2
make: *** [all-recursive] Error 1

Error: Status 1 encountered during processing.
Before reporting a bug, first run the command again with the -d flag
to get complete output.

 sudo port clean mysql5
      • > Cleaning mysql5

mysql4で

 sudo port variants mysql4

mysql4 has the variants:
server
universal: Build for multiple architectures

 sudo port install mysql4 +server

###########################################################
# A startup item has been generated that will aid in
# starting mysql4 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.mysql4.plist
###########################################################

#*****************************************************
# You might want to run *
# sudo -u mysql mysql_install_db *
# if this is a new install *
# *
# If you did not choose the server variant you may *
# add a mysql user and you will need to change the *
# ownership to that user for the following: *
# /opt/local/var/db/mysql *
# /opt/local/var/run/mysqld *
# /opt/local/var/log/mysql *
#*****************************************************

はてなが*を前に持ってくると、あれなので一部改変してます。

 sudo launchctl load -w /Library/LaunchDaemons/org.macports.mysql4.plist

たまにでるんだけど?

Workaround Bonjour: Unknlogout

php5いれてみた

 sudo port variants php5

php5 has the variants:
apache: Add Apache 1 web server module
* conflicts with apache2 no_web
[+]apache2: Add Apache 2.2 web server module
* conflicts with apache no_web
darwin_10: Platform variant, selected automatically
debug: Enable debug support (useful to analyze a PHP-related core dump)
fastcgi: Add FastCGI web server binary
* conflicts with no_web
gmp: Obsolete; install php5-gmp port instead
imap: Obsolete; install php5-imap port instead
ipc: Add semaphore, shared memory and IPC functions
macosx: Platform variant, selected automatically
macports_snmp: Obsolete; install php5-snmp port instead
mssql: Obsolete; install php5-mssql port instead
mysql3: Obsolete; install php5-mysql port instead
mysql4: Obsolete; install php5-mysql port instead
mysql5: Obsolete; install php5-mysql port instead
mysqlnd: Obsolete; install php5-mysql port instead
no_web: Don't include any web server support
* conflicts with apache apache2 fastcgi
oracle: Obsolete; install php5-oracle port instead
pcntl: Obsolete; install php5-pcntl port instead
pear: Add PEAR
postgresql82: Obsolete; install php5-postgresql port instead
postgresql83: Obsolete; install php5-postgresql port instead
pspell: Obsolete; install php5-pspell port instead
snmp: Obsolete; install php5-snmp port instead
sockets: Obsolete; install php5-sockets port instead
sqlite: Obsolete; install php5-sqlite port instead
suhosin: Add Suhosin patch
tidy: Obsolete; install php5-tidy port instead
universal: Build for multiple architectures

 sudo port install php5 +apache2 +mysql4 +pear +gmp

Computing dependencies for php5

  • gettext @0.17_4
  • gawk @3.1.7_0
  • m4 @1.4.13_0
  • perl5.8 @5.8.9_3
  • perl5 @5.8.9_0
  • autoconf213 @2.13_1
  • gsed @4.2.1_0+darwin_8
  • p5-locale-gettext @1.05_0
  • help2man @1.37.1_1
  • autoconf @2.65_0
  • automake @1.11.1_0
  • libtool @2.2.6b_0
  • libxml2 @2.7.6_0
  • mhash @0.9.9.9_0
  • pkgconfig @0.23_1

The +gmp variant is obsolete. Please install the php5-gmp port instead.
The +mysql4 variant is obsolete. Please install the php5-mysql port instead.

      • > Building php5
      • > Staging php5 into destroot

Note: php5 installs files outside the common directory structure.

To customize php, copy
/opt/local/etc/php5/php.ini-development (if this is a development server) or
/opt/local/etc/php5/php.ini-production (if this is a production server) to
/opt/local/etc/php5/php.ini and then make changes.

If this is your first install, you need to activate PHP in your web server.

To enable PHP in Apache, run
cd /opt/local/apache2/modules
/opt/local/apache2/bin/apxs -a -e -n "php5" libphp5.so

      • > Cleaning php5