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

时间:2016-02-18 22:35:44

标签: java cross-compiling yocto bitbake

我已成功运行" bitbake openjdk-7-jre"在交叉编译机器上,我想在目标嵌入式机器上安装结果。我在" 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:~# 

我真的需要手动抓住每一个并将它们安装在目标上,还是有更简单的方法?

1 个答案:

答案 0 :(得分:1)

请使用smartpm或opkg包管理器安装包。 smartpm处理rpm包,opkg处理ipk包。

如果您没有安装smartpm或opkg。 在你的local.conf中,请添加:

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

创建一个新图像(也可以将openjdk-7-jre添加到IMAGE_INSTALL_append)。

有关详细信息,请访问OPKGsmartpm