くまきち

山と旅と家族が大事。
でも激しい物欲が理性と財布のタガを飛ばす
最近は自転車も乗ってる

続々々・Mavericks 更新の弊害(PHP::PDO_PgSQL)

2013-10-27 01:25:22 | SEまわり
前述の libpq-fe.h が見つからないという件は、その直前に pg_config が見つからないというエラーが出ていたところに注目。
コマンドを見つけきれないらしい。実体は /Library/PostgreSQL/9.3/bin の下にあるんだが。

そこで、探しやすいように、ln -s /Library/PostgreSQL/9.3/bin/pg_config /usr/bin としてあげたら、あっさり成功。

# ./configure --with-pdo-pgsql
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for a sed that does not truncate output... /usr/bin/sed
checking for cc... cc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether cc accepts -g... yes
checking for cc option to accept ISO C89... none needed
checking how to run the C preprocessor... cc -E
checking for icc... no
checking for suncc... no
checking whether cc understands -c and -o together... yes
checking for system library directory... lib
checking if compiler supports -R... no
checking if compiler supports -Wl,-rpath,... yes
checking build system type... i386-apple-darwin13.0.0
checking host system type... i386-apple-darwin13.0.0
checking target system type... i386-apple-darwin13.0.0
checking for PHP prefix... /usr
checking for PHP includes... -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib
checking for PHP extension directory... /usr/lib/php/extensions/no-debug-non-zts-20100525
checking for PHP installed headers prefix... /usr/include/php
checking if debug is enabled... no
checking if zts is enabled... no
checking for re2c... re2c
checking for re2c version... 0.13.5 (ok)
checking for gawk... no
checking for nawk... no
checking for awk... awk
checking if awk is broken... no
checking for PostgreSQL support for PDO... yes, shared
checking for pg_config... /usr/bin/pg_config
checking for openssl dependencies... no
checking for PQparameterStatus in -lpq... yes
checking for PQprepare in -lpq... yes
checking for PQescapeStringConn in -lpq... yes
checking for PQescapeByteaConn in -lpq... yes
checking for pg_encoding_to_char in -lpq... yes
checking for PDO includes... checking for PDO includes... /usr/include/php/ext
checking for ld used by cc... /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld
checking if the linker (/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld) is GNU ld... no
checking for /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld option to reload object files... -r
checking for BSD-compatible nm... /usr/bin/nm
checking whether ln -s works... yes
checking how to recognize dependent libraries... pass_all
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
checking the maximum length of command line arguments... 196608
checking command to parse /usr/bin/nm output from cc object... ok
checking for objdir... .libs
checking for ar... ar
checking for ranlib... ranlib
checking for strip... strip
checking for dsymutil... dsymutil
checking for nmedit... nmedit
checking for -single_module linker flag... yes
checking for -exported_symbols_list linker flag... yes
checking if cc supports -fno-rtti -fno-exceptions... yes
checking for cc option to produce PIC... -fno-common
checking if cc PIC flag -fno-common works... yes
checking if cc static flag -static works... no
checking if cc supports -c -o file.o... yes
checking whether the cc linker (/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld) supports shared libraries... yes
checking dynamic linker characteristics... darwin13.0.0 dyld
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no

