Koozali.org: home of the SME Server

New install on SME8b5 with latest updates

Offline Teviot

  • *
  • 610
  • +0/-0
New install on SME8b5 with latest updates
« on: July 07, 2010, 04:14:25 AM »
S

Have been following the instructions for an SME8b5 install of asterisk and sail.  However I have struck a snag and need a little help.


I have downloaded the latest Dahdi which is not the file set in the in structions found at http://sarkpbx.com/twiki/bin/view/Main/DocChapter03d

Also to help sort this here is the uname -r

Code: [Select]
[root@saint dahdi-linux-complete-2.3.0.1+2.3.0]# uname -r
2.6.18-194.8.1.el5
[root@saint dahdi-linux-complete-2.3.0.1+2.3.0]#

Everything ran smoothly until below

Code: [Select]
[root@saint dahdi-linux-complete-2.3.0.1+2.3.0]# make
make -C linux all
make[1]: Entering directory `/usr/src/dahdi-linux-complete-2.3.0.1+2.3.0/linux'
make -C drivers/dahdi/firmware firmware-loaders
make[2]: Entering directory `/usr/src/dahdi-linux-complete-2.3.0.1+2.3.0/linux/drivers/dahdi/firmware'
Attempting to download dahdi-fwload-vpmadt032-1.20.0.tar.gz
--2010-07-07 12:09:20--  http://downloads.digium.com/pub/telephony/firmware/releases/dahdi-fwload-vpmadt032-1.20.0.tar.gz
Resolving downloads.digium.com... 76.164.171.232, 2001:470:e0d4::e8
Connecting to downloads.digium.com|76.164.171.232|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 146556 (143K) [application/x-gzip]
Saving to: `dahdi-fwload-vpmadt032-1.20.0.tar.gz'

100%[===================================================================================>] 146,556     82.6K/s   in 1.7s   

2010-07-07 12:09:22 (82.6 KB/s) - `dahdi-fwload-vpmadt032-1.20.0.tar.gz' saved [146556/146556]

make[2]: Leaving directory `/usr/src/dahdi-linux-complete-2.3.0.1+2.3.0/linux/drivers/dahdi/firmware'
You do not appear to have the sources for the 2.6.18-194.8.1.el5 kernel installed.
make[1]: *** [modules] Error 1
make[1]: Leaving directory `/usr/src/dahdi-linux-complete-2.3.0.1+2.3.0/linux'
make: *** [all] Error 2
[root@saint dahdi-linux-complete-2.3.0.1+2.3.0]#
Regards
M0GLJ
......................................................
I am new to SAIL SME Server v8b6 and have been using SME for many years.
I have already done some research and only ask questions if I still can't work it out.

guest22

Re: New install on SME8b5 with latest updates
« Reply #1 on: July 08, 2010, 11:37:45 AM »
You need to install ALL the development tools, including the kernel headers/sources.

Dahdi requires it.

http://sarkpbx.com/twiki/bin/view/Main/DocChapter03d

guest

Offline Teviot

  • *
  • 610
  • +0/-0
Re: New install on SME8b5 with latest updates
« Reply #2 on: July 09, 2010, 08:42:51 AM »
Decided to started from scratch with a fresh install to eliminate any errors on my part

Download and extracted the sources from Digium  and then

Code: [Select]
[root@saint src]# uname -r
2.6.18-164.11.1.el5
[root@saint src]# yum install kernel-devel-2.6.18-164.11.1.el --enablerepo=base
Loaded plugins: fastestmirror, protect-packages, smeserver
Loading mirror speeds from cached hostfile
 * base: mirror.optus.net
 * smeaddons: distro.ibiblio.org
 * smeextras: distro.ibiblio.org
 * smeos: distro.ibiblio.org
 * smeupdates: distro.ibiblio.org
 * updates: mirror.optus.net
