I am installing an lin_tape-1.38.0-1.src.rpm file but it won't install
Linux version
Linux 2.6.18-164.el5xen #1 SMP Thu Sep 3 04:41:04 EDT 2009 x86_64 x86_64 x86_64 GNU/Linux
but I am getting issues when installing
Code:
[root@ DeviceDriver]# rpmbuild --rebuild lin_tape-1.38.0-1.src.rpm
Installing lin_tape-1.38.0-1.src.rpm
Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.54754
+ umask 022
+ cd /usr/src/redhat/BUILD
+ cd /usr/src/redhat/BUILD
+ rm -rf lin_tape-1.38.0
+ /bin/gzip -dc /usr/src/redhat/SOURCES/lin_tape-1.38.0.tgz
+ tar -xf -
+ STATUS=0
+ '[' 0 -ne 0 ']'
+ cd lin_tape-1.38.0
++ /usr/bin/id -u
+ '[' 0 = 0 ']'
+ /bin/chown -Rhf root .
++ /usr/bin/id -u
+ '[' 0 = 0 ']'
+ /bin/chgrp -Rhf root .
+ /bin/chmod -Rf a+rX,u+w,g-w,o-w .
+ exit 0
Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.63815
+ umask 022
+ cd /usr/src/redhat/BUILD
+ cd lin_tape-1.38.0
++ echo x86_64-redhat-linux-gnu
++ cut -f 1 -d -
+ p=x86_64
+ '[' x86_64 == i386 ']'
+ '[' x86_64 == i586 ']'
+ '[' x86_64 == i686 ']'
+ '[' x86_64 == ppc64 ']'
+ '[' x86_64 == powerpc ']'
+ '[' x86_64 == s390 ']'
+ '[' x86_64 == s390x ']'
+ '[' x86_64 == ia64 ']'
+ '[' x86_64 == x86_64 ']'
+ proc=AMD
+ cp -af lin_tape_359X_AMD.ReadMe lin_tape_359X.ReadMe
+ cp -af lin_tape_Ultrium_AMD.ReadMe lin_tape_Ultrium.ReadMe
+ make KERNEL=2.6.18-164.el5xen PROC=x86_64 driver
make -C /lib/modules/2.6.18-164.el5xen/build SUBDIRS=/usr/src/redhat/BUILD/lin_tape-1.38.0 PWD=/usr/src/redhat/BUILD/lin_tape-1.38.0 clean
make: *** /lib/modules/2.6.18-164.el5xen/build: No such file or directory. Stop.
make: *** [clean] Error 2
error: Bad exit status from /var/tmp/rpm-tmp.63815 (%build)
RPM build errors:
Bad exit status from /var/tmp/rpm-tmp.63815 (%build)
/var/tmp/rpm-tmp.63815
rpm-tmp.63815 File
Code:
[root@srv-tsm-of DeviceDriver]# cat /var/tmp/rpm-tmp.63815
#!/bin/sh
RPM_SOURCE_DIR="/usr/src/redhat/SOURCES"
RPM_BUILD_DIR="/usr/src/redhat/BUILD"
RPM_OPT_FLAGS="-O2 -g -m64 -mtune=generic"
RPM_ARCH="x86_64"
RPM_OS="linux"
export RPM_SOURCE_DIR RPM_BUILD_DIR RPM_OPT_FLAGS RPM_ARCH RPM_OS
RPM_DOC_DIR="/usr/share/doc"
export RPM_DOC_DIR
RPM_PACKAGE_NAME="lin_tape"
RPM_PACKAGE_VERSION="1.38.0"
RPM_PACKAGE_RELEASE="1"
export RPM_PACKAGE_NAME RPM_PACKAGE_VERSION RPM_PACKAGE_RELEASE
RPM_BUILD_ROOT="/var/tmp/lin_tape-1.38.0-1-root-root"
export RPM_BUILD_ROOT
PKG_CONFIG_PATH="/usr/lib64/pkgconfig:/usr/share/pkgconfig"
export PKG_CONFIG_PATH
set -x
umask 022
cd "/usr/src/redhat/BUILD"
cd 'lin_tape-1.38.0'
p=`echo $MACHTYPE|cut -f 1 -d '-'`
( [ $p == "i386" ] || [ $p == "i586" ] || [ $p == "i686" ] ) && proc="Intel"
( [ $p == "ppc64" ] || [ $p == "powerpc" ] ) && proc="pSeries"
( [ $p == "s390" ] ) && proc="zSeries"
( [ $p == "s390x" ] ) && proc="zSeries"
( [ $p == "ia64" ] ) && proc="Intel"
( [ $p == "x86_64" ] ) && proc="AMD"
cp -af lin_tape_359X_${proc}.ReadMe lin_tape_359X.ReadMe
cp -af lin_tape_Ultrium_${proc}.ReadMe lin_tape_Ultrium.ReadMe
make KERNEL=2.6.18-164.el5xen PROC=$p driver
exit 0[root@srv-tsm-of DeviceDriver]#
any idea how to solve this?
thanks a lot