My output after untar …
grzegorz@grzegorz-desktop:/usr/local/src$ ls
asterisk-16.1.0 dahdi-linux-complete-3.0.0+3.0.0 libpri-1.6.0
asterisk-16-current.tar.gz dahdi-linux-complete-current.tar.gz libpri-current.tar.gz
grzegorz@grzegorz-desktop:/usr/local/src$
My output after installing DAHDI :
grzegorz@grzegorz-desktop:/usr/local/src/dahdi-linux-complete-3.0.0+3.0.0$ sudo make install
make -C linux all
make[1]: Entering directory ‘/usr/local/src/dahdi-linux-complete-3.0.0+3.0.0/linux’
make -C drivers/dahdi/firmware firmware-loaders
make[2]: Entering directory ‘/usr/local/src/dahdi-linux-complete-3.0.0+3.0.0/linux/drivers/dahdi/firmware’
make[2]: Leaving directory ‘/usr/local/src/dahdi-linux-complete-3.0.0+3.0.0/linux/drivers/dahdi/firmware’
make -C /lib/modules/4.15.0-29-generic/build SUBDIRS=/usr/local/src/dahdi-linux-complete-3.0.0+3.0.0/linux/drivers/dahdi DAHDI_INCLUDE=/usr/local/src/dahdi-linux-complete-3.0.0+3.0.0/linux/include DAHDI_MODULES_EXTRA=" " HOTPLUG_FIRMWARE=yes modules DAHDI_BUILD_ALL=m
make[2]: Entering directory ‘/usr/src/linux-headers-4.15.0-29-generic’
Building modules, stage 2.
MODPOST 28 modules
WARNING: could not find /usr/local/src/dahdi-linux-complete-3.0.0+3.0.0/linux/drivers/dahdi/vpmadt032_loader/.vpmadt032_x86_32.o.cmd for /usr/local/src/dahdi-linux-complete-3.0.0+3.0.0/linux/drivers/dahdi/vpmadt032_loader/vpmadt032_x86_32.o
make[2]: Leaving directory ‘/usr/src/linux-headers-4.15.0-29-generic’
make[1]: Leaving directory ‘/usr/local/src/dahdi-linux-complete-3.0.0+3.0.0/linux’
(cd tools && autoreconf -i && [ -f config.status ] || ./configure --with-dahdi=…/linux)
/bin/sh: 1: autoreconf: not found
/bin/sh: 1: ./configure: not found
Makefile:9: recipe for target ‘all’ failed
make: *** [all] Error 127
grzegorz@grzegorz-desktop:/usr/local/src/dahdi-linux-complete-3.0.0+3.0.0$ sudo make config
make: Nothing to be done for ‘config’.
grzegorz@grzegorz-desktop:/usr/local/src/dahdi-linux-complete-3.0.0+3.0.0$
My output after instaling LIBPRI :
grzegorz@grzegorz-desktop:/usr/local/src/libpri-1.6.0$ sudo make install
mkdir -p /usr/lib
mkdir -p /usr/include
install -m 644 libpri.h /usr/include
install -m 755 libpri.so.1.4 /usr/lib #if [ -x /usr/sbin/sestatus ] && ( /usr/sbin/sestatus | grep “SELinux status:” | grep -q “enabled”); then /sbin/restorecon -v /usr/lib/libpri.so.1.4; fi
( cd /usr/lib ; ln -sf libpri.so.1.4 libpri.so)
install -m 644 libpri.a /usr/lib
if test (id -u) = 0; then /sbin/ldconfig -n /usr/lib; fi
grzegorz@grzegorz-desktop:/usr/local/src/libpri-1.6.0
And last output after installing ASTERISK :
grzegorz@grzegorz-desktop:/usr/local/src/asterisk-16.1.0$ make
Makefile:109: makeopts: No such file or directory
**** The configure script must be executed before running ‘make’.
**** Please run “./configure”.
grzegorz@grzegorz-desktop:/usr/local/src/asterisk-16.1.0$ sudo ./configure
checking build system type… i686-pc-linux-gnu
checking host system type… i686-pc-linux-gnu
checking for gcc… gcc
…
checking for pkg-config… /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0… yes
checking for LIBEDIT… no
checking for history_init in -ledit… no
configure: error: *** Please install the ‘libedit’ development package.
grzegorz@grzegorz-desktop:/usr/local/src/asterisk-16.1.0$
Where could I find this library “libedit” ?
Are my all steps correct?
What have I improve during instalation of packets?
You do not have the required packages or libraries installed to build Asterisk[1]. I’d suggest using the install_prereq script (located in contrib/scripts) to install the dependencies.
Thank’s for your help, but i still have problem with correct installing of Asterisk …
Below are my steps …
grzegorz@grzegorz-desktop:/usr/local/src/asterisk-16.1.0/contrib/scripts$ sudo ./install_prereq install
[sudo] password for grzegorz:
Czytanie list pakietów… Gotowe
Budowanie drzewa zależności
Odczyt informacji o stanie… Gotowe
Pakiet aptitude nie ma dostępnej wersji, ale odnosi się do niego inny pakiet.
Zazwyczaj oznacza to, że pakietu brakuje, został zastąpiony przez inny
pakiet lub nie jest dostępny przy pomocy obecnie ustawionych źródeł.
E: Pakiet aptitude nie ma kandydata do instalacji
grzegorz@grzegorz-desktop:/usr/local/src/asterisk-16.1.0/contrib/scripts$ sudo ./install_prereq install-unpackaged
*** Installing NBS (Network Broadcast Sound) ***
./install_prereq: 337: ./install_prereq: svn: not found
grzegorz@grzegorz-desktop:/usr/local/src/asterisk-16.1.0/contrib/scripts$
grzegorz@grzegorz-desktop:/usr/local/src/asterisk-16.1.0$ sudo ./configure
checking build system type… i686-pc-linux-gnu
checking host system type… i686-pc-linux-gnu
checking for gcc… gcc
checking whether the C compiler works… yes
checking for C compiler default output file name… a.out
checking for suffix of executables…
checking whether we are cross compiling… no
checking for suffix of object files… o
checking whether we are using the GNU C compiler… yes
checking whether gcc accepts -g… yes
checking for gcc option to accept ISO C89… none needed
checking how to run the C preprocessor… gcc -E
checking for grep that handles long lines and -e… /bin/grep
checking for egrep… /bin/grep -E
checking for ANSI C header files… yes
checking for sys/types.h… yes
checking for sys/stat.h… yes
checking for stdlib.h… yes
checking for string.h… yes
checking for memory.h… yes
checking for strings.h… yes
checking for inttypes.h… yes
checking for stdint.h… yes
checking for unistd.h… yes
checking minix/config.h usability… no
checking minix/config.h presence… no
checking for minix/config.h… no
checking whether it is safe to define EXTENSIONS… yes
checking whether char is unsigned… no
checking for uname… /bin/uname
checking for g++… g++
checking whether we are using the GNU C++ compiler… yes
checking whether g++ accepts -g… yes
checking how to run the C preprocessor… gcc -E
checking how to run the C++ preprocessor… g++ -E
checking for a sed that does not truncate output… /bin/sed
checking for egrep… grep -E
checking for ld used by gcc… /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld… yes
checking for gawk… no
checking for mawk… mawk
checking for a BSD-compatible install… /usr/bin/install -c
checking whether ln -s works… yes
checking for ranlib… ranlib
checking for GNU make… make
checking for egrep… (cached) /bin/grep -E
checking for strip… strip
checking for ar… ar
checking for bison… :
checking for cmp… /usr/bin/cmp
checking for cat… /bin/cat
checking for cut… /usr/bin/cut
checking for flex… :
checking for grep… (cached) /bin/grep
checking for python… /usr/bin/python
checking for find… /usr/bin/find
checking for compress… :
checking for basename… /usr/bin/basename
checking for dirname… /usr/bin/dirname
checking for sh… /bin/bash
checking for ln… /bin/ln
checking for doxygen… :
checking for dot… :
checking for wget… /usr/bin/wget
checking for curl… :
checking for rubber… :
checking for catdvi… :
checking for kpsewhich… :
checking for xmllint… :
checking for xmlstarlet… no
checking for xml… no
checking for bash… /bin/bash
checking for git… :
checking for alembic… :
checking for bzip2… /bin/bzip2
checking for tar… /bin/tar
checking for patch… /usr/bin/patch
checking for sed… (cached) /bin/sed
checking for nm… /usr/bin/nm
checking for ldconfig… /sbin/ldconfig
checking for sha1sum… /usr/bin/sha1sum
checking for openssl… /usr/bin/openssl
checking for bison that supports parse-param…
checking for soxmix… no
checking for md5… no
checking for md5sum… md5sum
checking for a sed that does not truncate output… (cached) /bin/sed
checking whether gcc is Clang… no
checking whether pthreads work with -pthread… yes
checking for joinable pthread attribute… PTHREAD_CREATE_JOINABLE
checking whether more special flags are required for pthreads… no
checking for PTHREAD_PRIO_INHERIT… yes
checking for RAII support… checking for gcc -fnested-functions… no
checking for clang strsep/strcmp optimization… no
checking for embedded pjproject (may have to download)… configuring
checking for bundled pjproject… yes
checking for gawk… (cached) mawk
checking for curl-config… no
checking whether libcurl is usable… no
checking for size_t… yes
checking for working alloca.h… yes
checking for alloca… yes
checking for dirent.h that defines DIR… yes
checking for library containing opendir… none required
checking for ANSI C header files… (cached) yes
checking for sys/wait.h that is POSIX.1 compatible… yes
checking for sys/types.h… (cached) yes
checking for netinet/in.h… yes
checking for arpa/nameser.h… yes
checking for netdb.h… yes
checking for resolv.h… yes
checking for arpa/nameser.h… (cached) yes
checking assert.h usability… yes
checking assert.h presence… yes
checking for assert.h… yes
checking ctype.h usability… yes
checking ctype.h presence… yes
checking for ctype.h… yes
checking dlfcn.h usability… yes
checking dlfcn.h presence… yes
checking for dlfcn.h… yes
checking errno.h usability… yes
checking errno.h presence… yes
checking for errno.h… yes
checking fcntl.h usability… yes
checking fcntl.h presence… yes
checking for fcntl.h… yes
checking float.h usability… yes
checking float.h presence… yes
checking for float.h… yes
checking grp.h usability… yes
checking grp.h presence… yes
checking for grp.h… yes
checking for inttypes.h… (cached) yes
checking limits.h usability… yes
checking limits.h presence… yes
checking for limits.h… yes
checking locale.h usability… yes
checking locale.h presence… yes
checking for locale.h… yes
checking math.h usability… yes
checking math.h presence… yes
checking for math.h… yes
checking pwd.h usability… yes
checking pwd.h presence… yes
checking for pwd.h… yes
checking for netinet/in.h… (cached) yes
checking regex.h usability… yes
checking regex.h presence… yes
checking for regex.h… yes
checking sched.h usability… yes
checking sched.h presence… yes
checking for sched.h… yes
checking stdarg.h usability… yes
checking stdarg.h presence… yes
checking for stdarg.h… yes
checking for stdint.h… (cached) yes
checking stdio.h usability… yes
checking stdio.h presence… yes
checking for stdio.h… yes
checking for stdlib.h… (cached) yes
checking for string.h… (cached) yes
checking syslog.h usability… yes
checking syslog.h presence… yes
checking for syslog.h… yes
checking sys/file.h usability… yes
checking sys/file.h presence… yes
checking for sys/file.h… yes
checking sys/ioctl.h usability… yes
checking sys/ioctl.h presence… yes
checking for sys/ioctl.h… yes
checking sys/param.h usability… yes
checking sys/param.h presence… yes
checking for sys/param.h… yes
checking sys/resource.h usability… yes
checking sys/resource.h presence… yes
checking for sys/resource.h… yes
checking sys/socket.h usability… yes
checking sys/socket.h presence… yes
checking for sys/socket.h… yes
checking for sys/stat.h… (cached) yes
checking sys/time.h usability… yes
checking sys/time.h presence… yes
checking for sys/time.h… yes
checking for sys/types.h… (cached) yes
checking sys/un.h usability… yes
checking sys/un.h presence… yes
checking for sys/un.h… yes
checking termios.h usability… yes
checking termios.h presence… yes
checking for termios.h… yes
checking time.h usability… yes
checking time.h presence… yes
checking for time.h… yes
checking for unistd.h… (cached) yes
checking arpa/inet.h usability… yes
checking arpa/inet.h presence… yes
checking for arpa/inet.h… yes
checking libintl.h usability… yes
checking libintl.h presence… yes
checking for libintl.h… yes
checking malloc.h usability… yes
checking malloc.h presence… yes
checking for malloc.h… yes
checking for netdb.h… (cached) yes
checking stddef.h usability… yes
checking stddef.h presence… yes
checking for stddef.h… yes
checking for strings.h… (cached) yes
checking sys/event.h usability… no
checking sys/event.h presence… no
checking for sys/event.h… no
checking utime.h usability… yes
checking utime.h presence… yes
checking for utime.h… yes
checking for pkg-config… /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0… yes
checking for LIBEDIT… no
checking for history_init in -ledit… no
configure: error: *** Please install the ‘libedit’ development package.
grzegorz@grzegorz-desktop:/usr/local/src/asterisk-16.1.0$
grzegorz@grzegorz-desktop:/usr/local/src/asterisk-16.1.0$ sudo make
Makefile:109: makeopts: No such file or directory
**** The configure script must be executed before running ‘make’.
**** Please run “./configure”.
Thanks. I done :
sudo apt-get update
sudo apt-get install libedit-dev
and is now better, but is too next problem … from ./configure
“configure: error: *** uuid support not found (this typically means the uuid development package is missing)”
Could you help me?
That would be “sudo apt-get install uuid-dev”. I highly suggest you figure out why “install_prereq install” did not work. I don’t speak your language, so I can’t do that. If you can’t make install_prereq work then you can open up the script and see what packages it would install for Ubuntu and install them yourself.