base                                                                                                  | 2.1 kB     00:00     
smeaddons                                                                                             | 1.9 kB     00:00     
smeextras                                                                                             | 1.9 kB     00:00     
smeextras/primary_db                                                                                  |  75 kB     00:01     
smeos                                                                                                 | 2.1 kB     00:00     
smeupdates                                                                                            | 1.9 kB     00:00     
updates                                                                                               | 1.9 kB     00:00     
Excluding Packages from CentOS - os
Finished
Excluding Packages from CentOS - updates
Finished
Setting up Install Process
No package kernel-devel-2.6.18-164.11.1.el available.
Nothing to do
[root@saint src]#

Can someone point me in the direction to find the missing file(s) that I need for this install
Regards
M0GLJ
......................................................
I am new to SAIL SME Server v8b6 and have been using SME for many years.
I have already done some research and only ask questions if I still can't work it out.

guest22

Re: New install on SME8b5 with latest updates
« Reply #3 on: July 09, 2010, 10:02:56 AM »
Quote
[root@saint src]# uname -r
2.6.18-164.11.1.el5
[root@saint src]# yum install kernel-devel-2.6.18-164.11.1.el --enablerepo=base


2.6.18-164.11.1.el5 is not the latest update
'kernel-devel-2.6.18-164.11.1.el' can't be found for there is a typo, the '5' at the end is missing

Do a yum update and then, to prevent typo's try:
yum install kernel-headers-`uname -r`
yum install kernel-devel-`uname -r`

beware, the " ` " above is the one on the ~ key...

kernel-headers will install in /usr/src/kernels/[kernel-version]
create a symbolic link named /usr/src/linux to the above directory

HTH

guest

Offline Teviot

  • *
  • 610
  • +0/-0
Re: New install on SME8b5 with latest updates
« Reply #4 on: July 10, 2010, 08:24:50 AM »
RequestedDeletion

got this response from your suggestion

Code: [Select]
[root@saint src]# yum install kernel-headers-`uname -r`
Loaded plugins: fastestmirror, protect-packages, smeserver
Loading mirror speeds from cached hostfile
 * base: mirror01.idc.hinet.net
 * smeaddons: distro.ibiblio.org
 * smeextras: distro.ibiblio.org
 * smeos: distro.ibiblio.org
 * smeupdates: distro.ibiblio.org
 * updates: mirror01.idc.hinet.net
Excluding Packages from CentOS - os
Finished
Excluding Packages from CentOS - updates
Finished
Setting up Install Process
No package kernel-headers-2.6.18-164.11.1.el5 available.
Nothing to do
[root@saint src]# yum install kernel-devel-`uname -r`
Loaded plugins: fastestmirror, protect-packages, smeserver
Loading mirror speeds from cached hostfile
 * base: mirror01.idc.hinet.net
 * smeaddons: distro.ibiblio.org
 * smeextras: distro.ibiblio.org
 * smeos: distro.ibiblio.org
 * smeupdates: distro.ibiblio.org
 * updates: mirror01.idc.hinet.net
Excluding Packages from CentOS - os
Finished
Excluding Packages from CentOS - updates
Finished
Setting up Install Process
No package kernel-devel-2.6.18-164.11.1.el5 available.
Nothing to do
[root@saint src]#
Regards
M0GLJ
......................................................
I am new to SAIL SME Server v8b6 and have been using SME for many years.
I have already done some research and only ask questions if I still can't work it out.

guest22

Re: New install on SME8b5 with latest updates
« Reply #5 on: July 10, 2010, 10:20:05 AM »
Did you do a 'yum update' first?

Offline Teviot

  • *
  • 610
  • +0/-0
Re: New install on SME8b5 with latest updates
« Reply #6 on: July 12, 2010, 04:30:41 AM »
Did you do a 'yum update' first?

Yes I did

I even did it a second time to make sure ... and unfortunately ... the same result
Regards
M0GLJ
......................................................
I am new to SAIL SME Server v8b6 and have been using SME for many years.
I have already done some research and only ask questions if I still can't work it out.

Offline Teviot

  • *
  • 610
  • +0/-0
Re: New install on SME8b5 with latest updates
« Reply #7 on: July 12, 2010, 04:45:06 AM »
A reboot seems to have fixed that problem

