run the command
pip install uwsgi
error:
a big red error warning, the main error is:
error: lto – wrapper failed p>
collect2: error: ld returned 1 exit status
after the reason is that GCC version is high
#查看当前系统安装所有版本的gcc
ls /usr/bin/gcc* -l
#如果gcc有5以下的版本,则不用在安装
sudo apt-get install gcc-4.8
#更改gcc系统默认版本
sudo rm /usr/bin/gcc #删除已有软连接
sudo ln -s /usr/bin/gcc-4.8 /usr/bin/gcc #创建指向gcc4.8的软连接
run PIP install uwsgi again successfully
p>
reference:
https://blog.csdn.net/weixin_33127753/article/details/84874147
p>
Read More:
- .. ld: symbol(s) not found for architecture x86_64 collect2: ld returned 1 exit status make[2]: ***
- collect2: error:ld returned 1 exit status solution
- Php7 compiles collect2: error: LD returned 1 exit status
- About the problem of collect2.exe [error] LD returned 1 exit status in dev!!!
- Linux GCC compilation error: “collect2: LD returned 1 exit status”
- Collect2.exe: error: LD returned 5 exit status solution
- Solutions to the problem of collect2: error: LD returned 1 exit status
- Collect2: error: LD returned 1 exit status
- Solutions to the problem of “collect2.exe: error: LD returned 1” exit “status when writing C + + with vscode
- undefined reference to `pthread_create’ collect2: ld returned 1 exit status
- undefined reference to `WinMain‘collect2.exe: error: ld returned 1 exit status
- A solution to [error] LD returned 1 exit status
- In function `_start’ undefined reference to `main’ error: ld returned 1 exit status
- Solution to error [error] LD returned 1 exit status in C language
- Solution to dev C + + error [error] LD returned 1 exit status
- ||Error: LD returned 1 exit status | C + + compile time problems
- Error: LD returned 1 exit status appears when developing esp8266 with anxinco IDE
- Possible causes of [errror] ID returned 1 exit status error in dev C + + Programmer
- command ‘x86_64-linux-gnu-gcc’ failed with exit status 1
- command ‘gcc‘ failed with exit status 4