1st time installing asterisk

I am trying to install asterisk on a cent os 5.4 machine

following the Asterisk:the future of telephone 2nd edition book

I tried

[quote]# wget downloads.digium.com/pub/asteris … ent.tar.gz

wget downloads.digium.com/pub/libpri/ … ent.tar.gz

wget downloads.digium.com/pub/zaptel/ … ent.tar.gz[/quote]

which gave the following errors

[quote]# wget downloads.digium.com/pub/asteris … ent.tar.gz
–2010-05-06 00:30:24-- downloads.digium.com/pub/asteris … ent.tar.gz
Resolving downloads.digium.com… 32.1.4.112, 2001:470:e0d4::e8
Connecting to downloads.digium.com|32.1.4.112|:80… failed: Connection timed out.
Connecting to downloads.digium.com|2001:470:e0d4::e8|:80… failed: Network is unreachable.[/quote]

I tried following the instructions on asterisk.org/downloads/yum

but got these errors

I downloaded the latest tar files and copied them to my server

but got the following error during this step

make clean

./configure

make menuselect

make install

[quote]
make: *** [makeopts] Error 1
[root@linserver asterisk-1.6.2.7]# **** The configure script must be executed before running ‘make’.
-bash: agi: command not found[/quote]

What am I doing wrong?

I’m a bit confused (figure of speech, I’m actually “a lot” confused :stuck_out_tongue: ) as to what step of the process you’re actually on right now.

You started by trying to wget the tars for Asterisk 1.4. The “latest” version is 1.6, which it seems you acquired later somehow.

How? FTP client or something?

[quote]I tried

[quote] # wget downloads.digium.com/pub/asteris … ent.tar.gz
# wget downloads.digium.com/pub/libpri/ … ent.tar.gz
# wget downloads.digium.com/pub/zaptel/ … ent.tar.gz[/quote]
which gave the following errors

[quote] # wget downloads.digium.com/pub/asteris … ent.tar.gz
–2010-05-06 00:30:24-- downloads.digium.com/pub/asteris … ent.tar.gz
Resolving downloads.digium.com… 32.1.4.112, 2001:470:e0d4::e8
Connecting to downloads.digium.com|32.1.4.112|:80… failed: Connection timed out.
Connecting to downloads.digium.com|2001:470:e0d4::e8|:80… failed: Network is unreachable.[/quote][/quote]

Try “downloads.asterisk.org” instead of “downloads.digium.com.” The book is a bit outdated.

[quote]but got the following error during this step

[code]

make clean

./configure

make menuselect

make install[/code]

[quote] make: *** [makeopts] Error 1
[root@linserver asterisk-1.6.2.7]# **** The configure script must be executed before running ‘make’.
-bash: agi: command not found[/quote]

What am I doing wrong?[/quote]

Did the configure step actually execute?

[quote=“mket”]I’m a bit confused (figure of speech, I’m actually “a lot” confused :stuck_out_tongue: ) as to what step of the process you’re actually on right now.

You started by trying to wget the tars for Asterisk 1.4. The “latest” version is 1.6, which it seems you acquired later somehow.[/quote]

Yes I replaced it with the latest version number

Now that I have eliminated the wget by downloading the tar and ftp’ing the files to my server I am stuck at compiling where I get these errors

[root@linserver asterisk-1.6.2.7]# **** The configure script must be executed before running ‘make’.
-bash: agi: command not found

[quote=“mket”]

How? FTP client or something?[/quote]

I copied the tar using an ftp client to my server

[quote=“mket”]

[quote]I tried

[quote] # wget downloads.digium.com/pub/asteris … ent.tar.gz
# wget downloads.digium.com/pub/libpri/ … ent.tar.gz
# wget downloads.digium.com/pub/zaptel/ … ent.tar.gz[/quote]
which gave the following errors

[quote] # wget downloads.digium.com/pub/asteris … ent.tar.gz
–2010-05-06 00:30:24-- downloads.digium.com/pub/asteris … ent.tar.gz
Resolving downloads.digium.com… 32.1.4.112, 2001:470:e0d4::e8
Connecting to downloads.digium.com|32.1.4.112|:80… failed: Connection timed out.
Connecting to downloads.digium.com|2001:470:e0d4::e8|:80… failed: Network is unreachable.[/quote][/quote]

Try “downloads.asterisk.org” instead of “downloads.digium.com.” The book is a bit outdated.

[quote]but got the following error during this step

[code]

