No sip OR pjsip CLI command after completing Installation

I have resolved all dependencies. but still I am facing this issue.

[root@aws-ec2-machine asterisk-13.9.1]# lsb_release -a
LSB Version: :base-4.0-amd64:base-4.0-noarch:core-4.0-amd64:core-4.0-noarch
Distributor ID: AmazonAMI
Description: Amazon Linux AMI release 2016.03
Release: 2016.03
Codename: n/a

when I execute command

make clean all

I received the following error

[CC] version.c → version.o
[CC] xml.c → xml.o
xml.c:37:27: fatal error: libxml/parser.h: No such file or directory
#include <libxml/parser.h>
^
compilation terminated.
make[1]: *** [xml.o] Error 1
make: *** [main] Error 2

while I have already installed libxml2 and libxml2-deve;

[root@aws-ec2-machine asterisk-13.9.1]# ldconfig -p | grep libxml2
libxml2.so.2 (libc6,x86-64) => /usr/lib64/libxml2.so.2
libxml2.so (libc6,x86-64) => /usr/lib64/libxml2.so

Thanks in Advance.

0 0x0000000000002460 in ?? ()
No symbol table info available.
1 0x00007f56ddbab3a3 in _dl_init_internal () from /lib64/ld-linux-x86-64.so.2
No symbol table info available.
2 0x00007f56ddbafab6 in dl_open_worker () from /lib64/ld-linux-x86-64.so.2
No symbol table info available.
3 0x00007f56ddbab1b4 in _dl_catch_error () from /lib64/ld-linux-x86-64.so.2
No symbol table info available.
4 0x00007f56ddbaf1ab in _dl_open () from /lib64/ld-linux-x86-64.so.2
No symbol table info available.
5 0x00007f56dd21a02b in dlopen_doit () from /lib64/libdl.so.2
No symbol table info available.
6 0x00007f56ddbab1b4 in _dl_catch_error () from /lib64/ld-linux-x86-64.so.2
No symbol table info available.
7 0x00007f56dd21a62d in _dlerror_run () from /lib64/libdl.so.2
No symbol table info available.
8 0x00007f56dd21a0c1 in dlopen@@GLIBC_2.2.5 () from /lib64/libdl.so.2
No symbol table info available.
9 0x00000000005293d9 in load_dynamic_module (resource_in=resource_in@entry=0x270a030 “res_config_curl.so”, global_symbols_only=global_symbols_only@entry=1,
suppress_logging=suppress_logging@entry=1, resource_heap=0x2746d10) at loader.c:554
fn = “/usr/local/pbx/lib/asterisk/modules/res_config_curl.so”, ‘\000’ <repeats 4041 times>
lib = 0x0
mod =
wants_global =
space = 147
missing_so =
10 0x0000000000529a7e in load_resource (resource_name=0x270a030 “res_config_curl.so”, global_symbols_only=global_symbols_only@entry=1,
suppress_logging=suppress_logging@entry=1, resource_heap=resource_heap@entry=0x2746d10, required=0) at loader.c:1080
mod =
res = AST_MODULE_LOAD_SUCCESS
PRETTY_FUNCTION = “load_resource”
11 0x000000000052a16f in load_resource_list (load_order=load_order@entry=0x7ffca172c000, global_symbols=global_symbols@entry=1,
mod_count=mod_count@entry=0x7ffca172bfe0) at loader.c:1209
lres =
__list_head = 0x7ffca172c000
__list_next = 0x270a050
__list_prev =
__list_current =
resource_heap = 0x2746d10
order =
mod =
load_retries = {first = 0x27098b0, last = }
count = 0
res = 0
i = 0

complete detail is here.

Still waiting for help.

Post the command that you run to install the libxml plus tell us what linux are you using.

Linux version is

LSB Version: :base-4.0-amd64:base-4.0-noarch:core-4.0-amd64:core-4.0-noarch
Distributor ID: AmazonAMI
Description: Amazon Linux AMI release 2016.03
Release: 2016.03
Codename: n/a

Following packges have been installed on my machine.

[ec2-user@ip-172-31-15-93 ~]$ rpm -qa | grep libxml
libxml2-2.9.1-6.2.50.amzn1.x86_64
libxml2-devel-2.9.1-6.2.50.amzn1.x86_64
libxml2-python27-2.9.1-6.2.50.amzn1.x86_64

used the following commad to install

$ yum install libxml2-2.9.1-6.2.50.amzn1.x86_64 libxml2-devel-2.9.1-6.2.50.amzn1.x86_64

Could still be missing dependencies. Not sure about amazon AMI but Asterisk has problems running on KVM with default compile flags. Also did you compile for 64bit?

Try compiling with ./configure CFLAGS='-g -O2 -mtune=native' --libdir=/usr/lib64

That should work in every situation including virtualization on 64bit OS.

Look through your config.log to see if it is complaining about any missing packages. You do that by going to your asterisk source directory and nano -v config.log. Any missing dependencies will be logged in there.