2009年8月19日星期三

64位Linux系统(CentOS)libmysqlclient skipping incompatible

64位Linux系统下,源码编译时,有时会无法链接libmysqlclient库:

/usr/bin/ld: skipping incompatible /usr/lib/mysql/libmysqlclient.so when searching for -lmysqlclient
/usr/bin/ld: skipping incompatible /usr/lib/mysql/libmysqlclient.a when searching for -lmysqlclient

请将Makefile里面的
-L/usr/lib/mysql
改为
-L/usr/lib64/mysql

---------------
或者:
----------------
# cd /usr/lib
# mv lib lib.bak
# ln -s /usr/lib64/mysql /usr/lib/mysql

2009年8月18日星期二

编译Mysql时configure: error: No curses/termcap library found 的错误解决方法

问题:在手动编译安装mysql的过程中.发生错误如下:

configure: error: No curses/termcap library found

在网上找了很多的解决办法,发现以下这个正解,放上以备查用



解决方法:安装 ncurses-devel-5.5-24.20060715.i386.rpm

OK!

注意版本问题,也许我们两个需要安装的版本不一样.

[Linux] RedHat-linux下安装gcc

复制以下RPM包到/root/install目录下 
glibc-kernheaders-2.4-8.10.i386.rpm 
glibc-devel-2.3.2-11.9.i386.rpm 
 cpp-3.2.2-5.i386.rpm 
binutils-2.13.90.0.18-9.i386.rpm 
gcc-3.2.2-5.i386.rpm 

以上文件可以在 安装盘中找到 安装顺序   
rpm -ivh glibc-kernheaders-2.4-8.10.i386.rpm   
rpm -ivh glibc-devel-2.3.2-11.9.i386.rpm   
rpm -ivh cpp-3.2.2-5.i386.rpm   
rpm -ivh binutils-2.13.90.0.18-9.i386.rpm   
rpm -ivh gcc-3.2.2-5.i386.rpm

2009年8月10日星期一

今天多学了一手。本来已经要在yahoo上下单子买一个XServerRaid,原价56万日元。一时兴起,又去查了下,发现尽管是2005年出品的XServerRaid,里面的HardDisk Module却只支持UltraATA。好悬⋯⋯

UltraATA的哈人的Disk,现在已经是希罕物⋯⋯,大家都SATA I或者SATA II。顺便看了看,说什么在拍卖上也找不到XSan,那东西真是个宝物啊⋯⋯

2009年8月7日星期五

I can't open an Office document after I install Office 2008 SP2 Update

I can't open an Office document after I install Office 2008 SP2 Update
Show All
Cause: This is a known issue with Office 2008 for Mac Service Pack 2 (12.2.0) that prevents some Open XML Format files from opening. To address this issue, we will release an update in August. In the meantime, you can use one of the following possible solutions.
Solution: Save your Excel workbook by using an earlier version of Office 2008 for Mac.
Solution: Save your Excel workbook by using Office 2004 for Mac with Open XML Converter.
Solution: Save your PowerPoint presentation, such as .pptx, .pptm, or .potx, by using 2007 Microsoft Office Suite Service Pack 2 (SP2) for Windows.
Solution: Save Excel workbooks to the .xlsb format in Excel 2007.
Solution: Save your document to .doc, .xls, or .ppt format by using Office 2008 for Mac 12.1.9 Update or an earlier version.
Solution: Save your document to .doc, .xls, or .ppt format by using Office 2004 for Mac with Open XML Converter.
Solution: Convert your document to .doc, .xls, or .ppt, by using Open XML Converter.
Solution: Save your Word or Excel documents by using 2007 Microsoft Office Suite Service Pack 2 (SP2) for Windows.
Solution: Save your document to .doc, .xls, or .ppt format by using Microsoft Office 2003 or an earlier version with Microsoft Office Compatibility Pack.
Solution: Use the AppleTime Machine to roll back to Office 2008 for Mac 12.1.9 Update or an earlier version.
Solution: Remove Office manually, reinstall Microsoft Office 2008 for Mac from the original installation media, and then upgrade to Office 2008 for Mac 12.1.9 Update. Do not upgrade to Microsoft Office 2008 for Mac Service Pack 2 (12.2.0) from Microsoft AutoUpdate.

微软没吃错药吧⋯⋯已知bug不去修正,让顾客重装office?

2009年7月29日星期三

JAVA中的取整函数

舍掉小数取整:Math.floor(3.5)=3
四舍五入取整:Math.rint(3.5)=4
进位取整:Math.ceil(3.1)=4

甲骨文软件价格大幅调涨 某些产品涨价幅度达40%

甲骨文(Oracle)一年前才调高软件价格20%以上,如今又再度调涨售价,这回某些产品的调涨幅度达40%。

有趣的是,这回大幅调涨价格的不是甲骨文的核心产品,例如产品资料库或应用程序服务软件,而是软件管理工具(administrative tools),用来监控和遵守有关当局的规定。

我很想说这是在敲竹杠,但不得不说这纯粹是精明的商业行动。甲骨文深知数据库软件销售不会永远快速增长,而客户迟早会需要添购额外的管理工具。就商业策略而言,调高非核心软件元件的价格,是比较明智的,既可确保客户持续地采用产品,也可维持主要产品线的现金流源源不断。

不过,这也令人不禁想问几个与甲骨文并购Sun有关的策略问题。具体来说就是,甲骨文将如何订定MySQL及其相关套装产品的价格?现有的工具能不能与MySQL并用,目前使用两种软件的客户会不会被迫购买两套管理工具? MySQL的用户能接受甲骨文调整价格政策吗?

调整价格对软件公司而言是稀松平常的事,但MySQL这类开放源代码软件公司通常会采用简单的定价模式,达到薄利多销的目的。

最大的问题是,甲骨文掌控MySQL对客户而言有没有助益。无庸置疑的是,在一些情况下,客户向单一来源购买产品和取得支持服务,会更方便。不过,很难想像甲骨文积极管理的销售作风,和MySQL纳入销售转换的过程,能配合无间。

附带一提,若你认为GPL与开放源代码授权艰涩难懂,不妨瞄一眼甲骨文的应用程序授权表(Application Licensing Table),乍看下似乎简单明了,但等到你需要用到非阳春型(non-vanilla)安装时便知没那么简单。