存档

2006年10月 的存档

Ubuntu 6.10 Edgy 下ZendStudio不能运行的问题。

2006年10月29日

升级完发现系统速度居然比6.06更快!
其他都还不错,只是ZDE不能运行了,出现以下错误信息:

Configuring the installer for this system's environment...
nawk: error while loading shared libraries: libm.so.6: cannot open shared object file: No such file or directory
dirname: error while loading shared libraries: libc.so.6: cannot open shared object file: No such file or directory
/bin/ls: error while loading shared libraries: librt.so.1: cannot open shared object file: No such file or directory
basename: error while loading shared libraries: libc.so.6: cannot open shared object file: No such file or directory
dirname: error while loading shared libraries: libc.so.6: cannot open shared object file: No such file or directory
basename: error while loading shared libraries: libc.so.6: cannot open shared object file: No such file or directory
hostname: error while loading shared libraries: libc.so.6: cannot open shared object file: No such file or directory

Launching installer...

grep: error while loading shared libraries: libc.so.6: cannot open shared object file: No such file or directory
/tmp/install.dir.9288/Linux/resource/jre/bin/java: error while loading shared libraries: libpthread.so.0: cannot open shared object file: No such file or directory

尝试手动链接 /usr/lib/ 下的文件也不行,发现原来这些文件在 /lib/ 下都是存在的,google以后找到问题所在,然后看到 http://192.150.14.120/cfusion/knowledgebase/index.cfm?id=tn_18831 写的好像是叫修改版本号,具体的搞不懂 echo $LD_ASSUME_KERNEL 也是空的,最后还是注释刁解决问题:

修改 ZDE 把第1488行注释掉(可能是其他行)。

1448 #export LD_ASSUME_KERNEL=2.2.5

另外安装文件也有同样的问题,看引用文写了个脚本:

#!/bin/bash
if [ "x$1" == "x" ]
then
echo "usage: $0 filename";
fi
newfile="new_$1";
cat $1 | sed "s/export LD_ASSUME_KERNEL/#xport LD_ASSUME_KERNEL/" > $newfile;
chmod +x $newfile;
echo $newfile;

保存为例如 newglibc

$chmod +x newglibc

以后遇到这种问题直接:

$ ./glibcFix ZendStudio-xxx.bin
new_ZendStudio-xxx.bin
$ ./new_ZendStudio-xxx.bin

就可以运行了

好像写得有点白痴,太无聊了吧,想多写两个字。

Kafeifei Linux, php

firefox2.0 地址栏搜索

2006年10月9日

一个我经常使用的功能,就是在firefox地址栏直接输入想找的东西,然后会自动调用google的“手气不错”,非常实用,在找一些开源软件是非常准确的(一般官方网站都排在结果第一个),例如输入mplayer,会自动跳到 http://www.mplayerhq.hu/
实在等不及了,装了一个rc2版本,感觉良好,可是这个功能没了!

解决方法:
地址栏输入:about:config
搜索 keyword.URL
修改值为:http://www.google.com/search?hl=zh-CN&btnI=%E6%89%8B%E6%B0%94%E4%B8%8D%E9%94%99&lr=&q=
搞定。

Kafeifei Firefox

一个常见的xml解析错误解决方法

2006年10月9日

反正就是莫名其妙的错误,特别是utf-8的页面,出现这种情况的原因大概因为utf-8的编码格式是变长的,规则比较烦,中途少了一个字节或者多了一个字节就容易出现这类问题,后来用ultraedit查看,发现很诡异,都是那种单字节的字符引起的,一些控制码,反正不管怎样,替换掉这些东西就可以了,这些字符本来也不是用来看的。

$xml = preg_replace('#[\x00-\x08\x0e-\x1f\x7f]+#', ", $xml);

Kafeifei php