Xen勉強の記録2 ― 2009-08-04 18:20:48
このまえxmコマンドでゲストOSを起動させることができなかったけど,virshコマンドだとうまくいった.わけわからんぞ.
tarコマンド ― 2009-08-04 19:15:48
いつも忘れてしまうのでメモ.
# tar czvf target.tar.gz target_dir/
MySQLのバックアップ ― 2009-08-04 21:39:27
# mysqlhotcopy -u root --password=password dbName /tmp/
CentOS5.3 tomcat起動時のエラー ― 2009-08-05 20:34:10
CentOS 5.3 64bitでのエラー.yumでインストールしたtomcatを起動させようとしたら,エラーが表示された.
# /etc/init.d/tomcat5 start Starting tomcat5: /usr/bin/rebuild-jar-repository: error: Could not find xml-commons-apis Java extension for this JVM
表記通り,yum install xml-commons-apisで無いものをインストールする.
webdav ― 2009-08-05 21:02:52
CentOS 5.3でWebDAVを使えるようにする.
# wget http://webdav.todo.gr.jp/download/mod_encoding-20021209.tar.gz # wget http://webdav.todo.gr.jp/download/experimental/mod_encoding.c.apache2.20040616 # tar zxvf mod_encoding-20021209.tar.gz # mv mod_encoding.c.apache2.20040616 mod_encoding-20021209/mod_encoding.c mv: overwrite `mod_encoding-20021209/mod_encoding.c'? yes # cd mod_encoding-20021209/lib/ # ./configure # make # make install # ./configure --with-apxs=/usr/sbin/apxs --with-iconv-hook
libconvが必要って怒られた.ので,libconvをインストールする.
# wget ftp://core.ring.gr.jp/pub/GNU/libiconv/libiconv-1.13.1.tar.gz # tar zxvf libiconv-1.13.1.tar.gz # cd libiconv-1.13.1 # ./configure --enable-static --enable-shared # make # make install
もっかいconfigureをかける.
# ./configure --with-apxs=/usr/sbin/apxs --with-iconv-hook
/etc/ld.so.confに/usr/local/libを追加して,ldconfigしてもだめ.うーん.
[root@localhost mod_encoding-20021209]# make /usr/sbin/apxs -c mod_encoding.c /usr/lib64/apr-1/build/libtool --silent --mode=compile gcc -prefer-pic -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -fno-strict-aliasing -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -pthread -I/usr/include/httpd -I/usr/include/apr-1 -I/usr/include/apr-1 -c -o mod_encoding.lo mod_encoding.c && touch mod_encoding.slo mod_encoding.c: In function 'get_client_encoding': mod_encoding.c:228: warning: implicit declaration of function 'apr_pstrdup' mod_encoding.c:228: warning: assignment makes pointer from integer without a cast mod_encoding.c:235: error: 'regex_t' undeclared (first use in this function) mod_encoding.c:235: error: (Each undeclared identifier is reported only once mod_encoding.c:235: error: for each function it appears in.) mod_encoding.c:235: error: expected expression before ')' token mod_encoding.c:235: error: too few arguments to function 'ap_regexec' mod_encoding.c: In function 'set_server_encoding': mod_encoding.c:267: warning: assignment makes pointer from integer without a cast mod_encoding.c: In function 'add_client_encoding': mod_encoding.c:293: error: 'REG_EXTENDED' undeclared (first use in this function) mod_encoding.c:293: error: 'REG_ICASE' undeclared (first use in this function) mod_encoding.c:293: error: 'REG_NOSUB' undeclared (first use in this function) mod_encoding.c:298: warning: assignment makes pointer from integer without a cast mod_encoding.c: In function 'default_client_encoding': mod_encoding.c:324: warning: assignment makes pointer from integer without a cast mod_encoding.c: At top level: mod_encoding.c:355: warning: missing braces around initializer mod_encoding.c:355: warning: (near initialization for 'mod_enc_commands[0].func') mod_encoding.c:355: warning: initialization from incompatible pointer type mod_encoding.c:359: warning: initialization from incompatible pointer type mod_encoding.c:363: warning: initialization from incompatible pointer type mod_encoding.c:367: warning: initialization from incompatible pointer type mod_encoding.c:371: warning: initialization from incompatible pointer type mod_encoding.c: In function 'mod_enc_parse': mod_encoding.c:553: warning: implicit declaration of function 'apr_psprintf' mod_encoding.c:553: warning: passing argument 2 of 'ap_pbase64encode' makes pointer from integer without a cast mod_encoding.c:555: warning: implicit declaration of function 'apr_pstrcat' mod_encoding.c:555: warning: passing argument 3 of 'apr_table_set' makes pointer from integer without a cast apxs:Error: Command failed with rc=65536 . make: *** [mod_encoding.so] Error 1
エラー..もうだめと思ってたら,ここのページに解決策載ってた.助かりました.
XOOPSコメント欄にあるランク表示を削除する ― 2009-08-07 07:27:17
XOOPSコメントにあるランク表示はちょっと邪魔.そこで,これを削除する.
テンプレート管理画面で互換モジュールのlegacy_comment.htmlを変更する.テンプレートの以下の部分をコメントアウトするなりして,削除する.
<div class="comUserRank"> <div class="comUserRankText"> <{$comment.poster.rank_title}> </div> <img class="comUserRankImg" src="<{$xoops_upload_url}>/ <{$comment.poster.rank_image}>" alt="" /> </div>
DelGateメモ ― 2009-08-20 00:29:14
DelGateによるリバースプロキシでAJAXサイトを公開する場合はURICONV=where:anyを指定することを忘れないように.気付くのにえらい時間かかった....
最近のコメント