Go Back   TechArena Community > Software > Operating Systems
Become a Member!
Forgot your username/password?
Tags Active Topics RSS Search Mark Forums Read

Sponsored Links



Error message while extracting kernel source

Operating Systems


Reply
 
Thread Tools Search this Thread
  #1  
Old 05-05-2011
Member
 
Join Date: Apr 2011
Posts: 62
Error message while extracting kernel source
  

I am getting an issue while extracting the kernel source. I have tried to installed kernel source RPM and make an attempt to build tree into the unprivileged user directory. I am getting an error message on the screen while doing the above mentioned. I am not having any idea regarding the troubleshooting steps to fix the problem. Any instruction on this particular matter would be highly appreciated. Thanks a lot in advance.

Reply With Quote
  #2  
Old 05-05-2011
Member
 
Join Date: Apr 2009
Posts: 967
Re: Error message while extracting kernel source

Looking at the situation which you have mentioned over here I am suspecting that you have not installed the Source package. Well I want to know whether rpmbuild/SOURCES/ and pmbuild/SPECS/ directories are populated properly or not. Also you should use the following command on the terminal and let me know about the results after executing the same.
Code:
cd /home/xxx/rpmbuild
ls -lR | more
Reply With Quote
  #3  
Old 05-05-2011
Member
 
Join Date: Nov 2009
Posts: 787
Re: Error message while extracting kernel source

I was having the same problem which you have mentioned over here in this particular thread. I have done lots of research work and finally I have managed to fix the problem of mine. well I have installed kernel-.src.rpm by using the following command on the computer of mine. Hence I recommend that you should copy and paste the below mentioned command on the terminal while installing kernel-.src.rpm on the system of yours.
Code:
rpm -Uvh kernel-.src.rpm
Reply With Quote
  #4  
Old 05-05-2011
Member
 
Join Date: Apr 2009
Posts: 990
Re: Error message while extracting kernel source

I am suggesting some useful instruction to meet the requirement of yours. You should create kernel source tree on the computer of yours. to get the same you should use the below mentioned command.
Code:
cd ~/rpmbuild/SPECS
rpmbuild -bp --target=$(uname -m) kernel.spec
now you should copy the source and simply generate a patch by using the below mentioned command.
Code:
cp -r ~/rpmbuild/BUILD/kernel-2.6.$ver$fedver/linux-2.6.$ver.$arch ~/rpmbuild/BUILD/kernel-2.6.$ver$fedver.orig
cp -al ~/rpmbuild/BUILD/kernel-2.6.$ver$fedver.orig ~/rpmbuild/BUILD/kernel-2.6.$ver$fedver.new
Reply With Quote
  #5  
Old 05-05-2011
Member
 
Join Date: Nov 2009
Posts: 861
Re: Error message while extracting kernel source

If you are looking to install a new kernel on the running system of yours then you should use the rpm ?ivh. you can also use the below mentioned command on the terminal.
Code:
su -c "rpm -ivh --force $HOME/rpmbuild/RPMS/<arch>/kernel-<version>.<arch>.rpm"
In case you have changed the name of the kernel and the firmware and kernel headers are not matching then you should use the below mentioned command.
Code:
su -c "rpm -ivh $HOME/rpmbuild/RPMS/<arch>/kernel-<version>.<arch>.rpm \
       $HOME/rpmbuild/RPMS/<arch>/kernel-firmware-<version>.<arch>.rpm \
       $HOME/rpmbuild/RPMS/<arch>/kernel-headers-<version>.<arch>.rpm \
       $HOME/rpmbuild/RPMS/<arch>/kernel-devel-<version>.<arch>.rpm"
This command would install the kernel in /boot.
Reply With Quote
  #6  
Old 06-05-2011
Member
 
Join Date: May 2008
Posts: 991
Re: Error message while extracting kernel source

I am suggesting the following instruction which would be helpful to get the source.
  • You should prepare RPM package building environment on the Home Directory and use the following command.
Code:
rpmdev-setuptree
  • you should download the kernel-<version>.src.rpm file and simply enable the appropriate source repositories by using ?enablerepo.
Code:
yumdownloader --source kernel
  • Now you should install all the dependiences which is needed for the kernel source.
Code:
su -c 'yum-builddep kernel-<version>.src.rpm'
  • you have to install the kernel-<version>.src.rpm by using the following pieces of the command.
Code:
rpm -Uvh kernel-<version>.src.rpm
Reply With Quote
Reply

  TechArena Community > Software > Operating Systems
Tags: , , , ,



Thread Tools Search this Thread
Search this Thread:

Advanced Search


Similar Threads for: "Error message while extracting kernel source"
Thread Thread Starter Forum Replies Last Post
Unable to run amd64 kernel on Wine due to error message Raj G Windows Software 1 27-02-2012 01:09 PM
How to fix ?Error ID 504 (source Id 239)? error message on Microsoft Office 365? Zarir Windows Software 5 10-07-2011 11:03 AM
Unable to install Nvida driver getting ?Unable to find the kernel source tree? error message Dajbog Windows Software 5 09-07-2011 10:41 AM
Error in running the VirtualBox: kernel source mismatch in CentOS B?rbel Operating Systems 4 06-05-2011 07:35 PM
CentOS 5.4: Getting error message ?Kernel panic - not syncing: VFS:? OCTAVE Operating Systems 5 04-05-2011 10:46 AM


All times are GMT +5.5. The time now is 07:10 PM.