make clean

./configure

make menuselect

make install[/code]

[quote] make: *** [makeopts] Error 1
[root@linserver asterisk-1.6.2.7]# **** The configure script must be executed before running ‘make’.
-bash: agi: command not found[/quote]

What am I doing wrong?[/quote]

Did the configure step actually execute?[/quote]

I tried downloads.asterisk.org as well

Just to make it easier to understand

Here is what I tried

  1. wget downloads.asterisk.org/pub/telep … ent.tar.gz

which gave me

[quote]
[root@linserver asterisk]# wget downloads.asterisk.org/pub/telep … ent.tar.gz
–2010-05-06 02:36:01-- downloads.asterisk.org/pub/telep … ent.tar.gz
Resolving downloads.asterisk.org… 32.1.4.112, 2001:470:e0d4::e9
Connecting to downloads.asterisk.org|32.1.4.112|:80… failed: Connection timed out.
Connecting to downloads.asterisk.org|2001:470:e0d4::e9|:80… failed: Network is unreachable.[/quote]

  1. then I tried installing asterisk by following instructions on asterisk.org/downloads/yum
    i.e. adding repositories

which gave me following

[quote][root@linserver ~]# yum install asterisk16 asterisk16-configs asterisk16-voic
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile

  • addons: mirror.aarnet.edu.au
  • base: mirror.aarnet.edu.au
  • extras: mirror.aarnet.edu.au
  • updates: mirror.aarnet.edu.au
    packages.asterisk.org/centos/5/c … repomd.xml: [Errno 12] Timeout:
    Trying other mirror.
    mirror.aarnet.edu.au/pub/centos/ … repomd.xml: [Errno 12] Timeout:
    Trying other mirror.
    updates | 1.9 kB 00:00
    Reducing CentOS-5 Testing to included packages only
    Finished
    Setting up Install Process
    No package asterisk16-voic available.
    Resolving Dependencies
    –> Running transaction check
    —> Package asterisk16.i386 0:1.6.2.7-1_centos5 set to be updated
    –> Processing Dependency: asterisk16-dahdi = 1.6.2.7-1_centos5 for package: asterisk16
    –> Processing Dependency: asterisk16-doc = 1.6.2.7 for package: asterisk16
    –> Processing Dependency: asterisk16-core = 1.6.2.7-1_centos5 for package: asterisk16
    –> Processing Dependency: asterisk16-voicemail = 1.6.2.7-1_centos5 for package: asterisk16
    –> Processing Dependency: asterisk-sounds-core-en-gsm for package: asterisk16
    —> Package asterisk16-configs.i386 0:1.6.2.7-1_centos5 set to be updated
    –> Running transaction check
    —> Package asterisk-sounds-core-en-gsm.noarch 0:1.4.15-1_centos5 set to be updated
    —> Package asterisk16-core.i386 0:1.6.2.7-1_centos5 set to be updated
    —> Package asterisk16-dahdi.i386 0:1.6.2.7-1_centos5 set to be updated
    –> Processing Dependency: libopenr2 for package: asterisk16-dahdi
    –> Processing Dependency: libss7 for package: asterisk16-dahdi
    –> Processing Dependency: libtonezone for package: asterisk16-dahdi
    –> Processing Dependency: dahdi-linux for package: asterisk16-dahdi
    –> Processing Dependency: libpri for package: asterisk16-dahdi
    –> Processing Dependency: dahdi-linux-kmod for package: asterisk16-dahdi
    —> Package asterisk16-doc.i386 0:1.6.2.7-1_centos5 set to be updated
    —> Package asterisk16-voicemail.i386 0:1.6.2.7-1_centos5 set to be updated
    –> Running transaction check
    —> Package dahdi-linux.i386 0:2.3.0-68.el5 set to be updated
    –> Processing Dependency: dahdi-linux-kmdl-2.3.0-68.el5 for package: dahdi-linux
    —> Package kmod-dahdi-linux.i686 0:2.3.0-1_centos5.2.6.18_164.15.1.el5 set to be installed
    —> Package libopenr2.i386 0:1.2.0-1_centos5 set to be updated
    —> Package libpri.i386 1:1.4.10.2-25.el5 set to be updated
    —> Package libss7.i386 0:1.0.2-1.el5 set to be updated
    —> Package libtonezone.i386 0:2.3.0-1_centos5 set to be updated
    –> Running transaction check
    —> Package dahdi-linux-kmdl-2.6.18-194.el5.i686 0:2.3.0-68.el5 set to be updated
    atrpms/filelists_db | 1.0 MB 00:06
    –> Processing Dependency: /boot/vmlinuz-2.6.18-194.el5 for package: dahdi-linux-kmdl-2.6.18-194.el5
    –> Processing Dependency: /boot/vmlinuz-2.6.18-194.el5 for package: dahdi-linux-kmdl-2.6.18-194.el5
    –> Finished Dependency Resolution
    dahdi-linux-kmdl-2.6.18-194.el5-2.3.0-68.el5.i686 from atrpms has depsolving problems
    –> Missing Dependency: /boot/vmlinuz-2.6.18-194.el5 is needed by package dahdi-linux-kmdl-2.6.18-194.el5-2.3.0-68.el5.i686 (atrpms)
    Error: Missing Dependency: /boot/vmlinuz-2.6.18-194.el5 is needed by package dahdi-linux-kmdl-2.6.18-194.el5-2.3.0-68.el5.i686 (atrpms)
    You could try using --skip-broken to work around the problem
    You could try running: package-cleanup --problems
    package-cleanup --dupes
    rpm -Va --nofiles --nodigest
    The program package-cleanup is found in the yum-utils package.[/quote]
  1. then I downloaded tar and copied them to my server

