2004-01-01から1年間の記事一覧

php-5.0.1

: apache2filter /opt/apache/build/instdso.sh SH_LIBTOOL='/opt/apache/build/libtool' libphp5.la /opt/apache/modules rm -f /opt/apache/modules/libphp5.so /opt/apache/build/libtool --mode=install cp libphp5.la /opt/apache/modules/ cp .libs/li…

java heap size

java -Xrunhprof kill -3もしくはプログラム終了時に出力memory size java -Xmx128m 128Mbの最大メモリ使用量

php5 w/ apache2

PHP

/etc/httpd/conf.d/php.confにてlibphp4.soの代わりにlibphp5.soをロードするように変更。

rpm packageをinstallする際、

error: rpmdbNextIterator: skipping h# 526 region trailer: BAD, tag 0 type 0 offset 0 count 0 というエラーメッセージが出てinstallできなかったが rpm --rebuilddb を実行することで解決。

php5 installation on fedora core

php

./configure --with-zlib --with-gd --with-jpeg-dir --with-png-dir --with-pgsql --with-apxs2=/usr/sbin/apxs --enable-ftp --with-readline --enable-mbstring --with-xsl --enable-wddx --with-curl --with-xmlrpc --enable-gd-native-ttf --with-ttf -…

httpdの各ユーザの設定は以下のファイル:

/private/etc/httpd/users/*.confリンク先フォルダをhttpから参照できるようにするにはここにFollowSymlinksを加える。

php+xsltをMacOSXでcompile時にエラーが出る(perl-4.3.8)

PHP

ld: Undefined symbols: std::terminate() vtable for __cxxabiv1::__class_type_info vtable for __cxxabiv1::__si_class_type_info vtable for __cxxabiv1::__vmi_class_type_info operator delete(void*) operator delete(void*) operator new(unsigned l…

smbchartool-2.3aでファイル名の文字コード変換 (euc->sjis)

euctosjisはバグでjisに変換されてしまう。 euctojis src dst jistosjis src dst の二段階で行う。

Terminal.appで日本語表示

jless: JLESSCHARSET=utf-8 nkf -w filename | jless

インターネットラジオ検索サイト

http://www.shoutcast.com/

の設定

ssh

http://www.gcd.org/sengoku/docs/NikkeiLinux00-12/config.ja.html

htmlファイル中のphpを色分け: emacs php-mode/mmm-mode

http://bluestar.s32.xrea.com/text/php-mode.php

ファイルのアップロード

php

http://php.s3.to/man/features.file-upload.html

exec()等で外部プログラムを呼ぶ

php

/var/www/cgi-bin/にプログラムをおく(apacheの設定次第)

共有ライブラリの作成(shared lib)

http://www.linux.or.jp/JF/JFdocs/Program-Library-HOWTO/shared-libraries.html gcc -fPIC -g -c -Wall src.c gcc -shared -Wl,-soname,your_soname \ -o library_name file_list library_list

dl()でライブラリをロード

php

http://jp2.php.net/dl http://www.php.net/manual/en/zend.creating.php

その他

./configure --helpでオプション表示

up2date --src

zlib defaultで--shared postgresql libxslt libjpeg defaultで--enable-shared libpng defaultでsharedたぶん php --enable-cli \ --with-readline \ --enable-xslt \ --with-xslt-sablot \ --with-ttf \ --enable-dba \ --with-dbaでうまくいかなかった...…

up2dateより

libxml, curl, freetype, gd, expat

tomcat connector

wget "http://www.meisei-u.ac.jp/mirror/apache/dist/jakarta/tomcat-connect ors/jk2/jakarta-tomcat-connectors-jk2-src-current.tar.gz" tar xvzf jakarta-tomcat-connectors-jk2-src-current.tar.gz cd jakarta-tomcat-connectors-jk2-2.0.4-src/jk/nat…

libiconv

wget "http://ftp.gnu.org/pub/gnu/libiconv/libiconv-1.9.1.tar.gz" ./configure;make make install

Sablotron

src.rpmのspecファイルにてjavascriptをdisable %{!?jscript: %define jscript 0} が、rpm -iにてiconvがみつからないとおこられるので--nodepsで無理やりinstall

postgresql

以下のオプションを設定 --with-CXX \ --enable-locale src.rpmからなので--with-javaオプションはつけるとエラーになる(SPEC中にてすでにjdbcが指定されている)

Apache再コンパイル

up2date --get-source httpd sourceをinstall sudo rpm -i /var/spool/up2date/httpd-2.0.49-4.src.rpm 以下のオプションを追加 --enable-shared=yes \ --with-mpm-worker \ --enable-deflate=shared \ rebuild sudo rpmbuild -ba httpd.spec reinstall(パッ…

up2date

--get-sourceで/var/spool/up2date以下にsrc.rpmをダウンロード -i --srcでインストール時にsrc.rpmもインストール

リダイレクションに対応するには

proxyへのproxyにてリダイレクションのあるサイトにアクセスできるようにするには?一応これで動くが... never_direct allow all

Ctrl-spaceはだめ?

http://mail.gnu.org/archive/html/help-gnu-emacs/2001-03/msg00037.html

terminfo

Way 1 - Copying the binary (compiled) terminal description. The binary is found (on the PC) at /usr/share/terminfo/c/cygwin you need to copy it to the same location on the linux. Check the man page of "terminfo" for the exact file name on …

mount AIX volume

こんなエラーが出た mount: server:/share failed, reason given by server: unknown nfs status return value: -1 >http://publib-b.boulder.ibm.com/Redbooks.nsf/RedbookAbstracts/tips0403.html?Open client's host name cant resolve. smitty hostenvで…

perl: warning: Setting locale failed.

localeの再設定はdpkg-reconfigure -plow locales で。