Now on with the rest of the install
Regards
M0GLJ
......................................................
I am new to SAIL SME Server v8b6 and have been using SME for many years.
I have already done some research and only ask questions if I still can't work it out.

Offline Teviot

  • *
  • 610
  • +0/-0
Re: New install on SME8b5 with latest updates
« Reply #8 on: July 12, 2010, 04:52:01 AM »
hmmmm ... next problem

Code: [Select]
[root@saint src]# cd /usr/src/dahdi-linux-complete-2.2.1-rc2+2.2.1-rc2
[root@saint dahdi-linux-complete-2.2.1-rc2+2.2.1-rc2]# ls -la
total 36
drwxrwxr-x 5 root root 4096 Dec 16  2009 .
drwxr-xr-x 9 root root 4096 Jul 12 12:48 ..
drwxrwxr-x 2 root root 4096 Dec 16  2009 build_tools
-rw-rw-r-- 1 root root 2741 Dec 16  2009 ChangeLog
drwxrwxr-x 6 root root 4096 Dec 16  2009 linux
-rw-rw-r-- 1 root root  778 Jul 22  2008 Makefile
-rw-rw-r-- 1 root root 1127 Jul  4  2008 README
drwxrwxr-x 7 root root 4096 Dec 16  2009 tools
-rw-rw-r-- 1 root root   20 Dec 16  2009 .version
[root@saint dahdi-linux-complete-2.2.1-rc2+2.2.1-rc2]# make
make -C linux all
make[1]: Entering directory `/usr/src/dahdi-linux-complete-2.2.1-rc2+2.2.1-rc2/linux'
make -C drivers/dahdi/firmware firmware-loaders
make[2]: Entering directory `/usr/src/dahdi-linux-complete-2.2.1-rc2+2.2.1-rc2/linux/drivers/dahdi/firmware'
Attempting to download dahdi-fwload-vpmadt032-1.20.0.tar.gz
--2010-07-12 12:51:18--  http://downloads.digium.com/pub/telephony/firmware/releases/dahdi-fwload-vpmadt032-1.20.0.tar.gz
Resolving downloads.digium.com... 76.164.171.232, 2001:470:e0d4::e8
Connecting to downloads.digium.com|76.164.171.232|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 146556 (143K) [application/x-gzip]
Saving to: `dahdi-fwload-vpmadt032-1.20.0.tar.gz'

100%[===================================================================================>] 146,556     81.6K/s   in 1.8s   

2010-07-12 12:51:21 (81.6 KB/s) - `dahdi-fwload-vpmadt032-1.20.0.tar.gz' saved [146556/146556]

make[2]: Leaving directory `/usr/src/dahdi-linux-complete-2.2.1-rc2+2.2.1-rc2/linux/drivers/dahdi/firmware'
You do not appear to have the sources for the 2.6.18-194.8.1.el5 kernel installed.
make[1]: *** [modules] Error 1
make[1]: Leaving directory `/usr/src/dahdi-linux-complete-2.2.1-rc2+2.2.1-rc2/linux'
make: *** [all] Error 2
[root@saint dahdi-linux-complete-2.2.1-rc2+2.2.1-rc2]#

Code: [Select]
[root@saint dahdi-linux-complete-2.2.1-rc2+2.2.1-rc2]# yum install kernel-devel-`uname -r`
Loaded plugins: fastestmirror, protect-packages, smeserver
Loading mirror speeds from cached hostfile
 * base: mirror.optus.net
 * smeaddons: distro.ibiblio.org
 * smeextras: distro.ibiblio.org
 * smeos: distro.ibiblio.org
 * smeupdates: distro.ibiblio.org
 * updates: mirror.optus.net
