Rocky Linux9.4源码安装PostgreSQL 16.3

一、安装Rocky Linux

略(VMware workstation 17.5虚拟机安装)

二、修改dnf阿里源:

[root@localhost etc]# MIRROR=mirrors.aliyun.com/rockylinux

[root@localhost etc]# sudo sed -i.bak -e "s|^mirrorlist=|#mirrorlist=|" -e "s|^#baseurl=|baseurl=|" -e "s|dl.rockylinux.org/\$contentdir|$MIRROR|" /etc/yum.repos.d/rocky-*.repo

[root@localhost etc]# sudo dnf makecache

Rocky Linux 9 - BaseOS                          291 kB/s | 2.2 MB     00:07   

Rocky Linux 9 - AppStream                       653 kB/s | 7.9 MB     00:12   

Rocky Linux 9 - Extras                          3.2 kB/s |  15 kB     00:04   

元数据缓存已建立。

三、安装第三方软件

root@localhost etc]# make -v

bash: make: 未找到命令...

安装软件包“make”以提供命令“make”? [N/y] y

 * 正在队列中等待...

 * 正在载入软件包列表。...

下列软件包必须安装:

 make-1:4.3-8.el9.x86_64    A GNU tool which simplifies the build process for users

继续更改? [N/y] y

 * 正在队列中等待...

 * 正在等待认证...

 * 正在队列中等待...

 * 正在下载软件包...

 * 正在请求数据...

 * 正在测试更改...

 * 正在安装软件包...

GNU Make 4.3

为 x86_64-redhat-linux-gnu 编译

Copyright (C) 1988-2020 Free Software Foundation, Inc.

许可证:GPLv3+:GNU 通用公共许可证第 3 版或更新版本<http://gnu.org/licenses/gpl.html>。

本软件是自由软件:您可以自由修改和重新发布它。

在法律允许的范围内没有其他保证。

[root@localhost etc]# gcc -v

bash: gcc: 未找到命令...

安装软件包“gcc”以提供命令“gcc”? [N/y] y

 * 正在队列中等待...

 * 正在载入软件包列表。...

下列软件包必须安装:

 gcc-11.4.1-3.el9.x86_64      Various compilers (C, C++, Objective-C, ...)

 glibc-devel-2.34-100.el9.x86_64       Object files for development using standard C libraries.

 glibc-headers-2.34-100.el9.x86_64   Additional internal header files for glibc-devel.

 kernel-headers-5.14.0-427.16.1.el9_4.x86_64  Header files for the Linux kernel for use by glibc

 libxcrypt-devel-4.4.18-3.el9.x86_64   Development files for libxcrypt

继续更改? [N/y] y

 * 正在队列中等待...

 * 正在等待认证...

 * 正在队列中等待...

 * 正在下载软件包...

 * 正在请求数据...

 * 正在测试更改...

 * 正在安装软件包...

使用内建 specs。

COLLECT_GCC=gcc

COLLECT_LTO_WRAPPER=/usr/libexec/gcc/x86_64-redhat-linux/11/lto-wrapper

OFFLOAD_TARGET_NAMES=nvptx-none

OFFLOAD_TARGET_DEFAULT=1

目标:x86_64-redhat-linux

配置为:../configure --enable-bootstrap --enable-host-pie --enable-host-bind-now --enable-languages=c,c++,fortran,lto --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --with-bugurl=https://bugs.rockylinux.org/ --enable-shared --enable-threads=posix --enable-checking=release --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-gnu-unique-object --enable-linker-build-id --with-gcc-major-version-only --enable-plugin --enable-initfini-array --without-isl --enable-multilib --with-linker-hash-style=gnu --enable-offload-targets=nvptx-none --without-cuda-driver --enable-gnu-indirect-function --enable-cet --with-tune=generic --with-arch_64=x86-64-v2 --with-arch_32=x86-64 --build=x86_64-redhat-linux --with-build-config=bootstrap-lto --enable-link-serialization=1

线程模型:posix

Supported LTO compression algorithms: zlib zstd

gcc 版本 11.4.1 20231218 (Red Hat 11.4.1-3) (GCC)

[root@localhost etc]# dnf -y install readline-devel zlib-devel

上次元数据过期检查:0:05:34 前,执行于 2024年05月29日 星期三 16时24分24秒。

依赖关系解决。

================================================================================

 软件包               架构       版本                       仓库           大小

================================================================================

安装:

 readline-devel       x86_64     8.1-4.el9                  appstream     194 k

 zlib-devel           x86_64     1.2.11-40.el9              appstream      44 k

安装依赖关系:

 ncurses-c++-libs     x86_64     6.2-10.20210508.el9        appstream      36 k

 ncurses-devel        x86_64     6.2-10.20210508.el9        appstream     516 k

事务概要



评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值