cd /usr/src/asterisk/libpri-1.4.10.2

make clean

make

make install

the above worked fine

When I ran

cd /usr/src/asterisk/dahdi-linux-complete-2.2.1-rc2+2.2.1-rc2/

make all

I got

[quote][root@linserver dahdi-linux-complete-2.3.0+2.3.0]# make all
make -C linux all
make[1]: Entering directory /usr/src/asterisk/dahdi-linux-complete-2.3.0+2.3.0/linux' make -C drivers/dahdi/firmware firmware-loaders make[2]: Entering directory/usr/src/asterisk/dahdi-linux-complete-2.3.0+2.3.0/linux/drivers/dahdi/firmware’
Attempting to download dahdi-fwload-vpmadt032-1.20.0.tar.gz
–2010-05-06 02:50:08-- downloads.digium.com/pub/telepho … 0.0.tar.gz
Resolving downloads.digium.com… 32.1.4.112, 2001:470:e0d4::e8
Connecting to downloads.digium.com|32.1.4.112|:80… failed: Connection timed out.
Connecting to downloads.digium.com|2001:470:e0d4::e8|:80… failed: Network is unreachable.
make[2]: *** [dahdi-fwload-vpmadt032-1.20.0.tar.gz] Error 1
make[2]: Leaving directory /usr/src/asterisk/dahdi-linux-complete-2.3.0+2.3.0/linux/drivers/dahdi/firmware' make[1]: *** [firmware-loaders] Error 2 make[1]: Leaving directory/usr/src/asterisk/dahdi-linux-complete-2.3.0+2.3.0/linux’
make: *** [all] Error 2[/quote]

this is where I am stuck

try downloading from here:

wget downloads.asterisk.org/pub/telep … ent.tar.gz
wget downloads.asterisk.org/pub/telep … ent.tar.gz
wget downloads.asterisk.org/pub/telep … 0.2.tar.gz
wget downloads.asterisk.org/pub/telep … ent.tar.gz
wget downloads.asterisk.org/pub/telep … ent.tar.gz

Check you have dependencies installed before compile: kernel-devel libxml2 libxml2-devel libtiff libtiff-devel lame httpd mysql mysql-devel mysql-server php php-pear php-mysql php-gd openssl openssl-devel perl bison ncurses-devel audiofile-devel curl sox gcc newt-devel libusb-devel glibc-devel zlib-devel

Untar all (if you have previuos version delete it), then cd to dahdi-linux-$version and type:

make make install

then cd to dahdi-tools-$version and type:

./configure make make install make config

then cd to libpri and type:

./configure make make install

then cd to asterisk-1.6.$version and type

./configure make make install make samples make config

then cd to asterisk-adons-$version and type

./configure make make install make samples

If you got errors please show us

I have downloaded the tar files to another pc and ftp’ed the files to the linux server

then I untared all these files and followed this step you mentioned

This is the error I get

