LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices



Reply
 
Search this Thread
Old 06-01-2010, 01:16 PM   #1
kopper27
Member
 
Registered: Nov 2009
Posts: 147

Rep: Reputation: 16
Installing device driver issue


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

Last edited by kopper27; 06-01-2010 at 01:40 PM.
 
Old 06-01-2010, 03:28 PM   #2
smoker
Senior Member
 
Registered: Oct 2004
Distribution: Fedora Core 4, 12, 13, 14, 15, 17
Posts: 2,279

Rep: Reputation: 248Reputation: 248Reputation: 248
Have you installed kernel-xen-devel and the kernel headers for that kernel ?

If not, do so. There will be no /lib/modules/2.6.18-164.el5xen/build otherwise.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Installing Device Specific driver? Zangai Linux - Wireless Networking 1 05-03-2008 10:29 PM
Installing RHEL 4: no device driver for SATA HDD cool_guy_km Linux - Hardware 1 10-17-2007 03:24 PM
Ques: How to install Device driver before installing linux nooz Linux - Hardware 0 07-02-2006 09:52 PM
Help with installing Network card device driver Little General Ubuntu 1 08-24-2005 05:58 PM
Installing a device driver as a Module lehumphr Linux - Newbie 1 04-28-2004 12:31 AM


All times are GMT -5. The time now is 01:45 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration