compiling with sphinxse and handlersocket plugin, creating a binary package out of compiled source.

50 views
Skip to first unread message

Johann Vincent Paul Tagle

unread,
Aug 3, 2012, 3:33:05 AM8/3/12
to percona-d...@googlegroups.com
Hi all,

I use MySQL and Percona for quite some time now but I'm quite new to compiling from source.  I need to do a recompile in order to include the Sphinx plugin, and I'm able to do so.  However, I noticed that the build I created doesn't include the handlersocket files in the lib/mysql/plugin directory.  I've tried different variations of the name (handlersocket, handler_socket, etc) as part of the --with-plugins parameter, but I always get "unknown plugin" error.  Can somebody point me to the correct configuration parameters to include handlersocket?

Also, my other objective is to create a binary package, so that we don't have to recompile every time we fire up a new server.  So my idea is to set the --prefix and --exec-prefix to point to a single directory or maybe two directories within a single parent directory, then just move around the directories to have the same layout as the downloaded linux binaries.  Will this work or am I missing something?

Thanks

Johann

Stewart Smith

unread,
Aug 5, 2012, 8:52:20 PM8/5/12
to Johann Vincent Paul Tagle, percona-d...@googlegroups.com
We have the ./build/build-binary.sh script in the source tree that may
help you. There is also scripts there to build RPM and DEBs.

--
Stewart Smith

Johann Vincent Paul Tagle

unread,
Aug 23, 2012, 5:08:52 AM8/23/12
to percona-d...@googlegroups.com
Hi Stewart.  Thanks for the response and apologies for the late reply as I'm only able to go back to this issue now.  I can't seem to find any build-binary.sh in the ./BUILD directory though.  There's autorun.sh, build_mccge.sh, cmake_configure.sh, FINISH.sh and SETUP.sh.  Also did a recursive search on the whole source directory for all .sh files and I still cannot find anything that could be the script you mentioned.  Can you clarify?  Thanks.

Johann

Johann Vincent Paul Tagle

unread,
Aug 24, 2012, 3:57:07 AM8/24/12
to percona-d...@googlegroups.com
Okay I found scripts/make_binary_distribution, which I ran after make.  But my resulting package still doesn't have handlersocket.  What parameter(s) do I need to include when I run configure so that it will include handlersocket?

Thanks

Johann
Reply all
Reply to author
Forward
0 new messages