[MCOL-1798] mariadb-columnstore-tools package installation will fail on CentOS7 due to dependency on yaml-cpp version Created: 2018-10-12  Updated: 2023-10-26  Resolved: 2018-10-17

Status: Closed
Project: MariaDB ColumnStore
Component/s: cpimport
Affects Version/s: 1.2.0
Fix Version/s: 1.2.0

Type: Bug Priority: Major
Reporter: Zdravelina Sokolovska (Inactive) Assignee: Zdravelina Sokolovska (Inactive)
Resolution: Fixed Votes: 0
Labels: None
Environment:

CenotOS 7.5



 Description   

mariadb-columnstore-tools package installation will fail on CentOS7 due to dependency on
yaml-cpp version
note: yaml-cpp-0.5.1-1.el7.2.x86_64 is latest available in yum CentOS 7
EPEL repository while mariadb-columnstore-tools package is requiring version yaml-cpp-0.6.2

package mariadb-columnstore-tools-1.2.0-1-amd64-centos7.rpm is get from latest nightly builds
/repos/1.2.0-1/nightly/mariadb-columnstore-tools/yum/centos/7/x86_64/

[root@t4w1 ~]# rpm -ivh mariadb-columnstore-tools-1.2.0-1-amd64-centos7.rpm
error: Failed dependencies:
        libstdc++.so.6(GLIBCXX_3.4.21)(64bit) is needed by mariadb-columnstore-t                                                                                                                                                             ools-1.2.0-1.x86_64
        libyaml-cpp.so.0.6()(64bit) is needed by mariadb-columnstore-tools-1.2.0                                                                                                                                                             -1.x86_64

[root@t4w1 ~]# yum --showduplicates list yaml-cpp
Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
 * base: mirrors.netix.net
 * epel: mirrors.neterra.net
 * extras: mirrors.netix.net
 * updates: mirrors.netix.net
Installed Packages
yaml-cpp.x86_64                                                                                                     1:0.5.1-1.el7.2                                                                                                     @epel
Available Packages
yaml-cpp.x86_64                                                                                                     1:0.5.1-1.el7.2          

[root@t4w1 ~]# sudo yum install yaml-cpp
Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
 * base: mirrors.netix.net
 * epel: mirrors.neterra.net
 * extras: mirrors.netix.net
 * updates: mirrors.netix.net
Package 1:yaml-cpp-0.5.1-1.el7.2.x86_64 already installed and latest version
Nothing to do



 Comments   
Comment by Jens Röwekamp (Inactive) [ 2018-10-12 ]

Hi, unfortunately I wasn't able to reproduce the bug. I was able to install the tools rpm package from our buildbot repo (and one newly created from the develop branch) without any problems.
We further include yaml-cpp as static library in mcsimport, so that we shouldn't need the dynamic system shared libraries of yaml-cpp.

Could you please check if you did something different than I, and if the bug still exists?

Here is what I did on clean installations of:

CentOS 7

sudo yum install -y epel-release
sudo yum install -y libuv libxml2 python34 rsync
curl -O http://34.238.186.75/repos/1.2.0-1/nightly/mariadb-columnstore-api/yum/centos/7/x86_64/mariadb-columnstore-api-1.2.0-1-x86_64-centos7.rpm
sudo rpm -ivh mariadb-columnstore-api-1.2.0-1-x86_64-centos7.rpm
curl -O http://34.238.186.75/repos/1.2.0-1/nightly/mariadb-columnstore-tools/yum/centos/7/x86_64/mariadb-columnstore-tools-1.2.0-1-amd64-centos7.rpm
sudo rpm -ivh mariadb-columnstore-tools-1.2.0-1-amd64-centos7.rpm
/usr/local/mariadb/columnstore/tools/mcsimport/mcsimport

Debian 9

sudo apt-get install libsnappy1v5 libuv1 libxml2 rsync
wget http://34.238.186.75/repos/1.2.0-1/nightly/mariadb-columnstore-api/repo/debian9/pool/main/m/mariadb-columnstore-api/mariadb-columnstore-api_1.2.0_amd64.deb
sudo dpkg -i mariadb-columnstore-api_1.2.0_amd64.deb
wget http://34.238.186.75/repos/1.2.0-1/nightly/mariadb-columnstore-tools/repo/debian9/pool/main/m/mariadb-columnstore-tools/mariadb-columnstore-tools_1.2.0_amd64.deb
sudo dpkg -i mariadb-columnstore-tools_1.2.0_amd64.deb
/usr/local/mariadb/columnstore/tools/mcsimport/mcsimport