Excluding Packages from CentOS - os
Finished
Excluding Packages from CentOS - updates
Finished
Setting up Install Process
Package kernel-devel-2.6.18-194.8.1.el5.i686 already installed and latest version
Nothing to do
[root@saint dahdi-linux-complete-2.2.1-rc2+2.2.1-rc2]# yum install kernel-headers-`uname -r`
Loaded plugins: fastestmirror, protect-packages, smeserver
Loading mirror speeds from cached hostfile
 * base: mirror.optus.net
 * smeaddons: distro.ibiblio.org
 * smeextras: distro.ibiblio.org
 * smeos: distro.ibiblio.org
 * smeupdates: distro.ibiblio.org
 * updates: mirror.optus.net
Excluding Packages from CentOS - os
Finished
Excluding Packages from CentOS - updates
Finished
Setting up Install Process
Package kernel-headers-2.6.18-194.8.1.el5.i386 already installed and latest version
Nothing to do
[root@saint dahdi-linux-complete-2.2.1-rc2+2.2.1-rc2]#

trying another reboot to fix
« Last Edit: July 12, 2010, 05:09:13 AM by teviot »
Regards
M0GLJ
......................................................
I am new to SAIL SME Server v8b6 and have been using SME for many years.
I have already done some research and only ask questions if I still can't work it out.

guest22

Re: New install on SME8b5 with latest updates
« Reply #9 on: July 12, 2010, 08:26:16 AM »
Quote
kernel-headers will install in /usr/src/kernels/[kernel-version]
create a symbolic link named /usr/src/linux to the above directory

and this?

Offline Teviot

  • *
  • 610
  • +0/-0
Re: New install on SME8b5 with latest updates
« Reply #10 on: July 13, 2010, 08:10:19 AM »
Ok

I have running on SME 8.0b5 the following with error (I think) running with sail-3.0.0-36.noarch.rpm

The files I downloaded and installed Following the instructions found at http://sarkpbx.com/twiki/bin/view/Main/DocChapter03d making modifications to commands to suit files names, are below

asterisk-1.4.33.1.tar.gz
asterisk-addons-1.4.11.tar.gz
dahdi-linux-complete-current.tar.gz (dahdi-linux-complete-2.3.0.1+2.3.0)
libpri-1.4.11.3.tar.gz

I'm not sure but I think the below has an error in it

Code: [Select]
[root@saint ~]# asterisk -rvvv
Asterisk 1.4.33.1, Copyright (C) 1999 - 2010 Digium, Inc. and others.
Created by Mark Spencer <markster@digium.com>
Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details.
This is free software, with components licensed under the GNU General Public
License version 2 and other licenses; you are welcome to redistribute it under
certain conditions. Type 'core show license' for details.
=========================================================================
  == Parsing '/etc/asterisk/asterisk.conf': Found
Connected to Asterisk 1.4.33.1 currently running on saint (pid = 3229)
Verbosity is at least 3
    -- Remote UNIX connection
[Jul 13 16:04:44] NOTICE[4025]: cdr.c:1449 do_reload: CDR simple logging enabled.
[Jul 13 16:04:44] NOTICE[4025]: manager.c:3095 init_manager: Unable to open management configuration manager.conf.  Call management disabled.
  == RTP Allocating from port range 5000 -> 31000
Asterisk Event Logger restarted
Asterisk Queue Logger restarted
    -- Remote UNIX connection disconnected
saint*CLI>

Did I miss something in the initial install process and can I go back and pick up from a point and work though the process from there or is it a case of start again?
Regards
M0GLJ
......................................................
I am new to SAIL SME Server v8b6 and have been using SME for many years.
I have already done some research and only ask questions if I still can't work it out.

Offline Teviot

  • *
  • 610
  • +0/-0
Re: New install on SME8b5 with latest updates
« Reply #11 on: July 19, 2010, 12:31:02 AM »
Bump
Regards
M0GLJ
......................................................
I am new to SAIL SME Server v8b6 and have been using SME for many years.
I have already done some research and only ask questions if I still can't work it out.

Offline SARK devs

  • *****
  • 2,806
  • +1/-0
    • http://sarkpbx.com
Re: New install on SME8b5 with latest updates
« Reply #12 on: July 19, 2010, 09:25:31 AM »
What you've shown looks OK.

If you can make calls on it then it's good.

:)


Kind Regards

S