In this tutorial we are going to explain you how to compile Asterisk on Slackware from source code.
There are existing Slackware packages, but they are not officially supported in the distribution. They could be downloaded from here (Asterisk version 1.2.1)
We are using test machine with installed Slackware 10.0 on it.
1) Requirements
All the packages you need could be found on the Slackware install disks.
To manage the packages use the native Slackware tools pkgtool and installpkg.
Standard compilation tools:
* gcc
* make
* diffutils
* binutils
Required packages for the Asterisk compilation:
* Linux kernel header files.
* bison
* ncurses
* zlib
* openssl
* subversion (optional: if you want the latest source code) - this is missing on Slackware 10.1 and the older versions.
If you need some extra packages they could be obtained from The Slackware website -> section Packages, or you could search them by name - here.
1.1) Subversion setup.
If you do not have an installed Subversion, download the Slackware package from here.
Subversion-1.2.3 requires glibc >= 2.3.3.
If your Slackware is version 10.1 or greater this dependency is satisfied. If not, you can use glibc-2.3.4-i486-1 or glibc-2.3.6-i486-1
In order to install a Subversion and/or glibc use installpkg:
# installpkg subversion-1.2.3-i486-1.tgz
# installpkg glibc-2.3.4-i486-1.tgz or glibc-2.3.6-i486-1.tgz
2) Getting Asterisk
Download tarballs
At the time of this writing the official releases are:
The sources codes could be obtained also from the SVN repository. Follow the steps below:
# mkdir /usr/src/asterisk
# cd /usr/src/asterisk
For the latest SVN Head version:
# svn checkout http://svn.digium.com/svn/libpri/trunk libpri
# svn checkout http://svn.digium.com/svn/zaptel/trunk zaptel
# svn checkout http://svn.digium.com/svn/asterisk/trunk asterisk
For the latest stable version 1.2:
# svn checkout http://svn.digium.com/svn/libpri/branches/1.2 libpri-1.2
# svn checkout http://svn.digium.com/svn/zaptel/branches/1.2 zaptel-1.2
# svn checkout http://svn.digium.com/svn/asterisk/branches/1.2 asterisk-1.2
3) Compiling Asterisk
Please, follow the commands and read carefully the hints. Also it is a good idea to take a look at all the READMEs in each package directory.
If you choose to download the tarballs, then create the following directory: /usr/src/asterisk
# mkdir /usr/src/asterisk
and put the tarballs inside. Then decompress the archives by using the following commands:
# tar zxvf package_name-version.tar.gz
IMPORTANT: Follow this installation order: 1.Libpri, 2.Zaptel and 3.Asterisk.
First compile the libpri:
# cd /usr/src/asterisk/libpri-1.2.2
# make clean
# make
# make install
Continue with the zaptel package:
# cd /usr/src/asterisk/zaptel-1.2.3
# make clean
# make linux26 (optional) - if you are using kernel 2.6
# make
# make install
Finally compile the Asterisk
If you want to optimize the compilation of Asterisk, take a look at the top of the Makefile.
Go to the asterisk source directory - # cd /usr/src/asterisk/asterisk-1.2.4
If you are using VIA motherboards, Asterisk may detect your processor as i686 instead of i586. In this case you must to edit the Makefile. Remove the comment (#) from the following PROC line:
# Pentium & VIA processors optimize
# PROC=i586
Now execute the following commands:
# make clean
# make mpg123 (Note: Install only the mpg123 packages which are coming with the Asterisk package! (ver. 0.59r))
# make
# make install
If this is your first installation you have to execute the 'make samples' command in order to install the sample configuration files.
There is a startup script for Slackware. You could copy it into /etc/rc.d :
In order to get the preferable Idefisk version, please follow this link.
For the installation, use a directory, where you have the rights to write!.
Inside, create a subdirectory. For example we will use the home directory of a regular Linux user.
$ cd ~
$ mkdir idefisk - put the Idefisk archive inside
$ tar zxvf idefisk.tar.gz
$ sudo cp libiaxclient.so /usr/lib
or
$ su < type your root password >
# cp libiaxclient.so /usr/lib - you may copy libiaxclient.so in /usr/local/lib if you prefer
# ldconfig
# exit
$ ./idefisk
4.2) Possible errors and solutions
4.2.1) If you get an error like:
"libexpat.so.1: No such file or directory"
Please check for the libexpat in the /usr/lib directory
If you do not have the libexpat.so.<some version> file, try to install "again" the expat.
Next step: create a symlink named libexpat.so.1 which has to point to the libexpat.so.0.5.0 file (the version numbers may be different). To do this use:
# cd /usr/lib
# ln -s libexpat.so.0.5.0 libexpat.so.1
4.2.2) Audio devices errors
or
Check permissions. Use:
ls -l <device name>, /dev/dsp
or
/dev/mixer
To set thepermissions of your sound devices use:
# chmod 660 /dev/dsp
or
# chmod 666 /dev/dsp
For the mixer device replace /dev/dsp with /dev/mixer
JohnnyBum (iuliya933sysoeva1995 at mail dot ru) 24 November 2022 22:50:27 O’Malley, however, also rocked the Russian with several shots, and opened a nasty gash near Yan’s right eye with a particularly vicious knee strike.
The eye-catching O’Malley – who has suffered just one defeat in 18 professional outings – could now be poised for a shot at current 135lbs ruler Aljamain Sterling.
https://xn-----6kcbbpndrxiclf3b2afa4q.com/
Sterling defended his title with a one-sided TKO victory over two-time former champion TJ Dillashaw in their co-main event in Abu Dhabi.
Yan, 29, will have to rebuild after losing a second successive contest, having been on the wrong side of another contentious judging decision in his title rematch with Sterling at UFC 273 in April.
[url=https://xn----7sbblj1agl4ba4i.com/]новая ссылка на Мега[/url]
Gnews Sports (gnewssports22 at gmail dot com) 16 June 2022 22:49:13 gnewssports is a news sports website where you can find all the news sports and game for 24 hours. Any news sports link, related post can also be found here. You can find any news link on sports news easily. Your News Hub The are is a Channel Providing You News gnewssports.com
GnewsSports
https://www.gnewssports.com/
Carlo (zt4gp71xn at gmail dot com) 19 December 2015 15:16:37 Upon going to about:plugins, it seems with new Dev version, I now have two<a href="http://domvprww.com"> vriesons</a> of flash - 10,3,181,22 and 10,3,181,14. My logic could be completely wrong, but I disabled the older of the two<a href="http://domvprww.com"> vriesons</a> and now flash works fine without crashing. It seems to me that this dev version has seems to have two<a href="http://domvprww.com"> vriesons</a> of the same shockwave flash enabled at the same time and they are causing a conflict, thereby causing flash to crash. Like I mentioned earlier, my logic could be completely wrong. However, this solution does correct the problem of flash crashing 100% of the time.
Ujjwal (ujjwal_iem at rediffmail dot com) 22 January 2009 20:00:01 How can I get Grandstream Budge Tone hardphone
in India?what is its market price??
sean (sean at notamused dot org) 03 December 2007 07:26:50 thank you for making these packages. i still use them. any chance you can create asterisk 1.4 packages and dependencies for linuxpackages.net ?
miefu (miefu at yourfu dot tv) 03 October 2006 06:05:12 great thank you.
Xytek (xytek at hotmail dot com) 29 April 2006 18:26:21 Great write up. Glad we got some Slackware notes out there. Always seems it's the "missing" distro when i would say a large community out there runs Slackware, home and production wise.
KUDOS!