Can't install xtrabackup 2.4 from GitHub sources

Bug #1536047 reported by Artyom
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Percona XtraBackup moved to https://jira.percona.com/projects/PXB
Status tracked in 2.4
2.4
Expired
Undecided
Unassigned

Bug Description

I use MySQL 5.7.10 and Ubuntu 14.04 LTS.

I tried to follow the manual (https://www.percona.com/doc/percona-xtrabackup/2.3/installation/compiling_xtrabackup.html) to build xtrabackup 2.4 from GitHub sources:
https://github.com/percona/percona-xtrabackup/tree/2.4

Because 2.3 not working with MySQL 5.7 =(

Steps:
1. git clone https://github.com/percona/percona-xtrabackup
2. cd percona-xtrabackup && git checkout 2.4
3. apt-get install build-essential flex bison automake autoconf \
   libtool cmake libaio-dev mysql-client libncurses-dev zlib1g-dev \
   libgcrypt11-dev libev-dev libcurl4-gnutls-dev vim-common
4. apt-get install python-sphinx
5. In another console:
wget http://sourceforge.net/projects/boost/files/boost/1.59.0/boost_1_59_0.tar.gz/download && tar -zxvf boost_1_59_0.tar.gz
6. cmake -DBUILD_CONFIG=xtrabackup_release -DWITH_BOOST=/home/mezin.a/boost_1_59_0 && make -j4
7. make install

And finally I can't get it working:
root@mysql:/home/mezin.a/percona-xtrabackup# xtrabackup --version
The program 'xtrabackup' is currently not installed. You can install it by typing:
apt-get install percona-xtrabackup
root@mysql:~# innobackupex --version
The program 'innobackupex' is currently not installed. You can install it by typing:
apt-get install percona-xtrabackup

What I'm doing wrong?

When we can see support for MySQL 5.7? All forum questions about it without answers.

Tags: 2.4
Revision history for this message
Valerii Kravchuk (valerii-kravchuk) wrote :

Probably "make install" installs it into the directory that is not in your PATH. Please, send the output of:

find / -name xtrabackup 2>/dev/null

In my case I have it here:

/usr/local/xtrabackup
/usr/local/xtrabackup/bin/xtrabackup

Changed in percona-xtrabackup:
status: New → Incomplete
Revision history for this message
Shahriyar Rzayev (rzayev-sehriyar) wrote :

As @Valerii said the default path is:

sh@percona-XPS-15:/usr/local/xtrabackup/bin$ ls
innobackupex xbcloud xbcloud_osenv xbcrypt xbstream xtrabackup
sh@percona-XPS-15:/usr/local/xtrabackup/bin$ pwd
/usr/local/xtrabackup/bin

Tested with:

3.19.0-43-generic #49~14.04.1-Ubuntu

Revision history for this message
Artyom (artyom89) wrote :

>Please, send the output of:
find / -name xtrabackup 2>/dev/null

root@mysql:~# find / -name xtrabackup 2>/dev/null
/usr/local/xtrabackup
/usr/local/xtrabackup/bin/xtrabackup

Ok. But how to install it in folders like `apt-get` do?

Revision history for this message
Sergei Glushchenko (sergei.glushchenko) wrote :

Hi Artyom,

For tuning installation layout please refer comments in cmake/install_layout.cmake

Revision history for this message
Artyom (artyom89) wrote :

What I need to do to install it like apt-get does?
I don't know what I need to change and what I need to set, I'm just want to install it and use without full path typing.

Can you help me with this thing? =)

Revision history for this message
Sergei Glushchenko (sergei.glushchenko) wrote :

Artyom,

You are probably looking for "RPM" layout (xtrabackup binary goes to /usr/bin). Just add "-DINSTALL_LAYOUT=RPM" to your cmake command.

Full cmake command will look like:

cmake -DBUILD_CONFIG=xtrabackup_release -DWITH_MAN_PAGES=OFF -DINSTALL_LAYOUT=RPM

Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for Percona XtraBackup 2.4 because there has been no activity for 60 days.]

Revision history for this message
Shahriyar Rzayev (rzayev-sehriyar) wrote :

Percona now uses JIRA for bug reports so this bug report is migrated to: https://jira.percona.com/browse/PXB-1364

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.