Solaris 2.7上MySQL 属意事故

作者:天极软件 泉源:天极软件

经常你能在 Solaris 2.7 上把持 Solaris 2.6 二进制代码。大少数Solaris 2.6 的成绩也实用于Solaris 2.7。

属意:MySQL3.23.4 和更高版本应该能自动检测 Solaris 2.7 而且启用下列成绩的措置奖励要领!

Solaris 2.7 在包罗文件中有一些bug,在把持gcc时,你可以看见下列错误:

/usr/include/widec.h:42: warning: `getwc' redefined
/usr/include/wchar.h:326: warning: this is the location of the previous
definition

若是泛起这种形态,你可以做下列事情措置奖励这个成绩:

拷贝/usr/include/widec.h.../lib/gcc-lib/os/gcc-version/include而且改变第41行:

#if     !defined(lint) && !defined(__lint)
为
#if     !defined(lint) && !defined(__lint) && !defined(getwc)

此外,你可以间接编辑“/usr/include/widec.h”。这两种要领,在你举行批改此后,你应该删除“config.cache”而且再运转configure

若是当你运转make时,你失失象如许错误,那是因为configure没检测“curses.h”文件(也许因为/usr/include/widec.h的错误):

In file included from mysql.cc:50:
/usr/include/term.h:1060: syntax error before `,'
/usr/include/term.h:1081: syntax error before `;'

措置奖励它的方案是做下列递次之一:

  • 如上所述编辑“/usr/include/widec.h”而且再次运转configure。
  • “config.h”文件删除#define HAVE_TERM行并再次运转make
  • CFLAGS=-DHAVE_CURSES CXXFLAGS=-DHAVE_CURSES ./configure举行设置。


[an error occurred while processing this directive]




版权声明: 原创作品,承诺转载,转载时请务必以超链接形式标明文章 原始理由 、作者信息和本声明。不然将清查司法责任。

原文地址:https://www.cnblogs.com/zgqjymx/p/1975270.html