creating libtool
appending configuration tag "CXX" to libtool
configure: creating ./config.status
config.status: creating config.h
config.status: config.h is unchanged
bash-3.2# make
/bin/sh /Users/bear/Downloads/php-5.4.20/ext/pdo_pgsql/libtool --mode=compile cc -I/usr/include/php/ext -I. -I/Users/bear/Downloads/php-5.4.20/ext/pdo_pgsql -DPHP_ATOM_INC -I/Users/bear/Downloads/php-5.4.20/ext/pdo_pgsql/include -I/Users/bear/Downloads/php-5.4.20/ext/pdo_pgsql/main -I/Users/bear/Downloads/php-5.4.20/ext/pdo_pgsql -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -I/Library/PostgreSQL/9.3/include -DHAVE_CONFIG_H -g -O2 -c /Users/bear/Downloads/php-5.4.20/ext/pdo_pgsql/pdo_pgsql.c -o pdo_pgsql.lo
mkdir .libs
cc -I/usr/include/php/ext -I. -I/Users/bear/Downloads/php-5.4.20/ext/pdo_pgsql -DPHP_ATOM_INC -I/Users/bear/Downloads/php-5.4.20/ext/pdo_pgsql/include -I/Users/bear/Downloads/php-5.4.20/ext/pdo_pgsql/main -I/Users/bear/Downloads/php-5.4.20/ext/pdo_pgsql -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -I/Library/PostgreSQL/9.3/include -DHAVE_CONFIG_H -g -O2 -c /Users/bear/Downloads/php-5.4.20/ext/pdo_pgsql/pdo_pgsql.c -fno-common -DPIC -o .libs/pdo_pgsql.o
/bin/sh /Users/bear/Downloads/php-5.4.20/ext/pdo_pgsql/libtool --mode=compile cc -I/usr/include/php/ext -I. -I/Users/bear/Downloads/php-5.4.20/ext/pdo_pgsql -DPHP_ATOM_INC -I/Users/bear/Downloads/php-5.4.20/ext/pdo_pgsql/include -I/Users/bear/Downloads/php-5.4.20/ext/pdo_pgsql/main -I/Users/bear/Downloads/php-5.4.20/ext/pdo_pgsql -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -I/Library/PostgreSQL/9.3/include -DHAVE_CONFIG_H -g -O2 -c /Users/bear/Downloads/php-5.4.20/ext/pdo_pgsql/pgsql_driver.c -o pgsql_driver.lo
cc -I/usr/include/php/ext -I. -I/Users/bear/Downloads/php-5.4.20/ext/pdo_pgsql -DPHP_ATOM_INC -I/Users/bear/Downloads/php-5.4.20/ext/pdo_pgsql/include -I/Users/bear/Downloads/php-5.4.20/ext/pdo_pgsql/main -I/Users/bear/Downloads/php-5.4.20/ext/pdo_pgsql -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -I/Library/PostgreSQL/9.3/include -DHAVE_CONFIG_H -g -O2 -c /Users/bear/Downloads/php-5.4.20/ext/pdo_pgsql/pgsql_driver.c -fno-common -DPIC -o .libs/pgsql_driver.o
/bin/sh /Users/bear/Downloads/php-5.4.20/ext/pdo_pgsql/libtool --mode=compile cc -I/usr/include/php/ext -I. -I/Users/bear/Downloads/php-5.4.20/ext/pdo_pgsql -DPHP_ATOM_INC -I/Users/bear/Downloads/php-5.4.20/ext/pdo_pgsql/include -I/Users/bear/Downloads/php-5.4.20/ext/pdo_pgsql/main -I/Users/bear/Downloads/php-5.4.20/ext/pdo_pgsql -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -I/Library/PostgreSQL/9.3/include -DHAVE_CONFIG_H -g -O2 -c /Users/bear/Downloads/php-5.4.20/ext/pdo_pgsql/pgsql_statement.c -o pgsql_statement.lo
cc -I/usr/include/php/ext -I. -I/Users/bear/Downloads/php-5.4.20/ext/pdo_pgsql -DPHP_ATOM_INC -I/Users/bear/Downloads/php-5.4.20/ext/pdo_pgsql/include -I/Users/bear/Downloads/php-5.4.20/ext/pdo_pgsql/main -I/Users/bear/Downloads/php-5.4.20/ext/pdo_pgsql -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -I/Library/PostgreSQL/9.3/include -DHAVE_CONFIG_H -g -O2 -c /Users/bear/Downloads/php-5.4.20/ext/pdo_pgsql/pgsql_statement.c -fno-common -DPIC -o .libs/pgsql_statement.o
/Users/bear/Downloads/php-5.4.20/ext/pdo_pgsql/pgsql_statement.c:561:9: warning: case value not in enumerated type
'enum pdo_param_type' [-Wswitch]
case PDO_PARAM_INPUT_OUTPUT:
^
/usr/include/php/ext/pdo/php_pdo_driver.h:79:33: note: expanded from macro 'PDO_PARAM_INPUT_OUTPUT'
#define PDO_PARAM_INPUT_OUTPUT 0x80000000
^
1 warning generated.
/bin/sh /Users/bear/Downloads/php-5.4.20/ext/pdo_pgsql/libtool --mode=link cc -DPHP_ATOM_INC -I/Users/bear/Downloads/php-5.4.20/ext/pdo_pgsql/include -I/Users/bear/Downloads/php-5.4.20/ext/pdo_pgsql/main -I/Users/bear/Downloads/php-5.4.20/ext/pdo_pgsql -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -I/Library/PostgreSQL/9.3/include -DHAVE_CONFIG_H -g -O2 -o pdo_pgsql.la -export-dynamic -avoid-version -prefer-pic -module -rpath /Users/bear/Downloads/php-5.4.20/ext/pdo_pgsql/modules pdo_pgsql.lo pgsql_driver.lo pgsql_statement.lo -Wl,-rpath,/Library/PostgreSQL/9.3/lib -L/Library/PostgreSQL/9.3/lib -lpq
cc ${wl}-flat_namespace ${wl}-undefined ${wl}suppress -o .libs/pdo_pgsql.so -bundle .libs/pdo_pgsql.o .libs/pgsql_driver.o .libs/pgsql_statement.o -L/Library/PostgreSQL/9.3/lib -lpq -Wl,-rpath -Wl,/Library/PostgreSQL/9.3/lib
dsymutil .libs/pdo_pgsql.so || :
creating pdo_pgsql.la
(cd .libs && rm -f pdo_pgsql.la && ln -s ../pdo_pgsql.la pdo_pgsql.la)
/bin/sh /Users/bear/Downloads/php-5.4.20/ext/pdo_pgsql/libtool --mode=install cp ./pdo_pgsql.la /Users/bear/Downloads/php-5.4.20/ext/pdo_pgsql/modules
cp ./.libs/pdo_pgsql.so /Users/bear/Downloads/php-5.4.20/ext/pdo_pgsql/modules/pdo_pgsql.so
cp ./.libs/pdo_pgsql.lai /Users/bear/Downloads/php-5.4.20/ext/pdo_pgsql/modules/pdo_pgsql.la
----------------------------------------------------------------------
Libraries have been installed in:
/Users/bear/Downloads/php-5.4.20/ext/pdo_pgsql/modules

