简体   繁体   English

如何在目标机器上安装“ bitbake openjdk-7-jre”结果

[英]How to install the result of “bitbake openjdk-7-jre” on target machine

I've successfully run "bitbake openjdk-7-jre" on a cross-compilation machine, and I want to install the result on the target embedded machine. 我已经在交叉编译计算机上成功运行了“ bitbake openjdk-7-jre”,并且希望将结果安装在目标嵌入式计算机上。 I've found the rpm file in the "tmp/deploy/rpm" subdirectory on the host machine, and copied it to the target, but it has many unmet dependencies: 我已经在主机上的“ tmp / deploy / rpm”子目录中找到了rpm文件,并将其复制到目标中,但是它具有许多未满足的依赖性:

    root@t4240rdb:~# rpm -i openjdk-7-jre-25b30+2.3.12-r5.1.ppc64e6500.rpm 
error: Failed dependencies:
    libc.so.6(GLIBC_2.3)(64bit) is needed by openjdk-7-jre-25b30+2.3.12-r5.1.ppc64e6500
    libc.so.6(GLIBC_2.4)(64bit) is needed by openjdk-7-jre-25b30+2.3.12-r5.1.ppc64e6500
    libc.so.6()(64bit) is needed by openjdk-7-jre-25b30+2.3.12-r5.1.ppc64e6500
    libz1 >= 1.2.8 is needed by openjdk-7-jre-25b30+2.3.12-r5.1.ppc64e6500
    libjli.so()(64bit) is needed by openjdk-7-jre-25b30+2.3.12-r5.1.ppc64e6500
    libc6 >= 2.20 is needed by openjdk-7-jre-25b30+2.3.12-r5.1.ppc64e6500
    openjdk-7-java is needed by openjdk-7-jre-25b30+2.3.12-r5.1.ppc64e6500
    openjdk-7-common is needed by openjdk-7-jre-25b30+2.3.12-r5.1.ppc64e6500
    update-alternatives-opkg is needed by openjdk-7-jre-25b30+2.3.12-r5.1.ppc64e6500
    libz.so.1()(64bit) is needed by openjdk-7-jre-25b30+2.3.12-r5.1.ppc64e6500
    libjli.so(SUNWprivate_1.1)(64bit) is needed by openjdk-7-jre-25b30+2.3.12-r5.1.ppc64e6500
    /bin/sh is needed by openjdk-7-jre-25b30+2.3.12-r5.1.ppc64e6500
root@t4240rdb:~# 

do I really need to grab each of these by hand and install them on the target, or is there a simpler way? 我真的需要用手抓住它们并将它们安装在目标上,还是有一种更简单的方法?

Please use smartpm or opkg package manager to install package. 请使用smartpm或opkg软件包管理器来安装软件包。 smartpm handles rpm packages and opkg handles ipk packages. smartpm处理rpm软件包,opkg处理ipk软件包。

If you do not have smartpm or opkg installed. 如果您没有安装smartpm或opkg。 in your local.conf, please add: 在您的local.conf中,请添加:

EXTRA_IMAGE_FEATURES = "debug-tweaks ssh-server-openssh package-management" IMAGE_INSTALL_append = " smartpm opkg " EXTRA_IMAGE_FEATURES = "debug-tweaks ssh-server-openssh package-management" IMAGE_INSTALL_append = " smartpm opkg "

create a new image (might as well add openjdk-7-jre to the IMAGE_INSTALL_append). 创建一个新映像(还可以将openjdk-7-jre添加到IMAGE_INSTALL_append中)。

For more information, Visit OPKG and smartpm 有关更多信息,请访问OPKGsmartpm

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM