Koozali.org: home of the SME Server

kernel-source for SME 7 ?!

fargo

kernel-source for SME 7 ?!
« on: September 03, 2005, 01:35:52 PM »
I'm trying to install AMP on SME ver 7 beta 1. Asterisk needs kernel-source, so I ran:
Code: [Select]
yum -y install kernel-source
And after downloading zillions of files and giving success message, I entered:
Code: [Select]
[root@theserver zaptel]# make && make install
and got the following:
Code: [Select]
You do not appear to have the kernel sources for your current kernel installed.
make: *** [linux26] Error 1

 :-(

Any idea how to get kernel-source for SME 7 ?!

guest22

kernel-source for SME 7 ?!
« Reply #1 on: September 04, 2005, 01:25:42 AM »
VoIP in general is not really an ' out of the box thing' . Several drivers ( e.g. zaptel) need special attention with the 2.6 kernel and compiling in general.

Please visit www.voip-info.org for more details on this. It is not within the general SME Server 7 game.

guest

fargo

kernel-source for SME 7 ?!
« Reply #2 on: September 04, 2005, 02:50:45 AM »
I've already installed astrisk on other linux distr. SME 7 source-kernel is needed for astrisk compilation.

TIA

duncan

kernel-source for SME 7 ?!
« Reply #3 on: September 04, 2005, 05:34:56 AM »
You need to set up the kernel source.

fargo

kernel-source for SME 7 ?!
« Reply #4 on: September 04, 2005, 06:29:00 AM »
Quote from: "duncan"
You need to set up the kernel source.

Is there any thing other than: yum install kernel-source ?

TIA

Offline Arnie

  • ****
  • 81
  • +0/-0
  • Old Dog, New Tricks.
kernel-source for SME 7 ?!
« Reply #5 on: September 05, 2005, 08:40:52 AM »
Do a 'uname -a' to find out what version of the kernel you are running and download the source from www.kernel.org.
...

duncan

kernel-source for SME 7 ?!
« Reply #6 on: September 05, 2005, 09:33:23 AM »
Code: [Select]
yum install kernel-source gcc-c++
ln -s /usr/src/linux-2.6.9-11.EL /usr/src/linux
cd /usr/src/linux
pico Makefile


Change EXTRAVERSION = -11.ELcustom => EXTRAVERSION = -11.EL

Code: [Select]

make mrproper
cp /boot/config-2.6.9-11.EL /usr/src/linux/.config
make oldconfig
make all


Or something like that.

Offline gregswallow

  • *
  • 651
  • +1/-0
kernel-source for SME 7 ?!
« Reply #7 on: September 05, 2005, 06:50:18 PM »
I think the rpms here would save you some time:
http://atrpms.net/dist/el4/zaptel/
http://atrpms.net/dist/el4/asterisk/
http://atrpms.net/dist/el4/asterisk-addons/

Any dependancies will be there as well.

fargo

kernel-source for SME 7 ?!
« Reply #8 on: September 06, 2005, 02:55:09 PM »
Thank you very much all. I'll try both ways and let you know.

 :-)

Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
Re: kernel-source for SME 7 ?!
« Reply #9 on: September 06, 2005, 08:51:27 PM »
Quote from: "fargo"

Any idea how to get kernel-source for SME 7 ?!


First off there is no SME 7 - there is only a beta of SME7.

Your question is really how do I get the kernel source for RHEL4/CentOS4? And the answer is that you probably don't actually want it, you want the kernel-devel RPM, which contains header files and config files.

