UPGRADE YOUR BROWSER

We have detected your current browser version is not the latest one. Xilinx.com uses the latest web technologies to bring you the best online experience possible. Please upgrade to a Xilinx.com supported browser:Chrome, Firefox, Internet Explorer 11, Safari. Thank you!

AR# 61323

2014.2 PetaLinux - error while loading shared libraries: libselinux.so.1: cannot open shared object file: No such file or directory

Description

When running petalinux-build, I receive the following error:

[ALL  ] Authentication warning overridden.
[ALL  ] /opt/Petalinux/petalinux-v2014.2-final/petalinux-v2014.2-final/tools/packagemanager/bin/dpkg: error while loading shared libraries: libselinux.so.1: cannot open shared object file: No such file or directory

[ERROR] E: Sub-process /opt/Petalinux/petalinux-v2014.2-final/petalinux-v2014.2-final/tools/packagemanager/bin/dpkg returned an error code (127)
[ERROR] make[2]: *** [.pkg_stagefs] Error 255
[ALL  ] make[2]: Leaving directory `/work/hondo/PFU/140616_2014.2/test_140624/project_root/build/linux/rootfs/packages-repo'
[ERROR] make[1]: *** [sub_build_component_/none/packages-repo/single/plnx-repo] Error 2
[ALL  ] make[1]: Leaving directory `/work/hondo/PFU/140616_2014.2/test_140624/project_root/build/linux/rootfs'
[ALL  ] make: *** [sub_build_component_/none/rootfs/single/petalinux-rootfs] Error 2
[ALL  ] make: Leaving directory `/work/hondo/PFU/140616_2014.2/test_140624/project_root/build/linux'

Solution

This generally occurs on 32-bit systems.

Install the 32-bit version of the selinux package to satisfy the dependency for libselinux.so.1

Please consult the documentation and/or repository package list for your distribution to find the specific package name.
AR# 61323
Date Created 06/30/2014
Last Updated 10/16/2014
Status Active
Type General Article
Tools
  • PetaLinux - 2014.2