The Challenging Journey of Compiling and Installing GCC 14 from Source on CentOS 7

Download Dependencies tar zxvf gcc-releases-gcc-14.2.0.tar.gz cd gcc-releases-gcc-14.2.0 contrib/download_prerequisites Older versions of GCC require manual installation of dependencies, while the new version does not; a script automates the process. Note: <span>contrib/download_prerequisites</span> must be executed in the root directory of the installation (<span>gcc-releases-gcc-14.2.0/</span>), and there will be no output on the screen when this command is executed. … Read more

Complete Installation Package Download on Linux (Including Dependencies)

Background When upgrading internal network servers, it is often necessary to download the installation packages in advance. However, dependency issues can be challenging to resolve in a Linux environment. Therefore, we need a method that can download all dependencies of a software package during installation. In this article, we will introduce how to achieve this. … Read more

Guide to Compiling and Installing GCC 7.5.0 from Source

This article is generated by Tencent Yuanbao, with content outline and verification provided by @Xiao Hui~ In certain Linux environments, the system’s default GCC version is relatively low (e.g., 4.8.5), which cannot meet the compilation requirements of new software, and it is not possible to install a newer version of GCC directly through the package … Read more

Linux (22): Software Repositories & Package Managers

1. Core Purpose & Concepts Core Purpose: Understand that in a Linux system, software does not always need to be manually compiled and installed from source code. Instead, there is a more efficient and secure system: automatically downloading, installing, and managing pre-compiled software from centralized software repositories using a package manager. Core Terminology: Software Repository: … Read more

Compiling Software from Source Code

1. Core Purpose & Concepts Core Purpose: Understanding the ultimate charm of open-source software—by obtaining the program’s source code, we can personally modify, compile, and install a unique version tailored to our preferences. This is a transformation from “user” to “participant”. Core Terminology: Source Code: A human-readable text file containing program instructions written in high-level … Read more

Understanding Core Concepts and Pattern Rules in Makefile

Recently, I have been learning about the wildcard % in makefiles. At first, I found it quite confusing, but gradually I understood that it is fundamentally different from the wildcard * in Linux; it is more like a wildcard specifically designed for makefiles. Let’s break this down step by step. First, let’s understand the core … Read more

Comprehensive Guide to Python Environment Management with pip

Comprehensive Guide to Python Environment Management with pip

pip is the core tool for Python package management, yet many developers only utilize its basic features. This guide will delve into how to efficiently use pip to manage Python environments and dependencies, ensuring the reproducibility and stability of the development environment. Why is Environment Management Crucial? Project Isolation: Prevents dependency conflicts between different projects … Read more

Installing Ansible on Offline Kylin Server

Installing Ansible on Offline Kylin Server

Recently, I learned about some minor issues encountered when installing software packages in an internal network environment. I would like to share this with everyone and hope for your suggestions! 1. Install yum-utils Error: not found # yum install yum-utils -yLast metadata expiration check: 0:00:50 ago on Wednesday, September 17, 2025 09:25:19. No match for … Read more

Installing GCC

Installing GCC

Log in to the GCC download page: https://gcc.gnu.org/ Click on the Mirrors in the Download section on the right Select a suitable mirror address Select releases/ Scroll down to find and enter the gcc-15.2.0/ directory Click to download gcc-15.2.0.tar.xz (or gcc-15.2.0.tar.gz) Upload the gcc-15.2.0.tar.xz file to the server $ ls gcc-15.2.0.tar.xz Use the following command … Read more

[Ubuntu][GCC] Downloading and Compiling GCC Source Code

[Ubuntu][GCC] Downloading and Compiling GCC Source Code

1. Download the GCC installation package. You can search for the official address to download it. If you cannot download it, you can try selecting a required GCC version from gitee.com/FIRC/gcc-cn-mirror. Note that if you are downloading the source code from gcc-cn-mirror, you can skip steps 2 and 3 and proceed directly to step 4 … Read more