对于Coldfusion来说,我算是老鸟了,win下自然不用说了,就是Linux下,也在Redhat、Suse下都安装过,而且这么多年一直都在使用Coldfusion做后台开发,因为前面一直后几台资源可以用,所以Ubuntu下倒是一直没有安装过,这不现在在外面,需要本机调试,就下载了个Coldfusion在Ubuntu上安装,可本来按部就班的安装到了Ubuntu下就不行了,也许是因为我用的是Edgy,或许在Dapper中不会出错,运行安装程序后报如下错误:

[bash]
feiy@feiy-laptop:~$ sudo ./coldfusion-701-lin.bin
Preparing to install...
Extracting the JRE from the installer archive...
Unpacking the JRE...
Extracting the installation resources from the installer archive...
Configuring the installer for this system's environment...

Launching installer...

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

晕倒,我机子上的glibc库是正常的,倒腾了半天,实在没办法,最后还是Google了下,这里提到了一个解决的方法,原来是Coldfusion的安装脚本中有个环境变量设置有错与新版本的glibc不兼容,所以将其注释掉就可以了:

[bash]
cp coldfusion-702-lin.bin coldfusion-702-lin.bak
cat coldfusion-702-lin.bak | sed "s/export LD_ASSUME_KERNEL/#xport LD_ASSUME_KERNEL/" > coldfusion-702-lin.bin

然后再次执行安装就可以正常安装了。