If you ever happen to want to link against installed libraries
in a given directory, LIBDIR, you must either use libtool, and
specify the full pathname of the library, or use the `-LLIBDIR'
flag during linking and do at least one of the following:
- add LIBDIR to the `DYLD_LIBRARY_PATH' environment variable
during execution

See any operating system documentation about shared libraries for
more information, such as the ld(1) and ld.so(8) manual pages.
----------------------------------------------------------------------

Build complete.
Don't forget to run 'make test'.


うまくいったようだ。
あとは make install して、モジュールを確認。

# make install
Installing shared extensions: /usr/lib/php/extensions/no-debug-non-zts-20100525/
# ls /usr/lib/php/extensions/
no-debug-non-zts-20100525
bash-3.2# ls /usr/lib/php/extensions/no-debug-non-zts-20100525/
pdo_pgsql.so pgsql.so xdebug.so


できてる。

あとは、/etc/php.ini で 二つの extension {pdo_pgsql.so, pgsql.so} を指定して、 apache を再起動すればいいはず。

extension_dir = "/usr/lib/php/extensions/no-debug-non-zts-20100525/"
extension = pgsql.so
extension = pdo_pgsql.so


phpinfo() なページを表示させてみる。



でてた!
1泊2日かかったよ。これに。

続々・Mavericks 更新の弊害(PHP::PDO_PgSQL)

2013-10-26 23:32:57 | SEまわり
続き。

PostgreSQL は元々 9.2 を OS X 用のバイナリパッケージからインストールしていた。
PgAdmin とかのアイコンもいつのまにか消えてしまっていたので、この際 9.2 の資産は全部捨てることにして、9.3 をダウンロードして、インストールも終わった。

ということで、pdo_pgsql を作るとこの続き。

