Compile percona 5.5

80 views
Skip to first unread message

Jair Gaxiola

unread,
Jul 20, 2011, 10:44:47 AM7/20/11
to percona-d...@googlegroups.com
Hi,

Which is the correct process for to compile percona 5.5 with cmake?

Thanks

--
SIN ETIQUETAS.[ PUNTO ]
http://flavors.me/jyr
http://pythoncocoa.com
http://opentumblr.com

Jair Gaxiola

unread,
Jul 20, 2011, 10:52:18 AM7/20/11
to percona-d...@googlegroups.com
On Wed, Jul 20, 2011 at 9:44 AM, Jair Gaxiola <jyr.g...@gmail.com> wrote:
> Hi,
>
> Which is the correct process for to compile percona 5.5 with cmake?
>

i try with

CFLAGS="-arch i386 -arch x86_64 -O3 -fno-omit-frame-pointer"
CXXFLAGS="-arch i386 -arch x86_64 -O3 -fno-omit-frame-pointer
-felide-constructors -fno-exceptions -fno-rtti" cmake
--prefix=/Applications/DEP/Library/mysql --disable-dependency-tracking
--with-extra-charsets=complex --enable-thread-safe-client
--enable-local-infile
--with-unix-socket-path=/Applications/DEP/tmp/mysql/mysql.sock
--with-charset=latin1 --with-collation=latin1_general_ci
--with-mysqld-user=_mysql --enable-shared --with-plugins=all

Vadim Tkachenko

unread,
Jul 20, 2011, 10:54:11 AM7/20/11
to percona-d...@googlegroups.com
Jair,

If you bzr branch lp:percona-server
you will find Makefile with procedures we use for quick builds.

For full RPM build you make check out .spec files.

> --
> You received this message because you are subscribed to the Google Groups "Percona Discussion" group.
> To post to this group, send email to percona-d...@googlegroups.com.
> To unsubscribe from this group, send email to percona-discuss...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/percona-discussion?hl=en.
>
>

--
Vadim Tkachenko, CTO, Percona Inc.
Phone +1-888-401-3403,  Skype: vadimtk153
Schedule meeting: http://tungle.me/VadimTkachenko

Flat-rate 24x7 support for MySQL <http://percona.com/mysql-support>

Jair Gaxiola

unread,
Jul 20, 2011, 10:58:36 AM7/20/11
to percona-d...@googlegroups.com
Vadim,

Sorry for not commenting, I try to compile on snow leopard
Percona-Server-5.5.13-rel20.4

Vadim Tkachenko

unread,
Jul 20, 2011, 11:00:19 AM7/20/11
to percona-d...@googlegroups.com
Jair,

Then you can use our Makefile as base and modify it with your parameters.


Thanks,
Vadim

Jair Gaxiola

unread,
Jul 20, 2011, 11:04:44 AM7/20/11
to percona-d...@googlegroups.com
Vadim,

I Don't find makefile in directories percona, only config.h.cmake,
configure.cmake

Vadim Tkachenko

unread,
Jul 20, 2011, 11:11:23 AM7/20/11
to percona-d...@googlegroups.com
Jair,

It is in our source code repository
http://bazaar.launchpad.net/~percona-dev/percona-server/5.5/files

you can get it with
bzr branch lp:percona-server

Jair Gaxiola

unread,
Jul 20, 2011, 11:24:11 AM7/20/11
to percona-d...@googlegroups.com
Vadim,

Thanks but I need of stable release with makefile or I can install
with cmake, I will reading more on installing.

Jair Gaxiola

unread,
Jul 20, 2011, 7:02:04 PM7/20/11
to percona-d...@googlegroups.com
ok,


Achieve compiled with

CFLAGS="-arch i386 -arch x86_64 -O3 -fno-omit-frame-pointer"
CXXFLAGS="-arch i386 -arch x86_64 -O3 -fno-omit-frame-pointer

-felide-constructors -fno-exceptions -fno-rtti" cmake .
-DCMAKE_INSTALL_PREFIX=/Applications/DEPLOIO/Library/mysql
-DEXTRA_CHARSETS=complex -DENABLED_LOCAL_INFILE=1
-DMYSQL_UNIX_ADDR=/Applications/DEPLOIO/tmp/mysql/mysql.sock
-DDEFAULT_CHARSET=latin1 -DDEFAULT_COLLATION=latin1_general_ci
-DMYSQL_USER=_mysql -DSYSCONFDIR=/Applications/DEPLOIO/conf/mysql

but return

Can't find messagefile
'/Applications/DEPLOIO/Library/mysql/share/mysql/english/errmsg.sys'

my real path is

'/Applications/DEPLOIO/Library/mysql/share/english/errmsg.sys'

I don't know the reason of second mysql in first path, Where can change of path?

Alexey Kopytov

unread,
Jul 22, 2011, 4:10:15 AM7/22/11
to percona-d...@googlegroups.com
Hi Jair,

On 21.07.11 3:02, Jair Gaxiola wrote:
> ok,
>
>
> Achieve compiled with
>
> CFLAGS="-arch i386 -arch x86_64 -O3 -fno-omit-frame-pointer"
> CXXFLAGS="-arch i386 -arch x86_64 -O3 -fno-omit-frame-pointer
> -felide-constructors -fno-exceptions -fno-rtti" cmake .
> -DCMAKE_INSTALL_PREFIX=/Applications/DEPLOIO/Library/mysql
> -DEXTRA_CHARSETS=complex -DENABLED_LOCAL_INFILE=1
> -DMYSQL_UNIX_ADDR=/Applications/DEPLOIO/tmp/mysql/mysql.sock
> -DDEFAULT_CHARSET=latin1 -DDEFAULT_COLLATION=latin1_general_ci
> -DMYSQL_USER=_mysql -DSYSCONFDIR=/Applications/DEPLOIO/conf/mysql
>
> but return
>
> Can't find messagefile
> '/Applications/DEPLOIO/Library/mysql/share/mysql/english/errmsg.sys'
>
> my real path is
>
> '/Applications/DEPLOIO/Library/mysql/share/english/errmsg.sys'
>
> I don't know the reason of second mysql in first path, Where can change of path?
>

You can either set it by passing --lc-messages-dir=... to server, or you
can change the built-in default by adding -DINSTALL_MYSQLSHAREDIR=... to
CMake options.

Jair Gaxiola

unread,
Jul 22, 2011, 1:16:28 PM7/22/11
to percona-d...@googlegroups.com
Hi Alexey


Works me with

CFLAGS="-arch i386 -arch x86_64 -O3 -fno-omit-frame-pointer"
CXXFLAGS="-arch i386 -arch x86_64 -O3 -fno-omit-frame-pointer
-felide-constructors -fno-exceptions -fno-rtti" cmake .

-DCMAKE_INSTALL_PREFIX=/Applications/DEP/Library/mysql
-DEXTRA_CHARSETS=complex -DENABLED_LOCAL_INFILE=1
-DMYSQL_UNIX_ADDR=/Applications/DEP/tmp/mysql/mysql.sock
-DDEFAULT_CHARSET=latin1 -DDEFAULT_COLLATION=latin1_general_ci
-DMYSQL_USER=_mysql -DSYSCONFDIR=/Applications/DEPLOIO/conf/mysql

make
make install

I found the link http://forge.mysql.com/wiki/Autotools_to_CMake_Transition_Guide

Reply all
Reply to author
Forward
0 new messages