make depend && make _all make[1]: Entering directory '/opt/openssl-1.1.1/openssl-1.1.1' make[1]: Leaving directory '/opt/openssl-1.1.1/openssl-1.1.1' make[1]: Entering directory '/opt/openssl-1.1.1/openssl-1.1.1' arm-linux-gnu-gcc -I. -Iinclude -fPIC -pthread -Wall -O3 -fomit-frame-pointer -DOPENSSL_USE_NODELETE -DL_ENDIAN -DOPENSSL_PIC -DOPENSSLDIR="\"/opt/openssl-1.1.1/openssl-1.1.1/_install/ssl\"" -DENGINESDIR="\"/opt/openssl-1.1.1/openssl-1.1.1/_install/lib/engines-1.1\"" -DNDEBUG -c -o apps/app_rand.o apps/app_rand.c /bin/sh: 1: arm-linux-gnu-gcc: not found Makefile:720: recipe for target 'apps/app_rand.o' failed make[1]: *** [apps/app_rand.o] Error 127 make[1]: Leaving directory '/opt/openssl-1.1.1/openssl-1.1.1' Makefile:169: recipe for target 'all' failed make: *** [all] Error 2如何解决
时间: 2024-03-27 16:35:13 浏览: 157
GFS Toolbox.zip_Type-2 Fuzzy_blueqrq_depend1yg_gfs工具箱_gfs工具箱下载
To solve the issue, you need to install the `arm-linux-gnu-gcc` compiler. You can do this by following the steps below:
1. Check if the `arm-linux-gnu-gcc` compiler is already installed on your system by running the following command:
```
which arm-linux-gnu-gcc
```
If the command returns a path, then the compiler is already installed. Otherwise, you need to install it.
2. Install the `arm-linux-gnueabihf-gcc` package by running the following command:
```
sudo apt-get install gcc-arm-linux-gnueabihf
```
This will install the `arm-linux-gnueabihf-gcc` compiler on your system.
3. After installing the compiler, make sure that it is in the system path by running the following command:
```
export PATH=$PATH:/usr/bin/arm-linux-gnueabihf
```
This will add the `arm-linux-gnueabihf-gcc` compiler to the system path.
4. Finally, try to recompile the OpenSSL library again using the `make` command:
```
make depend && make _all
```
This should compile the OpenSSL library without any errors.
阅读全文