SearchSearch  Log in to check your private messagesLog in to check your private messages  recent posts Recent Posts
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Author Message
jerfOffline



Joined: Aug 03, 2007
Posts: 13

Status: Offline
Posted: Mar 02, 2008 - 06:01 AM Reply with quote Back to top
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.

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


..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
View user's profile Send private message
rgowerOffline
Site Admin


Joined: Jan 21, 2005
Posts: 1344
Location: Wales
Status: Offline
Posted: Mar 02, 2008 - 10:58 AM Reply with quote Back to top
I suspect you have not got all the relevant dependent libraries installed. Check for:
gcc, glibc-kernheaders, cpp, binutils, glibc-headers, glibc-devel, bison and open ssl.

Also remember you must install as a root user
View user's profile Send private message
jerfOffline



Joined: Aug 03, 2007
Posts: 13

Status: Offline
Posted: Mar 03, 2008 - 01:14 AM Reply with quote Back to top
im not sure how to check whether i have them or not. this is a basic question im sure, but lets say i know i have a file somewhere but im not sure what path its on. what command can i use to get path info? for example lets say i downloaded libpri-1.x.x into /usr/src/asterisk but didnt know thats where it was. how can find out the path i need from my home path?

im using ubuntu gutsy.

thanks again.
View user's profile Send private message
jerfOffline



Joined: Aug 03, 2007
Posts: 13

Status: Offline
Posted: Mar 30, 2008 - 10:34 PM Reply with quote Back to top
To answer my own question;

to find a file, one good way is

find / -name whateverimlookingfor

or

whereis whateverimlookingfor

Those seem to work pretty good Smile
View user's profile Send private message


View previous topic Printable version Log in to check your private messages View next topic

Post new topic   Reply to topic
Forum Rules and Guidelines | About VoIP User | Privacy Policy


All logos and trademarks in this site are property of their respective owner.
Comments and posts are property of the poster, all the rest (c) 2003-2008 VoIP User Limited.

VoIP User Limited is incorporated in England and Wales under Company Number 6694577.

No part of this site may be reproduced without our prior consent.