【发布时间】:2020-10-15 11:00:01
【问题描述】:
我使用的是 Ubuntu 18.04
我使用 buildroot 构建了一个 mips 交叉编译器,但是当我尝试测试它是否可以工作时,我收到了这条消息
/home/daisy/repos/repo/buildroot/output/host/bin/../libexec/gcc/mipsel-buildroot-linux-uclibc/9.3.0/cc1: error while loading shared libraries: libmpfr.so.6: cannot open shared object file: No such file or directory
我搜索了解决方案,其中一个是这样说的:
sudo pacman -S mpfr
好吧,我的 Linux 不是 archlinux,这对我不起作用。 有人请告诉我如何处理它。
【问题讨论】:
-
您可能会安装(使用
apt或aptitude)一些包,例如gcc-9-mipsel-linux-gnu,您的问题应该显示exactconfigure命令用于构建您的交叉编译器。您可能需要编辑/etc/ld.so.conf然后运行 ldconfig -
@BasileStarynkevitch 在我下载了 buildroot 包后,我使用了
make clean和make menuconfig,然后进入了一个类似 BIOS 的 GUI,我通过选择来配置所有内容。之后,我用了make,然后交叉编译器就建好了。因此,我真的不知道如何显示 exactconfigure命令。你能解释得更详细些吗? -
请编辑你的问题不要评论它
-
@BasileStarynkevitch 我说的是我不知道我应该添加什么,希望你能更具体地告诉我。你说我需要显示configure命令,我回答说我是在图形界面中配置的,所以我不能给出确切的configure命令,或者我错了,希望你指出来。
标签: linux ubuntu cross-compiling ubuntu-18.04 buildroot