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?

3

1 Answer

  1. Download the source code for the gcc compiler from the official website. You can download the latest version from here:

wget

  1. Extract the source code:

    tar xf gcc-11.2.0.tar.xz

  2. Change to the directory where the source code was extracted:

    cd gcc-11.2.0

  3. Configure the build:

    ./configure --target=aarch64-linux-gnu --prefix=/usr/local

  4. 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.

  5. 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.

1

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.