Oracle 5.0 Reference Manual page 186

Table of Contents

Advertisement

Solaris Notes
For information about installing MySQL on Solaris using PKG distributions, see
Section 2.13, "Installing
MySQL on
Solaris".
On Solaris, you may run into trouble even before you get the MySQL distribution unpacked, as the
Solaris
cannot handle long file names. This means that you may see errors when you try to
tar
unpack MySQL.
If this occurs, you must use GNU
(gtar) to unpack the distribution.
tar
If you get the following error from configure, it means that you have something wrong with your
compiler installation:
checking for restartable system calls... configure: error can not
run test programs while cross compiling
In this case, you should upgrade your compiler to a newer version. You may also be able to solve this
problem by inserting the following row into the
file:
config.cache
ac_cv_sys_restartable_syscalls=${ac_cv_sys_restartable_syscalls='no'}
If you are using Solaris on a SPARC, the recommended compiler is
2.95.2 or 3.2. You can find this
gcc
at http://gcc.gnu.org/. Note that
2.8.1 does not work reliably on SPARC.
gcc
The recommended
line when using
2.95.2 is:
configure
gcc
CC=gcc CFLAGS="-O3" \
CXX=gcc CXXFLAGS="-O3 -felide-constructors -fno-exceptions -fno-rtti" \
./configure --prefix=/usr/local/mysql --with-low-memory \
--enable-assembler
If you have an UltraSPARC system, you can get 4% better performance by adding
-mcpu=v8 -Wa,-
to the
and
environment variables.
xarch=v8plusa
CFLAGS
CXXFLAGS
If you have Sun's Forte 5.0 (or newer) compiler, you can run
like this:
configure
CC=cc CFLAGS="-Xa -fast -native -xstrconst -mt" \
CXX=CC CXXFLAGS="-noex -mt" \
./configure --prefix=/usr/local/mysql --enable-assembler
To create a 64-bit binary with Sun's Forte compiler, use the following configuration options:
CC=cc CFLAGS="-Xa -fast -native -xstrconst -mt -xarch=v9" \
CXX=CC CXXFLAGS="-noex -mt -xarch=v9" ASFLAGS="-xarch=v9" \
./configure --prefix=/usr/local/mysql --enable-assembler
To create a 64-bit Solaris binary using gcc, add
to
and
and remove
-m64
CFLAGS
CXXFLAGS
--
from the
line.
enable-assembler
configure
In the MySQL benchmarks, we obtained a 4% speed increase on UltraSPARC when using Forte 5.0 in
32-bit mode, as compared to using
3.2 with the
flag.
gcc
-mcpu
If you create a 64-bit
binary, it is 4% slower than the 32-bit binary, but can handle more
mysqld
threads and memory.
When using Solaris 10 for x86_64, you should mount any file systems on which you intend to store
files with the
option. (By default mounting is done without this option.)
InnoDB
forcedirectio
Failing to do so will cause a significant drop in performance when using the
storage engine on
InnoDB
this platform.
If you get a problem with
or sched_yield, you can fix this by adding
to the
fdatasync
LIBS=-lrt
line
configure
For compilers older than WorkShop 5.3, you might have to edit the
script. Change this
configure
line:
166

Advertisement

Table of Contents
loading

This manual is also suitable for:

Mysql 5.0

Table of Contents