# cd Downloads/php-5.4.20/ext/pdo_pgsql/
# ./configure --with-pdo-pgsql
configure: WARNING: unrecognized options: --with-pgsql
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for a sed that does not truncate output... /usr/bin/sed
checking for cc... cc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether cc accepts -g... yes
checking for cc option to accept ISO C89... none needed
checking how to run the C preprocessor... cc -E
checking for icc... no
checking for suncc... no
checking whether cc understands -c and -o together... yes
checking for system library directory... lib
checking if compiler supports -R... no
checking if compiler supports -Wl,-rpath,... yes
checking build system type... i386-apple-darwin13.0.0
checking host system type... i386-apple-darwin13.0.0
checking target system type... i386-apple-darwin13.0.0
checking for PHP prefix... /usr
checking for PHP includes... -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib
checking for PHP extension directory... /usr/lib/php/extensions/no-debug-non-zts-20100525
checking for PHP installed headers prefix... /usr/include/php
checking if debug is enabled... no
checking if zts is enabled... no
checking for re2c... re2c
checking for re2c version... 0.13.5 (ok)
checking for gawk... no
checking for nawk... no
checking for awk... awk
checking if awk is broken... no
checking for PostgreSQL support for PDO... yes, shared
checking for pg_config... not found
configure: error: Cannot find libpq-fe.h. Please specify correct PostgreSQL installation path


だそうなので、--with-pgsql=/Library/PostgreSQL/9.3 を付けてみたけれど、結果は同じだった。
libpq-fe.h はちゃんとあるんだけどなあ(下記)

# ls /Library/PostgreSQL/9.3/include/libpq-fe.h
/Library/PostgreSQL/9.3/include/libpq-fe.h


はて。。。

configure にはデバッグオプションとか verbose 出力スイッチがないみたいだ(./configure --help した)。
どうしたものか。
また詰まったぞ。

このエラーメッセージは昔ずいぶん何度も出遭ったやつなんだがなあ。

続・Mavericks 更新の弊害(PHP::PDO_PgSQL)

2013-10-26 22:02:57 | SEまわり
Lion → Mavericks に更新してからの話。

Lion の時の PHP は pdo_pgsql が有効だったのだが、なんかこれも変わってて無効。しかも、pdo_mysql は有効という差別的な扱い。
(MySQL は苦手)

PHP 自体をソースからインストールすることも考えてみたけど、extension で入れてしまえばいいんじゃないかと思い,やってみることにした。

  
# cd Downloads/php-5.4.20/ext/pdo_pgsql/
#ls
CREDITS config.w32 pgsql_driver.c
Makefile.global configure.in pgsql_statement.c
acinclude.m4 install-sh php_pdo_pgsql.h


ここで、extension ファイルを生成する。
が、phpize でエラー。最初からこれだ。

  
# bash-3.2$ phpize
Configuring for:
PHP Api Version: 20100412
Zend Module Api No: 20100525
Zend Extension Api No: 220100525
Cannot find autoconf. Please check your autoconf installation and the
$PHP_AUTOCONF environment variable. Then, rerun this script.


やっぱりコマンドラインツールがぼろぼろ。
autoconf は command not found になる。
port で入れようとして、search name=autoconf とする。

  
# port search name=autoconf
Warning: port definitions are more than two weeks old, consider updating them by running 'port selfupdate'.
No match for name=autoconf found


port selfupdate からやりなおせとの指示。
やります。

  
# port selfupdate
---> Updating MacPorts base sources using rsync
MacPorts base version 2.2.0 installed,
MacPorts base version 2.2.1 downloaded.
---> Updating the ports tree
---> MacPorts base is outdated, installing new version 2.2.1
Installing new MacPorts release in /opt/local as root:admin; permissions 0755; Tcl-Package in /Library/Tcl

Not all sources could be fully synced using the old version of MacPorts.
Please run selfupdate again now that MacPorts base has been updated.


もういちどやれってか。
はいはい。

  
# port selfupdate
---> Updating MacPorts base sources using rsync
MacPorts base version 2.2.1 installed,
MacPorts base version 2.2.1 downloaded.
---> Updating the ports tree
---> MacPorts base is already the latest version

