Dear All,
I am running Linux mint.
When I am running config I am getting the following error.
configure:12238: $PKG_CONFIG --exists --print-errors "libevent >= 2.1.2
libevent_pthreads >= 2.1.2
libevent_openssl >= 2.1.2"
Requested 'libevent >= 2.1.2' but version of libevent is 2.0.21-stable
Requested 'libevent_pthreads >= 2.1.2' but version of libevent_pthreads is 2.0.21-stable
Requested 'libevent_openssl >= 2.1.2' but version of libevent_openssl is 2.0.21-stable
configure:12243: $? = 1
configure:12261: $PKG_CONFIG --exists --print-errors "libevent >= 2.1.2
libevent_pthreads >= 2.1.2
libevent_openssl >= 2.1.2"
Requested 'libevent >= 2.1.2' but version of libevent is 2.0.21-stable
Requested 'libevent_pthreads >= 2.1.2' but version of libevent_pthreads is 2.0.21-stable
Requested 'libevent_openssl >= 2.1.2' but version of libevent_openssl is 2.0.21-stable
configure:12266: $? = 1
configure:12282: result: no
Requested 'libevent >= 2.1.2' but version of libevent is 2.0.21-stable
Requested 'libevent_pthreads >= 2.1.2' but version of libevent_pthreads is 2.0.21-stable
Requested 'libevent_openssl >= 2.1.2' but version of libevent_openssl is 2.0.21-stable
configure:12302: error: Package requirements (libevent >= 2.1.2
libevent_pthreads >= 2.1.2
libevent_openssl >= 2.1.2) were not met:
Requested 'libevent >= 2.1.2' but version of libevent is 2.0.21-stable
Requested 'libevent_pthreads >= 2.1.2' but version of libevent_pthreads is 2.0.21-stable
Requested 'libevent_openssl >= 2.1.2' but version of libevent_openssl is 2.0.21-stable
When I run sudo apt install event.2.1.6 I am getting below error.
Reading package lists... Done
Building dependency tree
Reading state information... Done
Note, selecting 'libevent-2.1-6' for regex 'event.2.1.6'
libevent-2.1-6 is already the newest version (2.1.8-stable-4build1).
The following packages were automatically installed and are no longer required:
gist lib32asan2 lib32atomic1 lib32cilkrts5 lib32gcc-5-dev lib32gomp1 lib32itm1 lib32mpx0 lib32quadmath0 lib32ubsan0 libkadm5clnt-mit9 libx32asan2 libx32atomic1
libx32cilkrts5 libx32gcc-5-dev libx32gomp1 libx32itm1 libx32quadmath0 libx32ubsan0 ruby-json
Use 'sudo apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 1671 not upgraded.
When I run
$ gcc -o http_client https-client.c https-common.c openssl_hostname_validation.c -L/usr/lib -lssl -lcrypto -levent -levent_core -levent_openssl
https-client.c: In function ‘launch_request’:
https-client.c:98:10: warning: implicit declaration of function ‘evhttp_connection_base_bufferevent_new’ [-Wimplicit-function-declaration]
conn = evhttp_connection_base_bufferevent_new (
^
https-client.c:98:8: warning: assignment makes pointer from integer without a cast [-Wint-conversion]
conn = evhttp_connection_base_bufferevent_new (
^
/tmp/ccIqRyuJ.o: In function `launch_request':
https-client.c:(.text+0x2cb): undefined reference to `evhttp_connection_base_bufferevent_new'
collect2: error: ld returned 1 exit status
Help is appreciated.
Regards,
Harshan
--
Harshan Eppurath
Mobile 9747992657