[quote][root@linserver dahdi-linux-complete-2.3.0+2.3.0]# make
make -C linux all
make[1]: Entering directory /usr/src/asterisk/dahdi-linux-complete-2.3.0+2.3.0/linux' make -C drivers/dahdi/firmware firmware-loaders make[2]: Entering directory/usr/src/asterisk/dahdi-linux-complete-2.3.0+2.3.0/linux/drivers/dahdi/firmware’
Attempting to download dahdi-fwload-vpmadt032-1.20.0.tar.gz
–2010-05-06 11:48:00-- downloads.digium.com/pub/telepho … 0.0.tar.gz
Resolving downloads.digium.com… 32.1.4.112, 2001:470:e0d4::e8
Connecting to downloads.digium.com|32.1.4.112|:80… make[2]: *** wait: No child processes. Stop.
make[2]: *** Waiting for unfinished jobs…
make[2]: *** wait: No child processes. Stop.
make[1]: *** wait: No child processes. Stop.
make[1]: *** Waiting for unfinished jobs…
make[1]: *** wait: No child processes. Stop.
make: *** wait: No child processes. Stop.
make: *** Waiting for unfinished jobs…
make: *** wait: No child processes. Stop.
[root@linserver dahdi-linux-complete-2.3.0+2.3.0]# ./configure
-bash: ./configure: No such file or directory
[root@linserver dahdi-linux-complete-2.3.0+2.3.0]# pwd
/usr/src/asterisk/dahdi-linux-complete-2.3.0+2.3.0
[root@linserver dahdi-linux-complete-2.3.0+2.3.0]# ls
build_tools ChangeLog linux Makefile README tools
[root@linserver dahdi-linux-complete-2.3.0+2.3.0]# make
make -C linux all
make[1]: Entering directory /usr/src/asterisk/dahdi-linux-complete-2.3.0+2.3.0/linux' make -C drivers/dahdi/firmware firmware-loaders make[2]: Entering directory/usr/src/asterisk/dahdi-linux-complete-2.3.0+2.3.0/linux/drivers/dahdi/firmware’
Attempting to download dahdi-fwload-vpmadt032-1.20.0.tar.gz
–2010-05-06 11:51:35-- downloads.digium.com/pub/telepho … 0.0.tar.gz
Resolving downloads.digium.com… 32.1.4.112
Connecting to downloads.digium.com|32.1.4.112|:80… failed: Connection timed out.
Retrying.

–2010-05-06 11:54:45-- (try: 2) downloads.digium.com/pub/telepho … 0.0.tar.gz
Connecting to downloads.digium.com|32.1.4.112|:80… failed: Connection timed out.
Retrying.

–2010-05-06 11:57:56-- (try: 3) downloads.digium.com/pub/telepho … 0.0.tar.gz
Connecting to downloads.digium.com|32.1.4.112|:80… failed: Connection timed out.
Retrying.

–2010-05-06 12:01:08-- (try: 4) downloads.digium.com/pub/telepho … 0.0.tar.gz
Connecting to downloads.digium.com|32.1.4.112|:80… failed: Connection timed out.
Retrying.

–2010-05-06 12:04:21-- (try: 5) downloads.digium.com/pub/telepho … 0.0.tar.gz
Connecting to downloads.digium.com|32.1.4.112|:80… failed: Connection timed out.
Retrying.

–2010-05-06 12:07:35-- (try: 6) downloads.digium.com/pub/telepho … 0.0.tar.gz
Connecting to downloads.digium.com|32.1.4.112|:80… failed: Connection timed out.
Retrying.

–2010-05-06 12:10:50-- (try: 7) downloads.digium.com/pub/telepho … 0.0.tar.gz
Connecting to downloads.digium.com|32.1.4.112|:80… failed: Connection timed out.
Retrying.

–2010-05-06 12:14:06-- (try: 8) downloads.digium.com/pub/telepho … 0.0.tar.gz
Connecting to downloads.digium.com|32.1.4.112|:80… failed: Connection timed out.
Retrying.

–2010-05-06 12:17:23-- (try: 9) downloads.digium.com/pub/telepho … 0.0.tar.gz
Connecting to downloads.digium.com|32.1.4.112|:80… failed: Connection timed out.
Retrying.

–2010-05-06 12:20:41-- (try:10) downloads.digium.com/pub/telepho … 0.0.tar.gz
Connecting to downloads.digium.com|32.1.4.112|:80… failed: Connection timed out.
Retrying.

–2010-05-06 12:24:00-- (try:11) downloads.digium.com/pub/telepho … 0.0.tar.gz
Connecting to downloads.digium.com|32.1.4.112|:80… failed: Connection timed out.
Retrying.

