Installing GCC from Source

Installing GCC from Source

My laptop is running CentOS 7 with a version of GCC installed via yum, but this version is too old, so I need to install a newer version of GCC. 1. First, download from the internethttp://mirror.hust.edu.cn/gnu/gcc/ Find the appropriate version and download it. 2. Extract the compressed package # cd /usr/local/# tar -zxvf gcc-6.4.0.tar.gz 3. … Read more

Installing JDK on Linux

Installing JDK on Linux

Java development is a fundamental skill that Linux experts must master. This article will introduce how to install JDK on Linux and configure the Java environment. (This article uses jdk-8u201-linux-x64.tar.gz as an example) 1. Uninstall the pre-installed JDK (most Linux distributions come with Java, but it may not be usable) 1) Check the installed JDK: … Read more

Installing JDK 8 on CentOS Linux

Installing JDK 8 on CentOS Linux

Preparation Server: CentOS Linux release 7.9.2009 (Core) JDK: jdk-8u301-linux-x64.tar.gz JDK 8 download link:https://www.oracle.com/java/technologies/downloads/#java8 Installation Connect to the server using Xshell. Upload to the server, you can use the command # rz upload, -y to overwrite files rz -y If prompted that the command ‘rz’ is not found, install it manually # rz is a file … Read more

python-dotenv: A Python Library for Managing Environment Variables!

python-dotenv: A Python Library for Managing Environment Variables!

Hello everyone, today I want to introduce a super useful Python library – python-dotenv. When developing projects, we often need to manage various configuration information, such as database passwords, API keys, etc. Writing these sensitive information directly in the code is not a good idea! python-dotenv is specifically designed to solve this problem, allowing us … Read more

The Most Detailed Python Installation Guide for Beginners in 2025

The Most Detailed Python Installation Guide for Beginners in 2025

For those who are new to Python, whether you are interested in web scraping or AI development, many say that the Python language is simple. Therefore, learning more is always beneficial. Below is a record of the installation of Python and a series of related tasks from the perspective of a complete beginner, including the … Read more

Common Syntax of CMake (Environment Variables)

Common Syntax of CMake (Environment Variables)

Previous Exciting Content:CMake Hello, WorldCMake VariablesCMake Official Tutorial (Basic Project Setup)CMake Official Tutorial (Library Creation)CMake Official Tutorial (Usage Requirements)CMake Official Tutorial (Installation and Testing)CMake Common Syntax (if Statement)CMake Common Syntax (Cache Variables) In CMake, environment variables have the following characteristics: 1. The scope of environment variables is global and they are not cached. 2. They … Read more

CMake from Beginner to Expert (2): Variables and Scope

CMake from Beginner to Expert (2): Variables and Scope

1. Why is it important to understand variables and scope? CMake is not just a build tool, but also a “meta-programming language”. Variables and scope are its core programming elements, directly affecting: Project Configuration: Dynamically switching compilers, library paths, and compilation options Module Interaction: Data transfer between parent and child directories Environment Control: Cross-platform compatibility … Read more

The First Assembly Language Program

The First Assembly Language Program

Assembly language is known for its obscurity and complexity, but this tutorial looks at it from a different perspective—it is a language that provides almost all the information. Programmers can see everything that is happening, including the registers and flags in the CPU! However, with this capability, programmers must handle the details of data representation … Read more

Essential Knowledge Before Practicing Makefile

Essential Knowledge Before Practicing Makefile

Clickthe blue text Follow us In the previous article, we discussed some concepts and principles of Makefile. Next, let’s talk about some key points regarding Makefile. make and make clean Rules for generating target files (make command): Executing the make command will generate the corresponding target files based on the rules defined in the Makefile … Read more

CMake Executable Not Found? A Comprehensive Analysis of Docker Image Runtime Issues

CMake Executable Not Found? A Comprehensive Analysis of Docker Image Runtime Issues

NEWS Click the blue text to follow usNEWS TODAY Hello everyone, this is The Programmer’s Hair Loss Guide! CMake Executable Not Found? A Comprehensive Analysis of Docker Image Runtime Issues Introduction When building C++ projects using Docker containers, have you encountered the error <span>cmake exe file is not found</span>? This article will provide a detailed … Read more