练习4:Valgrind 介绍

# 1) Download the source code using curl (use wget if you don't have curl)
curl -O https://ftp.gnu.org/gnu/wget/wget-1.21.4.tar.gz

# 2) Verify the integrity of the downloaded file using sha256sum
sha256sum wget-1.21.4.tar.gz

# 3) Unpack the downloaded tarball
tar -xzvf wget-1.21.4.tar.gz

# 4) Change into the newly created directory
cd wget-1.21.4

# 5) Configure the build environment
./configure

# 6) Compile the source code
make

# 7) Install the compiled program (requires root)
sudo make install

# 8) Verify the installation by checking the version
wget --version

# 9) (Optional) Clean up by removing the downloaded and extracted files
cd ..
rm -rf wget-1.21.4 wget-1.21.4.tar.gz

Pasted image 20240810172829.png

看不懂亚