–2010-05-06 12:27:19-- (try:12) downloads.digium.com/pub/telepho … 0.0.tar.gz
Connecting to downloads.digium.com|32.1.4.112|:80… failed: Connection timed out.
Retrying.

–2010-05-06 12:30:38-- (try:13) downloads.digium.com/pub/telepho … 0.0.tar.gz
Connecting to downloads.digium.com|32.1.4.112|:80… failed: Connection timed out.
Retrying.

–2010-05-06 12:33:57-- (try:14) downloads.digium.com/pub/telepho … 0.0.tar.gz
Connecting to downloads.digium.com|32.1.4.112|:80… failed: Connection timed out.
Retrying.

–2010-05-06 12:37:16-- (try:15) downloads.digium.com/pub/telepho … 0.0.tar.gz
Connecting to downloads.digium.com|32.1.4.112|:80… failed: Connection timed out.
Retrying.

–2010-05-06 12:40:35-- (try:16) downloads.digium.com/pub/telepho … 0.0.tar.gz
Connecting to downloads.digium.com|32.1.4.112|:80… failed: Connection timed out.
Retrying.

–2010-05-06 12:43:54-- (try:17) downloads.digium.com/pub/telepho … 0.0.tar.gz
Connecting to downloads.digium.com|32.1.4.112|:80… failed: Connection timed out.
Retrying.

–2010-05-06 12:47:13-- (try:18) downloads.digium.com/pub/telepho … 0.0.tar.gz
Connecting to downloads.digium.com|32.1.4.112|:80… failed: Connection timed out.
Retrying.

–2010-05-06 12:50:31-- (try:19) downloads.digium.com/pub/telepho … 0.0.tar.gz
Connecting to downloads.digium.com|32.1.4.112|:80… failed: Connection timed out.
Retrying.

–2010-05-06 12:53:50-- (try:20) downloads.digium.com/pub/telepho … 0.0.tar.gz
Connecting to downloads.digium.com|32.1.4.112|:80… failed: Connection timed out.
Giving up.

make[2]: *** [dahdi-fwload-vpmadt032-1.20.0.tar.gz] Error 1
make[2]: Leaving directory /usr/src/asterisk/dahdi-linux-complete-2.3.0+2.3.0/linux/drivers/dahdi/firmware' make[1]: *** [firmware-loaders] Error 2 make[1]: Leaving directory/usr/src/asterisk/dahdi-linux-complete-2.3.0+2.3.0/linux’
make: *** [all] Error 2[/quote]

It seems like you’re having some kind of network issue. What happens when you try to ping downloads.asterisk.org?

ping worked fine

[quote][root@linserver ~]# ping downloads.asterisk.org
PING downloads.asterisk.org (76.164.171.233) 56(84) bytes of data.
64 bytes from downloads.asterisk.org (76.164.171.233): icmp_seq=1 ttl=53 time=244 ms
64 bytes from downloads.asterisk.org (76.164.171.233): icmp_seq=2 ttl=53 time=243 ms
64 bytes from downloads.asterisk.org (76.164.171.233): icmp_seq=3 ttl=53 time=245 ms
64 bytes from downloads.asterisk.org (76.164.171.233): icmp_seq=4 ttl=53 time=247 ms

downloads.asterisk.org ping statistics —
4 packets transmitted, 4 received, 0% packet loss, time 3002ms
rtt min/avg/max/mdev = 243.761/245.345/247.649/1.557 ms[/quote]

I would assume that he has a firewall that either doesn’t allow web access, or only allows it through a proxy.

wget can be configured to work through a proxy, although I don’t think it supports Microsoft Authentication.

No I do not have any firewall or proxy

the server is connected to the internet directly via a adsl2 router

Are you using a consumer ISP? Maybe they are firewalling port 80 to force you to use their proxy.

No I used to run a webserver on this machine and that ran fine

Something that looks odd to me…

The wget you did with downloads.digium.com shows IP address of 32.1.4.112 which reports to be for AT&T in FL. Attempting to connect to the site via web browser at 32.1.4.112 fails.

When you did the ping of downloads.digium.com it shows the ip address of 76.164.171.233 which is for API Digital the ones donating the bandwidth for that site. Attempting to connect to the site via web browser at 76.164.171.233 is successful.

When I did a wget for the file it worked and used the 76.164.171.232 ip address. My multiple attempts to resolve the hostname downloads.digium.com always return the 76.164.171.23X ip addresses.