Docker Community Forums

Share and learn in the Docker community.

How to install perl inside rhel6 image?

(Nkimidi) #1

I am trying to dockerize hadoop installtion on rhel6 which requires perl.
But rhel6 does not contain perl inside it.
How do i install it?

I tried two ways:

  1. Copied /usr/bin/perl from my mac to /usr/bin/perl inside my container using ADD. [/bin/sh: /usr/bin/perl: cannot execute binary file]
  2. downloaded perl tar file and updated the env path. yet it throws me this error -[ /bin/sh: perl: command not found]

Can experts suggest me something?

(Sven Dowideit) #2

can you yum install perl ?

(Nkimidi) #3

I was not able to yum install perl. These packages cannot be found on rhel6 because a container cannot be registered to RHEL6.

I downloaded rpm packages for centos and used yum to install it in my container.