Ubuntu server常见问题

yexiang@ubuntu:~/uboot$ arm-linux-g++ -v

/opt/FriendlyARM/toolschain/4.4.3/bin/arm-linux-g++: 15: exec: /opt/FriendlyARM/toolschain/4.4.3/bin/.arm-none-linux-gnueabi-g++: not found

// 这个问题是ubuntu 64位 需要安装一些32位的库文件。

// sudo  apt-get install ia32-libs  或者 提示

However the following packages replace it:

  lib32ncurses5 lib32z1

 

 

 

 

In file included from tools/aisimage.c:10:0: 
include/image.h:920:27: fatal error: openssl/evp.h: 没有那个文件或目录 
# include <openssl/evp.h> 
^ 
compilation terminated. 
scripts/Makefile.host:111: recipe for target 'tools/aisimage.o' failed 
make[1]: *** [tools/aisimage.o] Error 1 
Makefile:1194: recipe for target 'tools' failed 
make: *** [tools] Error 2 

这个是openssl的依赖的问题,运行命令sudo apt-get install libssl-dev 即可解决。 

 

 

./scripts/dtc-version.sh: 行 17: dtc: 未找到命令 
./scripts/dtc-version.sh: 行 18: dtc: 未找到命令 
*** Your dtc is too old, please upgrade to dtc 1.4 or newer 
Makefile:1353: recipe for target 'checkdtc' failed 
make: *** [checkdtc] Error 1

好吧,,dtc是device-tree-compiler的缩写,即设备树编译器,说明系统中没有安装这个编译器 
安装不就行了: 
sudo apt-get install device-tree-compiler 

sudo apt-get install build-essential

// 编译程序必须的软件包

// Ubuntu缺省情况下,并没有提供C/C++的编译环境,因此还需要手动安装。

如果单独安装gcc以及g 比较麻烦,幸运的是,为了能够编译Ubuntu的内核,Ubuntu提供了一个build-essential软件包。

 

 

查看该软件包的依赖关系,可以看到以下内容:

    $ apt-cache depends build-essential

 

 

 

In file included from scripts/kconfig/lxdialog/checklist.c:24:
scripts/kconfig/lxdialog/dialog.h:32: fatal error: curses.h: No such file or directory
compilation terminated.
make[1]: *** [scripts/kconfig/lxdialog/checklist.o] Error 1
make: *** [menuconfig] Error 2


查找资料后得知,最小系统不支持图形显示造成
解决:
sudo apt-get install libncurses5-dev

//libncurses5-dev是Ubuntu操作系统内核编译工具

 

 

/bin/sh: 1: bc: not found

// sudo apt-get install bc

 

 

 

 

fatal error: sys/cdefs.h: No such file or directory|

 

 

sudo apt-get purge libc6-dev
sudo apt-get install libc6-dev

sudo apt-get install libc6-dev-i386

sudo apt-get install lib32readline*

 

 

 

 

 

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

HarkerYX

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值