The ports tree has been updated. To upgrade your installed ports, you should run
port upgrade outdated


全部上げろと。
まあそうだろうね。んで、きっとこれで autoconf が使えるようになるんじゃないか。

  
# port upgrade outdated
(以下略)


1時間以上かかった。
でも終わったので、phpize に戻る。

  
# phpize
Configuring for:
PHP Api Version: 20100412
Zend Module Api No: 20100525
Zend Extension Api No: 220100525


うまくいった。
configure ファイルもちゃんと生成されてる。
ということで、configure を実行する。

  
# ./configure --with-pdo-pgsql
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for a sed that does not truncate output... /usr/bin/sed
checking for cc... cc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether cc accepts -g... yes
checking for cc option to accept ISO C89... none needed
checking how to run the C preprocessor... cc -E
checking for icc... no
checking for suncc... no
checking whether cc understands -c and -o together... yes
checking for system library directory... lib
checking if compiler supports -R... no
checking if compiler supports -Wl,-rpath,... yes
checking build system type... i386-apple-darwin13.0.0
checking host system type... i386-apple-darwin13.0.0
checking target system type... i386-apple-darwin13.0.0
checking for PHP prefix... /usr
checking for PHP includes... -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib
checking for PHP extension directory... /usr/lib/php/extensions/no-debug-non-zts-20100525
checking for PHP installed headers prefix... /usr/include/php
checking if debug is enabled... no
checking if zts is enabled... no
checking for re2c... no
configure: WARNING: You will need re2c 0.13.4 or later if you want to regenerate PHP parsers.
checking for gawk... no
checking for nawk... no
checking for awk... awk
checking if awk is broken... no
checking for PostgreSQL support for PDO... yes, shared
checking for pg_config... not found
configure: error: Cannot find libpq-fe.h. Please specify correct PostgreSQL installation path


そうきたか。
PostgreSQL は Mac 用のバイナリを本家のダウンロードページから持ってきてインストールしたからね。ヘッダとかないかも。

ヘッダファイルだけあればいいのかしら。

でも、ふと考えてアプリケーションフォルダを見るとゾウさんのマークがない。
あれ?

でも、ps ax 見ると postmaster も動いてるし、psql でバックエンドともちゃんとお話しができている。
なんぞこれ?

