# CentOS-Base.repo # # The mirror system uses the connecting IP address of the client and the # update status of each mirror to pick mirrors that are updated to and # geographically close to the client. You should use this for CentOS updates # unless you are manually picking other mirrors. # # If the mirrorlist= does not work for you, as a fall back you can try the # remarked out baseurl= line instead. # #
# This file controls the state of SELinux on the system. # SELINUX= can take one of these three values: # enforcing - SELinux security policy is enforced. # permissive - SELinux prints warnings instead of enforcing. # disabled - No SELinux policy is loaded. SELINUX=disabled # SELINUXTYPE= can take one of these two values: # targeted - Targeted processes are protected, # mls - Multi Level Security protection. SELINUXTYPE=targeted
[root@localhost rpm]# yum localinstall epel-release-latest-7.noarch.rpm 上次元数据过期检查:0:42:55 前,执行于 2022年02月15日 星期二 10时42分51秒。 错误: 问题: conflicting requests 相互矛盾的请求 - nothing provides redhat-release >= 7 needed by epel-release-7-14.noarch 没有提供 redhat-release 7 needed by epel-release-7-14.noarch (try to add '--skip-broken' to skip uninstallable packages or '--nobest' to use not only best candidate packages)
# 打印日志 checking build system type... aarch64-unknown-linux-gnu checking host system type... aarch64-unknown-linux-gnu checking which template to use... linux checking whether to build with 64-bit integerdate/time support... yes checking for default port number... 5432 checking for block size... 32kB checking for segment size... 1GB checking for WAL block size... 32kB
......
config.status: linking src/backend/port/tas/dummy.s to src/backend/port/tas.s config.status: linking src/backend/port/dynloader/linux.c to src/backend/port/dynloader.c config.status: linking src/backend/port/sysv_sema.c to src/backend/port/pg_sema.c config.status: linking src/backend/port/sysv_shmem.c to src/backend/port/pg_shmem.c config.status: linking src/backend/port/unix_latch.c to src/backend/port/pg_latch.c config.status: linking src/backend/port/dynloader/linux.h to src/include/dynloader.h config.status: linking src/include/port/linux.h to src/include/pg_config_os.h config.status: linking src/makefiles/Makefile.linux to src/Makefile.port
# 2. 编译 sudo make
# 打印日志 make[1]: 进入目录“/home/gpadmin/gpdb/src” make -C common all make[2]: 进入目录“/home/gpadmin/gpdb/src/common” make -C ../backend submake-errcodes make[3]: 进入目录“/home/gpadmin/gpdb/src/backend” make -C utils errcodes.h make[4]: 进入目录“/home/gpadmin/gpdb/src/backend/utils” '/usr/bin/perl' ./generate-errcodes.pl ../../../src/backend/utils/errcodes.txt > errcodes.h make[4]: 离开目录“/home/gpadmin/gpdb/src/backend/utils” ...... n -fPIC -shared -o pxf.so src/pxfprotocol.o src/pxfbridge.o src/pxfuriparser.o src/libchurl.o src/pxfutils.o src/pxfheaders.o src/pxffragment.o src/gpdbwritableformatter.o src/pxffilters.o -L../../src/port -L../../src/common -Wl,--as-needed -Wl,-rpath,'/usr/local/gpdb/lib',--enable-new-dtags -lcurl make[2]: 离开目录“/home/gpadmin/gpdb/gpcontrib/pxf” make[1]: 离开目录“/home/gpadmin/gpdb/gpcontrib” All of Greenplum Database successfully made. Ready to install.
configure: error: zstd library not found If you have libzstd already installed, see config.log for details on the failure. It is possible the compiler isn't looking in the proper directory. Use --without-zstd to disable zstd support. # 解决办法 -- yum install epel-release yum install libzstd-devel # 这是安装时遇见的问题, 已经在前面增加了此软件的安装命令
问题 configure: error: libperl library is required for Perl
*** ERROR: `bison' is missing on your system. It is needed to create the file `gram.c'. You can either get bison from a GNU mirror site or download an official distribution of PostgreSQL, which contains pre-packaged bison output. *** make[3]: *** [gram.c] Error 1 make[3]: Leaving directory `/home/gpdb_src/gpdb-5.16.0/src/backend/parser' make[2]: *** [parser/gram.h] Error 2 make[2]: *** Waiting for unfinished jobs.... AWK='gawk' /bin/sh Gen_fmgrtab.sh pg_proc_combined.h.tmp make[3]: Leaving directory `/home/gpdb_src/gpdb-5.16.0/src/backend/utils' make[2]: Leaving directory `/home/gpdb_src/gpdb-5.16.0/src/backend' make[1]: *** [all] Error 2 make[1]: Leaving directory `/home/gpdb_src/gpdb-5.16.0/src' make: *** [all] Error 2
# 生成秘钥 [root@localhost opt]# su gpadmin [gpadmin@localhost opt]$ ssh-keygen -t rsa Generating public/private rsa key pair. Enter file inwhich to save the key (/home/gpadmin/.ssh/id_rsa): #(回车) Enter passphrase (empty for no passphrase):#(回车) Enter same passphrase again: Your identification has been saved in /home/gpadmin/.ssh/id_rsa. Your public key has been saved in /home/gpadmin/.ssh/id_rsa.pub. The key fingerprint is: SHA256:TTr5ZrIMSa+VXwFJJiAoUPmYskWTR8DLiFpraX0+7dg gpadmin@localhost The key's randomart image is: +---[RSA 2048]----+ |ooo*o ... o | |. B .. + . | |.= B + | |+ B . = . | |.= + . S . . | |o = ...o + . | | o oo.= + . | | oB.* . | | ooE . | +----[SHA256]-----+ [gpadmin@localhost opt]$ [gpadmin@localhost opt]$ cd ~ [gpadmin@localhost .ssh]$ pwd /home/gpadmin/.ssh # 配置 localhost 免密登录 [gpadmin@localhost .ssh]$ ssh-copy-id localhost gpadmin@localhost password: #(输入gpadmin用户的密码) ... # 尝试免密登录 localhost [gpadmin@localhost .ssh]$ ssh localhost # 退出登录 [gpadmin@localhost ~]$ exit 登出 Connection to localhost closed.