Koozali.org: home of the SME Server
Obsolete Releases => SME VoIP (Asterisk, SAIL etc) => Topic started by: apmuthu 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:
exclude=kernel kernel-smp kernel-xenU mkinitrd mdadm initscripts
as seen in the file:
/etc/yum.smerepos.d/sme-base.repo
For compiling Asterisk and others, we need to do the following:
yum install gcc gcc-c++ ncurses-devel kernel-devel
This results in the current kernel being:
# uname -r
2.6.9-89.0.16.EL
And the latest kernel-devel showing up in the updates as:
kernel-devel-2.6.9-89.0.18.EL
To match the running kernel, this requires us to manually install the kernel-devel with:
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:yum remove gcc gcc-c++ ncurses-devel kernel-devel
to prevent the Update kernel-devel-2.6.9-89.0.18.EL from showing up.
-
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
-
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)
-
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.
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.
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.
Is the sox-devel package needed for SAIL?
No.
Is the mysql-devel package needed for SAIL?
No. in the current version, SAIL doesn't use MySQL.
Kind Regards
S
-
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?
-
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
S