Sunday, August 24, 2014

GPFS Autoconfig Error on CentOS 6

When I try to build the portability layer for GPFS which is done by

make LINUX_DISTRIBUTION=REDHAT_AS_LINUX Autoconfig
 There are errors like the ones below
cd /usr/lpp/mmfs/src/config; ./configure --genenvonly; /usr/bin/cpp -P def.mk.proto > ./def.mk; exit $? || exit 1
Cannot find a valid kernel include dir
def.mk.proto:12:19: error: env.mcr: No such file or directory
make: *** Autoconfig Error 1

The solution is to make sure you have all the package installed. These are the following prerequistics

kernel-headers-2.6.18-128.el5.x86_64.rpm
kernel-devel-2.6.18-128.el5.x86_64.rpm
libgomp-4.3.2-7.el5.x86_64.rpm
glibc-headers-2.5-34.x86_64.rpm
glibc-devel-2.5-34.x86_64.rpm
gcc-4.1.2-44.el5.x86_64.rpm
libstdc++-devel-4.1.2-44.el5.x86_64.rpm
gcc-c++-4.1.2-44.el5.x86_64.rpm

References:
  1. Linux system does not have prerequisite kernel or C++ packages 

No comments: