Install ktap on RHEL

My RHEL is 7.0, the minimal installation. Build ktap, it outputs the following error:

[root@redhat ktap-master]# make
    CHK libelf
Makefile:108: No libelf found, disables symbol resolving, please install elfutils-libelf-devel/libelf-dev
make -C /lib/modules/3.10.0-123.el7.x86_64/build M=/root/ktap-master modules
make: *** /lib/modules/3.10.0-123.el7.x86_64/build: No such file or directory.  Stop.
make: *** [mod] Error 2

(1)

To fix “No libelf found, disables ...” error, you need to install elfutils-libelf-devel package:

[root@redhat ktap-master]# yum install elfutils-libelf-devel
Loaded plugins: product-id, subscription-manager
This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
Resolving Dependencies
--> Running transaction check
---> Package elfutils-libelf-devel.x86_64 0:0.158-3.el7 will be installed
--> Finished Dependency Resolution

Dependencies Resolved
......

(2)

To fix “*** /lib/modules/3.10.0-123.el7.x86_64/build: No such file or directory.” error, you need to install kernel-devel package:

[root@redhat ktap-master]# yum install kernel-devel
Loaded plugins: product-id, subscription-manager
This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
Resolving Dependencies
--> Running transaction check
---> Package kernel-devel.x86_64 0:3.10.0-123.el7 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

Then make is OK!

 

One thought on “Install ktap on RHEL”

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.