..bits & bytes teleported

Sunday Oct 19, 2008

(Note: This post is relevant only if you want to have 'DTr ace' support in the MySQL server. Packages for Solaris are available at http://dev.mysql.com/downloads/.  You can install the MySQL packages for Solaris 10 on Open Solaris)

We shall use the Sun Studio C/C++ compilers and linkers to build MySQL 6.0 alpha on Open Solaris b98 on a x86 system.

  1. Grab the MySQL 6.0 alpha tarball from here
  2. Extract it
  3. Go to the source root, and do the following: (The text following a '#' should be treated as comments)
    $ ./configure --enable-dtrace CC=cc CXX= CC --without-falcon --prefix=/export/home/amit/mysql60-install # MySQL 6.0 alpha contains DTrace probes. To enable it use the flag --enable-dtrace, 'cc' and 'CC' are Sun C and C++ compilers respectively; --without-falcon disables the building of 'falcon' SE.
    
    $ make
    
    $ make install
    
    

Note:

Make sure that the your PATH variable has the locations for the non-GNU tools first. For eg.

$ echo $PATH
/opt/SUNWspro/bin:/usr/sfw/bin:/usr/bin:/usr/X11/bin:/usr/sbin:/sbin:/usr/gnu/bin
This is very important, since having GNU tools ahead in the PATH might result in using the GNU ld and standard C++ libraries which could create a failed build due to conflicts. Thanks to Martin MC Brown for helping me with this.
Comments:

Post a Comment:
Comments are closed for this entry.