
Please go through this question for context
As stated in the answer to this question. I will require aarch64-linux-gnu-gcc to be able to install the pyrfc library. How to setup aarch64-linux-gnu-gcc?
Tried sudo apt install gcc-aarch64-linux-gnu but still the same issue
I am using raspbian OS on raspberry pi 4B with python 3.9. What changes do I need to make to make this work?
31 Answer
wget https://ftp.gnu.org/gnu/gcc/gcc-11.2.0/gcc-11.2.0.tar.xz
Extract the source code:
tar xf gcc-11.2.0.tar.xz
Change to the directory where the source code was extracted:
cd gcc-11.2.0
Configure the build:
./configure --target=aarch64-linux-gnu --prefix=/usr/local
Build and install the compiler:
make -j4 && sudo make install This will build and install the aarch64-linux-gnu-gcc compiler into the /usr/local/bin directory.
Verify that aarch64-linux-gnu-gcc is installed:
aarch64-linux-gnu-gcc --version This should display the version of aarch64-linux-gnu-gcc that is installed on your system.
ncG1vNJzZmirpJawrLvVnqmfpJ%2Bse6S7zGiorp2jqbawutJobm5vaW2BeoKOoaawZaSkeqix02aYmqqTnYN1ecuipa6wXZy7tnnGnJo%3D