ポートフォリオみたいなサイト作りました
9 / 26 / 2009

このご時世営業しないと食っていけないので作りました!って友人が言ってて作りました。といっても簡単すぎなんですがね…

鹿が好きなのでshikatachiです。鹿達です。

あえてWordPressは使わず。ちょいちょい実績とか追加していく予定。

http://waldspaziergang.com/shikatachi/

ブログのトップページをHTML5で書いてみた。
9 / 17 / 2009

とりあえず20分くらいで書いてみた。

http://waldspaziergang.com/notizblock/html5.html

今回使ったのは、<header>,<section>,<article>,<footer>です。

<header><footer>あたりは必ず使う様になるのかなぁ。ともあれ使い易そうというかコードの可視性は上がりそうな予感。

<section><article>は使い方勉強する必要ありそう。<section>と<div>とか絶対迷う。

とりあえずIEに対応させるには

<!–[if IE]>
<script type=”text/javascript”>
document.createElement( ‘header’ );
document.createElement( ’section’ );
document.createElement( ‘nav’ );
document.createElement( ‘aside’ );
document.createElement( ‘footer’ );
document.createElement( ‘article’ );
</script>
<![endif]–>

とやって要素を生成しておく必要がある。

そしてCSSで

header,section,article,footer{
display:block;
}

としておく。

そして宣言がとってもシンプル。

<!doctype html>
<html lang=”ja”>

だけ。今まで宣言って毎回コピペしてましたがこれなら書ける。
エンコーディングも

<meta charset=”utf-8″>

とシンプル。

Firefox3でしか確認してませんのであしからず。

HTML5に関する情報は

http://www.html5.jp/

から。

Web ARENAにAPCをインストール
9 / 16 / 2009

# pecl install APC

を使ってインストール。

WARNING: channel “pecl.php.net” has updated its protocols, use “channel-update pecl.php.net” to update

Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 92160 bytes) in /usr/share/pear/PEAR/Dependency2.php on line 396
Allowed memory size of 8388608 bytes exhausted (tried to allocate 0 bytes)

メモリは足りないと言われたので/usr/share/pear/pearcmd.phpに

@ini_set(’memory_limit’, ‘16M’);

と書く。

downloading APC-3.0.19.tgz …
Starting to download APC-3.0.19.tgz (115,735 bytes)
…………………….done: 115,735 bytes
47 source files, building
running: phpize
sh: phpize: command not found
ERROR: `phpize’ failed

phpizeが無いと言われた。

yum -y install php-devel
yum -y install httpd-devel

downloading APC-3.0.19.tgz …
Starting to download APC-3.0.19.tgz (115,735 bytes)
………….done: 115,735 bytes
47 source files, building
running: phpize
configure.in:9: warning: underquoted definition of PHP_WITH_PHP_CONFIG
run info ‘(automake)Extending aclocal’
or see http://sources.redhat.com/automake/automake.html#Extending-aclocal
configure.in:32: warning: underquoted definition of PHP_EXT_BUILDDIR
configure.in:33: warning: underquoted definition of PHP_EXT_DIR
configure.in:34: warning: underquoted definition of PHP_EXT_SRCDIR
configure.in:35: warning: underquoted definition of PHP_ALWAYS_SHARED
acinclude.m4:19: warning: underquoted definition of PHP_PROG_RE2C
configure.in:65: error: possibly undefined macro: AC_PROG_LIBTOOL
If this token and others are legitimate, please use m4_pattern_allow.
See the Autoconf documentation.
ERROR: `phpize’ failed

これはよくわからん。どうやらautomake1.8の仕業

http://www.doyouphp.jp/inst/inst_automake.shtml

ここにかいてある通りに修正する。ばしょは/usr/lib64/php/build/phpize.m4でした。

configure.in:65: error: possibly undefined macro: AC_PROG_LIBTOOL

これがまだのこっているので、

yum -y install libtool libtool-libs libtool-libs13

とする。

もう一回試すとCコンパイラが無いと言われたので、

yum install gcc gcc-c++

とする。今度こそ!

Build process completed successfully
Installing ‘/var/tmp/pear-build-root/install-APC-3.0.19//usr/lib64/php4/apc.so’
install ok: channel://pecl.php.net/APC-3.0.19
You should add “extension=apc.so” to php.ini

できた!

php.iniにextension=apc.so

を追加しておしまい。

You

are currently browsing the notizbloc blog archives for 9 / 2009.