今動いてるプロセス止めて、関連ファイル(/Library/Postgresq/*)消して、バイナリ再インストールやってみるか。

というところまででいったん切る。

Mavericks にしたら MacPorts がー

2013-10-25 15:19:48 | SEまわり
OS X Lion から Mavericks に更新したら、macports がエラーを吐くようになった。
selfupdate をデバッグフラグ付きで実行するとこんな状況
長いけど全部貼り付けとく。


  
$ sudo port -d selfupdate
DEBUG: Copying /Users/bear/Library/Preferences/com.apple.dt.Xcode.plist to /opt/local/var/macports/home/Library/Preferences
DEBUG: MacPorts sources location: /opt/local/var/macports/sources/rsync.macports.org/release/tarballs
---> Updating MacPorts base sources using rsync
receiving file list ... done

sent 36 bytes received 69 bytes 42.00 bytes/sec
total size is 4925440 speedup is 46908.95
receiving file list ... done

sent 36 bytes received 76 bytes 32.00 bytes/sec
total size is 512 speedup is 4.57
DEBUG: successful verification with key /opt/local/share/macports/macports-pubkey.pem
DEBUG: /usr/bin/tar -C /opt/local/var/macports/sources/rsync.macports.org/release/tarballs/tmp -xf /opt/local/var/macports/sources/rsync.macports.org/release/tarballs/base.tar
MacPorts base version 2.1.3 installed,
DEBUG: Rebuilding and reinstalling MacPorts if needed
MacPorts base version 2.2.0 downloaded.
---> Updating the ports tree
Synchronizing local ports tree from rsync://rsync.macports.org/release/tarballs/ports.tar
DEBUG: /usr/bin/rsync -rtzv --delete-after rsync://rsync.macports.org/release/tarballs/ports.tar /opt/local/var/macports/sources/rsync.macports.org/release/tarballs
receiving file list ... done

sent 36 bytes received 70 bytes 30.29 bytes/sec
total size is 57681920 speedup is 544169.06
DEBUG: /usr/bin/rsync -rtzv --delete-after rsync://rsync.macports.org/release/tarballs/ports.tar.rmd160 /opt/local/var/macports/sources/rsync.macports.org/release/tarballs
receiving file list ... done

sent 36 bytes received 77 bytes 45.20 bytes/sec
total size is 512 speedup is 4.53
DEBUG: successful verification with key /opt/local/share/macports/macports-pubkey.pem
DEBUG: /usr/bin/tar -C /opt/local/var/macports/sources/rsync.macports.org/release/tarballs/tmp -xf /opt/local/var/macports/sources/rsync.macports.org/release/tarballs/ports.tar
DEBUG: /usr/bin/rsync -rtzv --delete-after rsync://rsync.macports.org/release/tarballs/PortIndex_darwin_13_i386/PortIndex /opt/local/var/macports/sources/rsync.macports.org/release/tarballs
receiving file list ... rsync: change_dir "tarballs/PortIndex_darwin_13_i386" (in release) failed: No such file or directory (2)
done

sent 4 bytes received 9 bytes 8.67 bytes/sec
total size is 0 speedup is 0.00
rsync error: some files could not be transferred (code 23) at /SourceCache/rsync/rsync-42/rsync/main.c(1400) [receiver=2.6.9]
Command failed: /usr/bin/rsync -rtzv --delete-after rsync://rsync.macports.org/release/tarballs/PortIndex_darwin_13_i386/PortIndex /opt/local/var/macports/sources/rsync.macports.org/release/tarballs
Exit code: 23
DEBUG: Synchronization of the PortIndex failed doing rsync
---> MacPorts base is outdated, installing new version 2.2.0
DEBUG: Permissions OK
Installing new MacPorts release in /opt/local as root:admin; permissions 0755; Tcl-Package in /Library/Tcl

checking build system type... x86_64-apple-darwin13.0.0
checking host system type... x86_64-apple-darwin13.0.0
checking target system type... x86_64-apple-darwin13.0.0
checking MacPorts version... 2.2.0
checking for sw_vers... /usr/bin/sw_vers
checking for defaults... /usr/bin/defaults
checking for xcode-select... /usr/bin/xcode-select
checking Mac OS X version... 10.9
checking Xcode location... /Applications/Xcode.app/Contents/Developer
checking Xcode version... 5.0.1
checking for gcc... /usr/bin/cc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether /usr/bin/cc accepts -g... yes
checking for /usr/bin/cc option to accept ISO C89... none needed
checking for a BSD-compatible install... /usr/bin/install -c
checking whether ln -s works... yes
checking whether make sets $(MAKE)... yes
checking for gcc... gcc
checking whether we are using the GNU Objective C compiler... yes
checking whether gcc accepts -g... yes
checking for bsdmake... no
checking for pmake... no
checking for bzip2... /usr/bin/bzip2
checking for bzr... no
checking for chown... /usr/sbin/chown
checking for cp... /bin/cp
checking for cpio... /usr/bin/cpio
checking for cvs... no
checking for diff... /usr/bin/diff
checking for dscl... /usr/bin/dscl
checking for dseditgroup... /usr/sbin/dseditgroup
checking for file... /usr/bin/file
checking for find... /usr/bin/find
checking for git... /usr/bin/git
checking for gnumake... /usr/bin/gnumake
checking for gnupatch... no
checking for gpatch... no
checking for gnutar... no
checking for gtar... no
checking for gzip... /usr/bin/gzip
checking for hdiutil... /usr/bin/hdiutil
checking for hg... no
checking for launchctl... /bin/launchctl
checking for lipo... /usr/bin/lipo
checking for lsbom... /usr/bin/lsbom
checking for lzma... no
checking for make... /usr/bin/make
checking for mdfind... /usr/bin/mdfind
checking for mdls... /usr/bin/mdls
checking for mkbom... /usr/bin/mkbom
checking for mtree... /usr/sbin/mtree
checking for open... /usr/bin/open
checking for openssl... /usr/bin/openssl
checking for patch... /usr/bin/patch
checking for pax... /bin/pax
checking for rmdir... /bin/rmdir
checking for rsync... /usr/bin/rsync
checking for sandbox-exec... /usr/bin/sandbox-exec
checking for sed... /usr/bin/sed
checking for svn... /usr/bin/svn
checking for swig... no
checking for tar... /usr/bin/tar
checking for unzip... /usr/bin/unzip
checking for xar... /usr/bin/xar
checking for xcodebuild... /usr/bin/xcodebuild
checking for xcrun... /usr/bin/xcrun
checking for xz... no
checking for zip... /usr/bin/zip
checking for launchd... yes
checking for sed... (cached) /usr/bin/sed
checking which sed flag to use for extended regexp... -E (BSD)
checking for tar... (cached) /usr/bin/tar
checking whether tar supports -q... yes (bsdtar)
checking for tar... (cached) /usr/bin/tar
checking for gnutar... no
checking for which tar variant to use... /usr/bin/tar
checking for /usr/bin/tar --no-same-owner support... no
checking for patch... (cached) /usr/bin/patch
checking for gpatch... no
checking for GNU (FSF) patch... /usr/bin/patch
checking how to mark unused variables...
checking for gcc symbol visibility attribute... __attribute__((visibility("hidden")))
checking for the pthreads library -lpthreads... no
checking whether pthreads work without any flags... yes
checking for joinable pthread attribute... PTHREAD_CREATE_JOINABLE
checking if more special flags are required for pthreads... -D_THREAD_SAFE
checking how to run the Objective C preprocessor... gcc -E
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking objc/objc.h usability... yes
checking objc/objc.h presence... yes
checking for objc/objc.h... yes
checking if linking libobjc requires pthreads... no
checking for Apple Objective-C runtime... yes
checking for GNU Objective C runtime... no
configure: Using Apple Objective-C runtime
checking for Apple Foundation library... yes
configure: WARNING: GNUSTEP_SYSTEM_ROOT is not defined in your environment, preventing the use of GNUstep's Foundation library
configure: Using Apple Foundation library
checking for CoreFoundation framework... yes
checking for SystemConfiguration framework... yes
checking for IOKit framework... yes
checking for CFNotificationCenterGetDarwinNotifyCenter... yes
checking for whether we will build daemondo... yes
checking for ports tree... /opt/local/var/macports/sources/rsync.macports.org/release/tarballs/ports
checking for MacPorts config directory... ${sysconfdir}/macports
checking for install user... root
checking for install group... admin
checking for macports user... macports
checking what permissions to use for installation directories... 0755
checking for Applications installation directory... /Applications/MacPorts
checking for Frameworks installation directory... /opt/local/Library/Frameworks
checking for Universal CPU architectures... x86_64 i386
checking how to run the C preprocessor... /usr/bin/cc -E
checking for ANSI C header files... (cached) yes
checking for dirent.h that defines DIR... yes
checking for library containing opendir... none required
checking for sys/wait.h that is POSIX.1 compatible... yes
checking limits.h usability... yes
checking limits.h presence... yes
checking for limits.h... yes
checking paths.h usability... yes
checking paths.h presence... yes
checking for paths.h... yes
checking sys/file.h usability... yes
checking sys/file.h presence... yes
checking for sys/file.h... yes
checking crt_externs.h usability... yes
checking crt_externs.h presence... yes
checking for crt_externs.h... yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking sys/fcntl.h usability... yes
checking sys/fcntl.h presence... yes
checking for sys/fcntl.h... yes
checking sys/cdefs.h usability... yes
checking sys/cdefs.h presence... yes
checking for sys/cdefs.h... yes
checking err.h usability... yes
checking err.h presence... yes
checking for err.h... yes
checking sys/socket.h usability... yes
checking sys/socket.h presence... yes
checking for sys/socket.h... yes
checking sys/sysctl.h usability... yes
checking sys/sysctl.h presence... yes
checking for sys/sysctl.h... yes
checking readline/readline.h usability... yes
checking readline/readline.h presence... yes
checking for readline/readline.h... yes
checking readline/history.h usability... yes
checking readline/history.h presence... yes
checking for readline/history.h... yes
checking pwd.h usability... yes
checking pwd.h presence... yes
checking for pwd.h... yes
checking sys/paths.h usability... yes
checking sys/paths.h presence... yes
checking for sys/paths.h... yes
checking utime.h usability... yes
checking utime.h presence... yes
checking for utime.h... yes
checking for bzero... yes
checking for memset... yes
checking for fgetln... yes
checking for lockf... yes
checking for flock... yes
checking for setmode... yes
checking for strcasecmp... yes
checking for strncasecmp... yes
checking for strlcpy... yes
checking for copyfile... yes
checking for clearenv... no
checking for sysctlbyname... yes
checking if readlink conforms to POSIX 1003.1a... yes
checking CommonCrypto/CommonDigest.h usability... yes
checking CommonCrypto/CommonDigest.h presence... yes
checking for CommonCrypto/CommonDigest.h... yes
checking for readline in -lreadline... yes
checking whether rl_username_completion_function is declared... no
checking whether rl_filename_completion_function is declared... yes
checking whether rl_completion_matches is declared... yes
checking whether username_completion_function is declared... yes
checking whether filename_completion_function is declared... yes
checking whether completion_matches is declared... yes
checking for Tcl configuration... configure: error: Can't find Tcl configuration definitions
Command failed: cd /opt/local/var/macports/sources/rsync.macports.org/release/tarballs/base && CC=/usr/bin/cc ./configure --prefix=/opt/local --with-tclpackage=/Library/Tcl --with-install-user=root --with-install-group=admin --with-directory-mode=0755 --enable-readline && make && make install SELFUPDATING=1
Exit code: 1
DEBUG: Error installing new MacPorts base: command execution failed
while executing
"macports::selfupdate [array get global_options] base_updated"
Error: /opt/local/bin/port: port selfupdate failed: Error installing new MacPorts base: command execution failed


Tcl がどうしたとか出てくる。
そういえば、OS 更新後に Xcode も更新があったりした。

あと、Webで検索したらコマンドラインツールがなくなったとかいうのも見つけたので、Xcode を入れ直してみる。

が、状況が変わらない。

そこで、Xcode のメニューから Open Developer Tool → More Developer Tools をクリックしてみる。



ブラウザが起動され、Apple ID でログインする画面が出る。



すると、そこには "Command Line Tools ( OS X Mavericks ) for Xcode - Late October" ってのがあるので、こいつをダウンロードする。



ダウンロードしたらインストール。
このあと念のため再起動しておいた。

これをやったら、port selfupdate もできるようになった。

ただ、gdb が command not found になるのは直ってないぞ。

XP期限切れで阿鼻叫喚って。。。

2013-10-06 14:56:41 | 雑記
最後のとこは笑うところか。

 【XP期限切れ、自治体「攻撃めったにない」: YOMIURI ONLINE(読売新聞)】
  http://www.yomiuri.co.jp/net/news0/national/20131006-OYT1T00223.htm

記事文面のとおりに言ったとしたらね。



まあ、実際のところは Windows7 には移行ツールも入ってるから、データやらある程度の設定はそのまま移行できるんだから予算以外ではたいした問題はないんじゃないかと思う。

で、XPで動いていたOfficeなどは別の問題で本来更新すべきタイミングがどこかでやってくるわけで、そっちを恨むわけにはいかないだろうよ。

ということで最後の発言は「めんどくせぇな」の言い換えしてるだけだと思った。
担当は気の毒だな。


ここんとこ

2013-10-06 13:02:59 | 雑記
精神が不安定。

というのはしっくりこないな。


感情が不安定

なら近づいた感じ。


ひとにぶら下がって、ひとに迷惑ばかりかけて、さらに支えてもらって、そのひとに砂をかけるようなことをして、勝手なこともしてさらに迷惑を増やす。

どうすれば迷惑をかけず、ひとの役に立つことができるのか、その考え方も分からなくなった。

ちゃんとしなければと思うんだけど。