LinuxQuestions.org
Register a domain and help support LQ
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 10-22-2008, 02:28 PM   #1
mark165
LQ Newbie
 
Registered: Oct 2008
Distribution: Ubuntu
Posts: 28

Rep: Reputation: 15
Installing Kernel Source


First of all, i'm tying to install this:
http://www.tanzband-scream.at/line6/index.html

I've downloaded the Binary version for the RPM installation, and extracted it. As the instructions say, i need to type "rpmbuild -tb line6usb-0.7.3.tar.bz2" first.

However when i do that i get this:


mark@mark-desktop:~$ sudo rpmbuild -tb line6usb-0.7.3.tar.bz2
error: Failed build dependencies:
kernel-source is needed by line6usb-0.7.3-1.x86_64


I've looked on google for installing the kernel source for Ubuntu, and from what i've managed to do so far appears that i have infact downloaded the kernel source, to test it again i type this in Terminal:


mark@mark-desktop:~$ sudo apt-get install linux-source
Reading package lists... Done
Building dependency tree
Reading state information... Done
linux-source is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
mark@mark-desktop:~$


In my /usr/src folder, there is "linux-source-2.6.24.tar". From a tutorial i extracted that, and have a folder called "linux-source-2.6.24" that contains alot of stuff.

Why am i getting the error that i need to install the kernel source, when it seems to be already installed? I have the kernel headers installed also, i think they were already there when i installed Ubuntu.

uname -r gives out "2.6.24-21-generic" and im using the 64bit Ubuntu 8.04, if that helps.
 
Old 10-22-2008, 02:35 PM   #2
Total-MAdMaN
Member
 
Registered: May 2008
Distribution: Gentoo
Posts: 306

Rep: Reputation: 34
It's looking for a package named kernel-source. It doesn't matter that you've got the source code for the kernel installed. As long as you don't have the kernel-source package installed, you'll keep getting that error.
 
Old 10-22-2008, 02:40 PM   #3
jay73
LQ Guru
 
Registered: Nov 2006
Location: Belgium
Distribution: Ubuntu 11.04, Debian testing
Posts: 5,019

Rep: Reputation: 130Reputation: 130
You may need to create a link called "linux" (in the same /usr/src directory) that points to the linux-source directory.
 
Old 10-22-2008, 03:06 PM   #4
mark165
LQ Newbie
 
Registered: Oct 2008
Distribution: Ubuntu
Posts: 28

Original Poster
Rep: Reputation: 15
Thanks.

I tried this:

mark@mark-desktop:~$ cd /usr/src
mark@mark-desktop:/usr/src$ sudo ln -s /usr/src/linux-source-2.6.24 /usr/src/linux

And i still get the same error.

i then tried this:
mark@mark-desktop:/usr/src$ sudo ln -s /usr/src/linux-source-2.6.24 /usr/src/kernel-source

And it still gave me the error.

I'm really confused at the moment!
 
Old 10-22-2008, 05:18 PM   #5
jay73
LQ Guru
 
Registered: Nov 2006
Location: Belgium
Distribution: Ubuntu 11.04, Debian testing
Posts: 5,019

Rep: Reputation: 130Reputation: 130
Try this, it is what I used:
http://www.howtoforge.com/kernel_compilation_ubuntu
 
Old 10-23-2008, 04:39 AM   #6
james.farrow
Member
 
Registered: Mar 2003
Location: UK Darlington
Distribution: Fedora Freebsd Centos
Posts: 288

Rep: Reputation: 31
I might be wrong here but it certainly won't do any harm!!

yum install kernel-devel kernel-headers

then have another go at building rpm
 
Old 10-23-2008, 05:11 AM   #7
tredegar
LQ 5k Club
 
Registered: May 2003
Location: London, UK
Distribution: Debian "Jessie"
Posts: 6,085

Rep: Reputation: 398Reputation: 398Reputation: 398Reputation: 398
Quote:
uname -r gives out "2.6.24-21-generic" and im using the 64bit Ubuntu 8.04, if that helps.
So you are running the 2.6.24-21-generic kernel. This is a 32-bit kernel. You may have 64-bit hardware, but you are running a 32-bit kernel. This is perfectly OK.

But you have installed linux-source-2.6.24
This is different from 2.6.24-21-generic
So your kernel source does not match the running kernel. So things will not work.

Install the headers for your currently running kernel like this
Code:
sudo apt-get install linux-headers-2.6.24-21-generic
You might also have to
Code:
sudo apt-get install build-essential
to install the c compiler and other utilities required before you can compile from source.

Then try again

@james.farrow:
Quote:
yum install kernel-devel kernel-headers
kernel-devel and kernel-headers are not the names of ubuntu packages, and ubuntu doesn't use yum, so this will not work.
 
Old 10-25-2008, 11:46 AM   #8
mark165
LQ Newbie
 
Registered: Oct 2008
Distribution: Ubuntu
Posts: 28

Original Poster
Rep: Reputation: 15
[QUOTE=tredegar;3319505]So you are running the 2.6.24-21-generic kernel. This is a 32-bit kernel. You may have 64-bit hardware, but you are running a 32-bit kernel. This is perfectly OK.

But you have installed linux-source-2.6.24
This is different from 2.6.24-21-generic
So your kernel source does not match the running kernel. So things will not work.

Install the headers for your currently running kernel like this
Code:
sudo apt-get install linux-headers-2.6.24-21-generic
You might also have to
Code:
sudo apt-get install build-essential
to install the c compiler and other utilities required before you can compile from source.

Then try again

This is interesting. I'm sure i tried to do that, and it didn't find that kernel, maybe i was going it wrong however. I'll try again

I;ve discovered what i'm installing does not work with the 2.6.24-xx kernel, and found a way to install the Ubuntu 8.10 Kernels (2.6.27), and i managed to compile the source with make install instead of the other way. The source would not compile properly with 2.6.24-xx, hency why i was doing the RPM installation. I'm not entirely sure if it worked. I've managed to mess up my xorg.conf file and i don't get as far as a GUI.

I think i might just download Ubuntu 8.10 and start fresh. I know its only beta at current, but it should be alright.

As for the 32-bit kernel, i'm not sure how that happened, as i downloaded the AMD64 version of Ubuntu. Maybe this just ships with a 32-bit kernel? And your correct, i do have 64-bit hardware (AMD64)

Last edited by mark165; 10-25-2008 at 11:49 AM.
 
  


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
apt-get kernel-source is installing the wrong kernel source. JordanH Ubuntu 10 07-08-2005 06:42 PM
installing kernel-source-2.6.8 phoenix_wolf Linux - Newbie 8 12-14-2004 10:24 AM
Installing Kernel Source rhraz Linux - Newbie 3 03-31-2004 03:24 PM
installing kernel-source-2.4.20-20.9 wraith106 Linux - Software 11 10-11-2003 10:35 AM
Installing the kernel source PlatinumRik Linux - General 2 02-19-2003 10:37 AM


All times are GMT -5. The time now is 01:16 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration