web statisticsweb stats

Business Phone Systems

Support Service-Disabled Veterans!
Discount software from Direct Deals
Previous Thread
Next Thread
Print Thread
Rate Thread
#472129 03/02/08 12:58 PM
Joined: Mar 2006
Posts: 83
Member
Member
Offline
Joined: Mar 2006
Posts: 83
Hi all.

Im having trouble installing asterisk and i could use a little help..well ok, a lot of help, but ill start off simple. Im using ubuntu gutsy and i think im having dependency issues but im not clear on which ones, nor even how to resolve the issues if i knew what they were. in short, imma noob stumbling my way through this.

Following the install guide at asterisk guru...

[QUOTE]Compiling Asterisk on most Linux distributions


Accomplish this by opening the folder in which the source codes were extracted (if you are using tarball files), or go to the /usr/src/asterisk folder (if using CVS server) to get the required packages.

To go to this directory, see example:

#cd /usr/src/asterisk


Once here, the final step is to compile:

Important: Follow this installation order: libpri, zaptel, asterisk

-Installing libpri

#cd /usr/src/asterisk/libpri
#make clean
#make
#make install[QUOTE/]


..i run into this error and im not sure what it means or what to do. Thanks for any and all help.

root@ubuntu:/usr/src/libpri-1.4.3# make clean
rm -f *.o *.so *.lo *.so.1 *.so.1.0
rm -f testprilib libpri.a libpri.so.1.0
rm -f pritest pridump
rm -f .depend
root@ubuntu:/usr/src/libpri-1.4.3# make
CC="gcc" ./mkdep -Wall -Werror -Wstrict-prototypes -Wmissing-prototypes -g -fPIC `ls *.c`
gcc -Wall -Werror -Wstrict-prototypes -Wmissing-prototypes -g -fPIC -c -o copy_string.o copy_string.c
copy_string.c:25:20: error: string.h: No such file or directory
copy_string.c:26:20: error: unistd.h: No such file or directory
copy_string.c:27:20: error: stdlib.h: No such file or directory
In file included from copy_string.c:31:
pri_internal.h:29:22: error: sys/time.h: No such file or directory
In file included from copy_string.c:31:
pri_internal.h:35: error: field ‘when’ has incomplete type
pri_internal.h:92: error: field ‘tv’ has incomplete type
make: *** [copy_string.o] Error 1


"It is what it is." R.R.
CTP, TCTS, StrataCIX
Atcom VoIP Phones
VoIP Demo

Best VoIP Phones Canada


Visit Atcom to get started with your new business VoIP phone system ASAP
Turn up is quick, painless, and can often be done same day.
Let us show you how to do VoIP right, resulting in crystal clear call quality and easy-to-use features that make everyone happy!
Proudly serving Canada from coast to coast.

Joined: Jun 2007
Posts: 2,106
Member
Member
Offline
Joined: Jun 2007
Posts: 2,106
You are using Ubuntu. I'd recommend you use a more server-oriented and/or full-featured linux distro.

However, the answer to your problem is, that you need to install the kernel headers for your distro. Google "Ubuntu kernel headers" and see what package it tells you to install. Probably something like "linux-headers-2.6-386" etc.

The issue is that ubuntu isn't made for people to be compiling/making software on, but downloading pre-made 'packages'.

Joined: Mar 2006
Posts: 83
Member
Member
Offline
Joined: Mar 2006
Posts: 83
hi there kumba. thanks for the help.

heres another question, when i try to use ./configure in the asterisk paths i get the 'cpp failed sanity check' error. i tried

sudo apt-get update && apt-get install gcc-c++

it does its thing but then when i try ./configure i still get the same error...installing gcc-c++ has solved that same error in the past but now is not. any ideas?

thanks again


"It is what it is." R.R.
CTP, TCTS, StrataCIX
Joined: Mar 2006
Posts: 83
Member
Member
Offline
Joined: Mar 2006
Posts: 83
so i attempted to install the linux headers and was told that the headers i have are the current version. is it that i need a different kernel perhaps?

i'd like to become more familiar other distros as well but my lack of familiarity with linux makes me think maybe i should stick with one thats nice and cushy like ubuntu for a while.


"It is what it is." R.R.
CTP, TCTS, StrataCIX
Joined: Feb 2008
Posts: 1
Member
Member
Offline
Joined: Feb 2008
Posts: 1
I think Kumba is right in recommending using a more server oriented distro. Just because Ubuntu makes for a friendly desktop, doesn't mean it's friendlier to people like us who need linux to do real work. smile

But there are guides available that may help you in installing on Ubuntu. This is the first that came up doing a google search "asterisk ubuntu"
https://www.voip-info.org/tiki-index.php?page=Asterisk+Linux+Ubuntu

I'm sure there are other guides available, and even looking at tutorials aimed at installing asterisk on other linux distros may prove helpful.

Otherwise, there are always prebuilt asterisk installs like Trixbox you may wanna mess with.


Link Copied to Clipboard
Newest Topics
New chat forum
by metelcom - 09/26/24 12:26 PM
CO assignment to station key
by SamL - 09/20/24 09:05 AM
SV9100 Yesterday's technology today...
by Carl Navarro - 09/19/24 08:29 AM
Forum Statistics
Forums84
Topics94,402
Posts639,370
Members49,808
Most Online5,661
May 23rd, 2018
Newest Members
DavidMirror, Si-14 LLC, SamL, xsh74, LukeE.
49,808 Registered Users
Top Posters(30 Days)
Toner 16
dexman 10
R4+Z 5
teleco 5
Who's Online Now
1 members (BobRobert), 152 guests, and 289 robots.
Key: Admin, Global Mod, Mod
Contact Us | Sponsored by Atcom: One of the best VoIP Phone Canada Suppliers for your business telephone system!| Terms of Service

Sundance Communications is not affiliated with any of the above manufacturers. Sundance Phone System Forums - VOIP & Cloud Phone Help
©Copyright Sundance Communications 1998 - 2024
Powered by UBB.threads™ PHP Forum Software 8.0.0