Koozali.org: home of the SME Server

Updates Repo wrong kernel version

Offline apmuthu

  • *
  • 244
  • +0/-0
Updates Repo wrong kernel version
« on: December 20, 2009, 05:15:01 PM »
If we are compiling Dahdi, Asterisk, etc., from source, should we enable the ATrpms repo at all?

By default the base and updates repo are set to:
Code: [Select]
exclude=kernel kernel-smp kernel-xenU mkinitrd mdadm initscripts
as seen in the file:
Code: [Select]
/etc/yum.smerepos.d/sme-base.repo
For compiling Asterisk and others, we need to do the following:
Code: [Select]
yum install gcc gcc-c++ ncurses-devel kernel-devel
This results in the current kernel being:
Quote
# uname -r
2.6.9-89.0.16.EL

And the latest kernel-devel showing up in the updates as:
Code: [Select]
kernel-devel-2.6.9-89.0.18.EL
To match the running kernel, this requires us to manually install the kernel-devel with:
Code: [Select]
cd /usr/src
yum install gcc gcc-c++ ncurses-devel
wget http://mirror.centos.org/centos/4/updates/i386/RPMS/kernel-devel-2.6.9-89.0.16.EL.i686.rpm
yum localinstall -y kernel-devel-2.6.9-89.0.16.EL.i686.rpm
and after compilation is over, remove it using:
Code: [Select]
yum remove gcc gcc-c++ ncurses-devel kernel-develto prevent the Update kernel-devel-2.6.9-89.0.18.EL from showing up.
« Last Edit: December 20, 2009, 05:17:29 PM by apmuthu »

Offline SARK devs

  • ****
  • 2,806
  • +1/-0
    • http://sarkpbx.com
Re: Updates Repo wrong kernel version
« Reply #1 on: December 21, 2009, 11:48:16 AM »
Quote
If we are compiling Dahdi, Asterisk, etc., from source, should we enable the ATrpms repo at all?

No, you won't need it.  Sail doesn't care where you get Asterisk from.


Kind Regards

S

Offline apmuthu

  • *
  • 244
  • +0/-0
Re: Updates Repo wrong kernel version
« Reply #2 on: December 21, 2009, 01:28:52 PM »
What to do about the kernel and kernel-devel version differences in future?

Must the asterisk group and user be created prior to installing Asterisk?

If so, What/Where should the asterisk user be used/scripted into prior to installing Asterisk"

SAIL tries to install an older version of sox and hence the newer version of sox should be installed prior to installing SAIL? (Update to Wiki)

Is the sox-devel package needed for SAIL? (Update to Wiki)

Is the mysql-devel package needed for SAIL? (Update to Wiki)


Offline SARK devs

  • ****
  • 2,806
  • +1/-0
    • http://sarkpbx.com
Re: Updates Repo wrong kernel version
« Reply #3 on: December 21, 2009, 02:39:12 PM »
Quote
What to do about the kernel and kernel-devel version differences in future?
There is no easy answer.  Asterisk kmdls MUST match the kernel version.  However, I don't understand your reference to  kernel headers (devel) because you don't need them installed for an rpm installation of kmdl.

Quote
Must the asterisk group and user be created prior to installing Asterisk?
We (Aelintra) run Asterisk as root so it isn't an issue for us.  If you wish to run Asterisk under its own user then you'll need to look up how to do it on the Digium BBs.

Quote
SAIL tries to install an older version of sox

No, the rpm simply requires sox.  It is the SME repos which deliver the actual version.

Quote
Is the sox-devel package needed for SAIL?
No.

Quote
Is the mysql-devel package needed for SAIL?

No. in the current version, SAIL doesn't use MySQL.

Kind Regards

S

Offline apmuthu

  • *
  • 244
  • +0/-0
Re: Updates Repo wrong kernel version
« Reply #4 on: December 22, 2009, 06:55:05 PM »
kernel-devel is needed to install asterisk by compiling it from scratch. Even if we are installing the kmdl files from the rpm, as asterisk compilation needs the kernel and kernel-devel versions to be the same and currently the kernel is excluded in the sme-base.repo and the latest kernel-devel is different from the latest SME installed kernel - how do we address it other than a forced install of kernel-devel of the older (to match the SME kernel) version?

Is there any way to compile the kmdl files from scratch - a HowTo would be nice?

Offline SARK devs

  • ****
  • 2,806
  • +1/-0
    • http://sarkpbx.com
Re: Updates Repo wrong kernel version
« Reply #5 on: December 22, 2009, 07:47:11 PM »
Quote
Is there any way to compile the kmdl files from scratch - a HowTo would be nice?

You would need to address your question to Axel Thimm over at ATrpms.  He is the the driving force behind all of the Asterisk rpms we use.

Kind Regards