Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error in make on RHEL7 #369

Closed
vbmade2000 opened this Issue Feb 22, 2017 · 8 comments

Comments

Projects
None yet
5 participants
@vbmade2000
Copy link
Contributor

vbmade2000 commented Feb 22, 2017

I am facing below error while executing "make" on my RHEL7 system. I am following tutorial given in README.md file.

[mvora@macsystem cri-o]$ make
go build -o ocid
-tags "selinux seccomp libdm_no_deferred_remove"
github.com/kubernetes-incubator/cri-o/cmd/ocid
github.com/kubernetes-incubator/cri-o/vendor/github.com/containers/storage/pkg/devicemapper
/usr/bin/ld: cannot find -ldevmapper
collect2: error: ld returned 1 exit status

github.com/kubernetes-incubator/cri-o/vendor/github.com/mtrmac/gpgme

vendor/github.com/mtrmac/gpgme/data.go:4:20: fatal error: gpgme.h: No such file or directory
// #include <gpgme.h>
^
compilation terminated.

pkg-config --cflags libseccomp libseccomp

Package libseccomp was not found in the pkg-config search path.
Perhaps you should add the directory containing libseccomp.pc' to the PKG_CONFIG_PATH environment variable No package 'libseccomp' found Package libseccomp was not found in the pkg-config search path. Perhaps you should add the directory containing libseccomp.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libseccomp' found
pkg-config: exit status 1
make: *** [ocid] Error 2

When I try to install libseccomp it returns following.

Package libseccomp-2.3.1-2.el7.x86_64 already installed and latest version
Nothing to do

@runcom

This comment has been minimized.

Copy link
Member

runcom commented Feb 22, 2017

did you installed all packages listed here? https://github.com/kubernetes-incubator/cri-o#build

@vbmade2000

This comment has been minimized.

Copy link
Contributor Author

vbmade2000 commented Feb 22, 2017

Yes I did. Most of the packages I found from some other sites as they were not available in repo.
Regarding libseccomp it is raising error about, following is an output of "yum list installed" command.

[mvora@macsystem cri-o]$ yum list installed | grep "libseccomp"
libseccomp.x86_64 2.3.1-2.el7 @rhel-7-server-rpms
libseccomp-devel.i686 2.3.1-2.el7 installed

Following is list of sources for various dependencies.
#install ex2fs if not installed
sudo yum install e2fsprogs-devel

#install blkid package if not installed
sudo yum install libblkid-devel

#install zlib if not installed
sudo yum install zlib-devel

#install lzo if not installed
sudo yum install lzo

#install llzo2 library if not installed
ftp://bo.mirror.garr.it/1/slc/centos/7.1.1503/os/x86_64/Packages/lzo-devel-2.06-6.el7_0.2.x86_64.rpm

#install btrfs dependecies
https://btrfs.wiki.kernel.org/index.php/Btrfs_source_repositories#Fedora

#install asciidoc package if not installed
https://www.rpmfind.net/linux/rpm2html/search.php?query=asciidoc

#install/buildbtrfs
https://www.cyberciti.biz/faq/how-to-build-and-install-the-latest-version-of-btrfs-tools-on-linux/

#install device-mapper-devel
https://rpmfind.net/linux/rpm2html/search.php?query=device-mapper-devel

#install glib2-devel
sudo yum install glib2-devel

#install glibc-devel
Raises already installed due to glib2-devel

#install glibc-static
https://www.rpmfind.net/linux/rpm2html/search.php?query=glibc-static

#install gpgme-devel
ftp://195.220.108.108/linux/fedora/linux/development/rawhide/Everything/x86_64/os/Packages/g/gpgme-devel-1.8.0-12.fc26.i686.rpm

#install libassuan-devel
ftp://mirror.switch.ch/pool/4/mirror/centos/7.3.1611/os/x86_64/Packages/libassuan-devel-2.1.0-3.el7.x86_64.rpm

#install libgpg-error-devel
libgpg-error-devel

#install pkgconfig
http://rpm.pbone.net/index.php3/stat/4/idpl/26646110/dir/centos_7/com/pkgconfig-0.27.1-4.el7.x86_64.rpm.html

#install libseccomp-devel
https://centos.pkgs.org/7/centos-x86_64/libseccomp-devel-2.3.1-2.el7.i686.rpm.html

@rhatdan

This comment has been minimized.

Copy link
Contributor

rhatdan commented Feb 22, 2017

libseccomp-devel?

@vbmade2000

This comment has been minimized.

Copy link
Contributor Author

vbmade2000 commented Feb 22, 2017

In order to enable seccomp support as per README.md

@jawnsy

This comment has been minimized.

Copy link
Contributor

jawnsy commented Feb 22, 2017

@vbmade2000 I wouldn't recommend installing CentOS packages on RHEL (or vice versa), as packages are only built/tested with other packages from the same distro. What version of RHEL are you running? I tested with 7.4 Beta (Maipo) and the only problem I ran into was an old runc version, which has been fixed recently.

@jawnsy

This comment has been minimized.

Copy link
Contributor

jawnsy commented Feb 22, 2017

Try running: pkg-config libseccomp --libs, you should see -lseccomp (if you see "No package found" then the .pc file - which should come with the *-devel package - hasn't been installed correctly)

@gouyang

This comment has been minimized.

Copy link

gouyang commented Feb 23, 2017

@vbmade2000 I could make ocid binaries on RHEL7 after installing the dependencies, so it should not be the ocid problem.

@vbmade2000

This comment has been minimized.

Copy link
Contributor Author

vbmade2000 commented Feb 27, 2017

I am setting up on Fedora now instead of RHEL. We can close this issue.

@vbmade2000 vbmade2000 closed this Feb 27, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.