-3

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?

IOT-Guy
  • 7
  • 1

1 Answers1

1
  1. Download the source code for the gcc compiler from the official website. You can download the latest version from here: https://ftp.gnu.org/gnu/gcc/gcc-11.2.0/gcc-11.2.0.tar.xz

wget https://ftp.gnu.org/gnu/gcc/gcc-11.2.0/gcc-11.2.0.tar.xz

  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.

mouwahed
  • 11
  • 1