Installing Base Libraries
Installing GCC
- Mount the OS image.
mount YOUR_OS.iso /media -o loop
Replace YOUR_OS.iso with the actual ISO file name.
- Back up and clear the /etc/yum.repos.d/ directory.
1 2
cp -r /etc/yum.repos.d /etc/yum.repos.d-bak rm /etc/yum.repos.d/*
Upon executing the deletion command, the system will prompt you for confirmation. Confirm that all .repo files have been backed up. Then, enter y at the prompt and press Enter to proceed.
- Configure the local Yum source.
- Open the /etc/yum.repos.d/Local.repo file.
1vi /etc/yum.repos.d/Local.repo - Press i to enter the insert mode and add the following content to the file:
1 2 3 4 5
[Local] name=Local baseurl=file:///media/ enabled=1 gpgcheck=0
- Press Esc, type :wq!, and press Enter to save the file and exit.
- Open the /etc/yum.repos.d/Local.repo file.
- Make the Yum source configuration take effect.
1 2
yum clean all yum makecache
- Install GCC through the Yum repository.
1yum -y install gcc.aarch64 gcc-c++.aarch64 gcc-gfortran.aarch64 libgcc.aarch64
Installing Dependencies
Use the Yum source to install dependencies.
1 | yum install -y wget openssl-devel zlib-devel automake libtool make libstdc++-static glibc-static git snappy snappy-devel fuse fuse-devel |
Parent topic: Configuring the Compilation Environment