Comment by Zdravelina Sokolovska (Inactive) [ 2018-10-16 ]

mariadb-columnstore-tools package installation succeed on CentOS7 with the latest cs repo 1.2.0-1 builds without explicit installation of yaml-cpp :

http://34.238.186.75/repos/1.2.0-1/mariadb-columnstore-api/
http://34.238.186.75/repos/1.2.0-1/mariadb-columnstore-tools/
&& yum install libuv libxml2 snappy python34

[root@t4w1 cs_up]# wget http://34.238.186.75/repos/1.2.0-1/mariadb-columnstore-a                                                                                                                                                             pi/yum/centos/7/x86_64/mariadb-columnstore-api-1.2.0-1-x86_64-centos7.rpm
--2018-10-16 11:31:37--  http://34.238.186.75/repos/1.2.0-1/mariadb-columnstore-                                                                                                                                                             api/yum/centos/7/x86_64/mariadb-columnstore-api-1.2.0-1-x86_64-centos7.rpm
Connecting to 34.238.186.75:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 1296732 (1.2M) [application/x-rpm]
Saving to: ‘mariadb-columnstore-api-1.2.0-1-x86_64-centos7.rpm’
 
100%[======================================>] 1,296,732   1.44MB/s   in 0.9s
 
2018-10-16 11:31:38 (1.44 MB/s) - ‘mariadb-columnstore-api-1.2.0-1-x86_64-centos                                                                                                                                                             7.rpm’ saved [1296732/1296732]
 
[root@t4w1 cs_up]# wget http://34.238.186.75/repos/1.2.0-1/mariadb-columnstore-t                                                                                                                                                             ools/yum/centos/7/x86_64/mariadb-columnstore-tools-1.2.0-1-amd64-centos7.rpm
--2018-10-16 11:32:24--  http://34.238.186.75/repos/1.2.0-1/mariadb-columnstore-                                                                                                                                                             tools/yum/centos/7/x86_64/mariadb-columnstore-tools-1.2.0-1-amd64-centos7.rpm
Connecting to 34.238.186.75:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 224512 (219K) [application/x-rpm]
Saving to: ‘mariadb-columnstore-tools-1.2.0-1-amd64-centos7.rpm’
 
100%[======================================>] 224,512      410KB/s   in 0.5s
 
2018-10-16 11:32:25 (410 KB/s) - ‘mariadb-columnstore-tools-1.2.0-1-amd64-centos                                                                                                                                                             7.rpm’ saved [224512/224512]

[root@t4w1 cs_up]# rpm -ivh mariadb-columnstore-api-1.2.0-1-x86_64-centos7.rpm
warning: mariadb-columnstore-api-1.2.0-1-x86_64-centos7.rpm: Header V4 RSA/SHA512 Signature, key ID a41f5c14: NOKEY
Preparing...                          ################################# [100%]
Updating / installing...
   1:mariadb-columnstore-api-1.2.0-1  ################################# [100%]
[root@t4w1 cs_up]# rpm -ivh  mariadb-columnstore-tools-1.2.0-1-amd64-centos7.rpm
warning: mariadb-columnstore-tools-1.2.0-1-amd64-centos7.rpm: Header V4 RSA/SHA512 Signature, key ID a41f5c14: NOKEY
Preparing...                          ################################# [100%]
Updating / installing...
   1:mariadb-columnstore-tools-1.2.0-1################################# [100%]
[root@t4w1 cs_up]# cd /usr/local/mariadb/columnstore/tools/
[root@t4w1 tools]# ls
backuprestore  COPYRIGHT.txt  LICENSE.txt  mcsimport  monitoring  README.md  VERSION

Comment by Zdravelina Sokolovska (Inactive) [ 2018-10-16 ]

after installation of mariadb-columnstore-tools as mentioned above it's found a README.md file in mcsimport dir, where the installation of
yaml-cpp is required with dependency on yaml-cpp-0.6.2.
Please to clarify if the mcsimport/README.md file shell be changed ?

### Linux
 
#### Install the yaml-cpp dependency
```shell
git clone https://github.com/jbeder/yaml-cpp
cd yaml-cpp
git checkout yaml-cpp-0.6.2
.......................

Comment by Jens Röwekamp (Inactive) [ 2018-10-16 ]

The yaml-cpp dependency is mentioned under the section build instructions, not installation requirements.

We only need it for building mcsimport, but not for installing it.
During the build yaml-cpp gets included into the package. Therefore, it doesn't need to be installed by a user.

Generated at Thu Feb 08 02:31:27 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.