If you just want to build additional modules which are compatible with the kernel which is running (i.e you don't want to replace the kernel itself) then you only need the kernel-devel and kernel-smp-devel rpms.

Offline Reinhold

  • *
  • 517
  • +0/-0
    • http://127.0.0.1
kernel-source for SME 7 ?!
« Reply #10 on: September 12, 2005, 05:15:34 PM »
Hi
As Charly said SME 7x  is based on Centos 4.1 so go grab the Centos Kernel ...

For an rpm look here (better use local mirror):
Code: [Select]
http://centos.cs.ucr.edu/centos/4.1/os/i386/CentOS/RPMS/kernel-sourcecode-2.6.9-11.EL.noarch.rpm

If you want to install via yum:
Code: [Select]
su -
yum install kernel-sourcecode-2.6.9-11


That should be all you need

Regards
Reinhold

Btw: While Charly is right with his comment... on another Linmodem front (PCTel) I got stuck with -dev only and only installation of -sourcecode did do the trick.  
+ Looking at the post again I feel compelled to add that a SME production server probably isn't the right place for compilable kernel source...  :roll:
...and you might want to install a full CENTOS 4.1 as workplace...

CORRECTION: copy and paste does bad things around "."
If you want to install via yum correct the above into:
Code: [Select]
su -
yum install kernel-sourcecode-2.6.9-11.EL

...as Duncan pointed out below. - When/if the kernel changes you might use his improved "uname" version.
............

duncan

kernel-source for SME 7 ?!
« Reply #11 on: September 13, 2005, 01:19:58 AM »
Quote from: "Reinhold"

Code: [Select]
su -
yum install kernel-sourcecode-2.6.9-11



Lets not confuse people. Charlie suggested kernel-devel not kernel-sourcecode.

Also

Code: [Select]
yum install kernel-source

will install kernel-sourcecode as well as any compilers. It is not enough to simply install the kernel-sourcecode.

Offline Reinhold

  • *
  • 517
  • +0/-0
    • http://127.0.0.1
kernel-source for SME 7 ?!
« Reply #12 on: September 13, 2005, 10:51:59 AM »
Heartily disagreed - but who cares - and who want's to confuse ... even more.
(i) If I need kernel sourcecode I install kernel-sourcecode ... for the right kernel version number ...
and not a bunch of stuff that comes with what you propose as "working too" 8-)
...what did he say "zillion of files" :-D yep!
(ii) I for one thing did need the sourcecode present when I wanted the Linmodem as I stated above. :roll:
(iii) Did you really notice the "-" that is most often omitted when installing root-stuff (and it certainly was  not present in the original post.:-x ) ?

Never mind   :pint:  
Reinhold
............

duncan

kernel-source for SME 7 ?!
« Reply #13 on: September 13, 2005, 11:26:56 AM »
Quote from: "Reinhold"

Never mind   :pint:  
Reinhold


Right.

Code: [Select]
yum install kernel-sourcecode-2.6.9-11

Will do a fat lot of nothing. But hey - we would have worked it out.

Code: [Select]
yum install kernel-sourcecode-2.6.9-11.EL

Will work

Code: [Select]
yum install kernel-sourcecode-uname -r

Will work even better.

Offline Reinhold

  • *
  • 517
  • +0/-0
    • http://127.0.0.1
kernel-source for SME 7 ?!
« Reply #14 on: September 13, 2005, 11:54:03 AM »
duncan,

Would you please come out of "know better and flame" mode.
YES - the "EL" got lost when I copied from the .rpm that was cited above. But IMO it's a trivial error easily corrected with a simple follow up in normal mode - you obviously figured it right away - in his case he obviously somehow installed the wrong pieces or the pieces wrong (-). Hope you understand me know!

NO - While Charlie may be right that -devel is mostly enough, it sometimes isn't, like in this case where he stated his experience "is needed" already.

I did add "zillions of smilies"  - didn't I ?

Reinhold
 :-o  :-o  :-o

BTW: I added a correction to my 1st post.
............

duncan

kernel-source for SME 7 ?!
« Reply #15 on: September 21, 2005, 10:26:03 AM »
For those looking for a method for either patching kernel modules and rebuilding them (ie in my case - patching netjet drivers for voice support) or building new modules such as XFS file system support - I have documented a howto here. This is method does not require any kernel compilation.

As it is part of a bigger howto - at the point it mentions
Code: [Select]
sh /mythtv/mythmisc/devtools
you would do
Code: [Select]
yum install kernel-source

instead. You can ignore the QT portion unless you have a need for it. Incidentally - both

'yum install kernel-source' and 'yum install kernel-sourcecode' are identical and produce the same result. Approx 90meg of files.

For those that have a third party driver (perhaps a nvidia driver - or some such) then you can more than likely just install the kernel-development package and gcc (compiler).

Code: [Select]
yum install kernel-devel gcc

ejfowler

kernel-source for SME 7 ?!
« Reply #16 on: December 21, 2005, 07:24:37 AM »
Duncan, the above link to your how-to gives a 404 error, has it moved?

Eric

guest22

kernel-source for SME 7 ?!
« Reply #17 on: December 21, 2005, 10:08:39 AM »
http://www.raimokoski.com/lineox/4.0/updates/i386/RPMS/

The above location holds a copy of the correct kernel-source for SME Server Beta8 (CentOS 4.2)

duncan

kernel-source for SME 7 ?!
« Reply #18 on: December 21, 2005, 11:01:25 AM »
http://wiki.goldtel.com.au/howto/Dev

As Hsing pointed out - use his link for the kernel source. It may not work as well as expected. The "kernel-source" is now gone from yum - meaning you will need to nut out the various dependancies.