oceanbase / obclient

A MariaDB-based command line tool to connect to OceanBase Database.
https://open.oceanbase.com
GNU General Public License v2.0
82 stars 43 forks source link

[Bug]: need support on OpenSUSE15 and FedoraOS 37 #21

Open gaowayne opened 1 year ago

gaowayne commented 1 year ago

Check Before Asking

Environment

OpenSUSE 15
FedoraOS37

in these two OSes, I cannot build or install obclient successfully.

Fast Reproduce Steps

I tried below method method1:

sudo yum install -y yum-utils
sudo yum-config-manager --add-repo https://mirrors.aliyun.com/oceanbase/OceanBase.repo
sudo yum install -y libtool libaio obclient
[root@amd2 wayne]# yum install -y libtool libaio obclient
OceanBase-community-stable-el37                                                                                                                                                                                                                                                    1.7 kB/s | 2.3 kB     00:01    
Errors during downloading metadata for repository 'oceanbase.community.stable':
  - Status code: 404 for http://mirrors.aliyun.com/oceanbase/community/stable/el/37/x86_64/repodata/repomd.xml (IP: 47.246.24.240)
Error: Failed to download metadata for repo 'oceanbase.community.stable': Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried
OceanBase-development-kit-el37                                                                                                                                                                                                                                                     1.2 kB/s | 2.3 kB     00:01    
Errors during downloading metadata for repository 'oceanbase.development-kit':
  - Status code: 404 for http://mirrors.aliyun.com/oceanbase/development-kit/el/37/x86_64/repodata/repomd.xml (IP: 47.246.24.238)
Error: Failed to download metadata for repo 'oceanbase.development-kit': Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried
Ignoring repositories: oceanbase.community.stable, oceanbase.development-kit
Last metadata expiration check: 0:22:58 ago on Sat 18 Mar 2023 07:26:05 AM PDT.
Package libtool-2.4.7-2.fc37.x86_64 is already installed.
Package libaio-0.3.111-14.fc37.x86_64 is already installed.
No match for argument: obclient

method2: try to build code

[root@amd2 rpm]# sh obclient-build.sh
[BUILD] args: TOP_DIR=/mnt/nvme3n1/wayne/obclient/rpm/../ PACKAGE=obclient VERSION=2.2.1 RELEASE=1
check dependencies profile for el3.x86_64... NOT FOUND
dep create failed
[root@amd2 rpm]# 

Actual Behavior

either way is not OK to build install obclient

Expected Behavior

we can install and build obclient on OpenSUSE and FedoraOS37

Other Information

No response

kongchengzhuge commented 1 year ago

sh obclient-build.sh。This method has some problems on non-centos systems。

You can directly use cmake + make to compile. The compilation method will be updated later.