<html><head>
<title></title>
<style id="css_styles" type="text/css"><!--blockquote.cite { margin-left: 5px; margin-right: 0px; padding-left: 10px; padding-right:0px; border-left: 1px solid #cccccc }
blockquote.cite2 {margin-left: 5px; margin-right: 0px; padding-left: 10px; padding-right:0px; border-left: 1px solid #cccccc; margin-top: 3px; padding-top: 0px; }
a img { border: 0px; }
li[style='text-align: center;'], li[style='text-align: right;'] { list-style-position: inside;}
body { font-family: Tahoma; font-size: 12pt; }--></style></head>
<body><div>Thanks Dustin. Using --with-lib[ ]=/usr worked just fine.</div><div><br /></div>
<div> </div>
<div>------ Original Message ------</div>
<div>From: "Dustin Marquess" <<a href="mailto:dmarquess@gmail.com">dmarquess@gmail.com</a>></div>
<div>To: "Adam Gold" <<a href="mailto:awg1@gmx.com">awg1@gmx.com</a>></div>
<div>Cc: "Adam Gold via Unbound-users" <<a href="mailto:unbound-users@nlnetlabs.nl">unbound-users@nlnetlabs.nl</a>></div>
<div>Sent: 10/29/2018 12:48:44 AM</div>
<div>Subject: Re: libevent and libexpat not found</div><div><br /></div>
<div id="xb16eb00377e94b0"><blockquote cite="b7e1325a-169d-4d3a-aab9-1ed0b2eb86a2@spark" type="cite" class="cite2">
<div name="messageBodySection">You don’t need the ld.conf.d file, as /usr/lib64 should already be covered by the base ld.conf file (anyways, ld.so.conf expects directories, not files).<br />
<br />
For configure, either drop the “=“ part altogether (eg, just —with-libevent) or use —with-libevent=/usr as it expects a prefix.<br />
<br />
-Dustin</div>
<div name="messageReplySection">On Oct 28, 2018, 4:22 PM -0500, Adam Gold via Unbound-users <<a href="mailto:unbound-users@nlnetlabs.nl">unbound-users@nlnetlabs.nl</a>>, wrote:<br />
<blockquote type="cite" class="cite">Hello.<br />
<br />
I'm running Centos 7.5 with a 4.19.elrepo kernel and am trying to<br />
compile Unbound 1.8.1. My configure options are:<br />
<br />
./configure --with-libevent=/usr/lib64/libevent.so<br />
--with-libexpat=/usr/lib64/libexpat.so --enable-checking<br />
--enable-static-exe --enable-lock-checks --enable-alloc-checks<br />
--with-conf-file=/var/spool/postfix/usr/lib/unbound/unbound.conf<br />
--with-pidfile=/var/spool/postfix/usr/lib/unbound/unbound.pid<br />
--with-run-dir=/var/spool/postfix/usr/lib/unbound<br />
--with-chroot-dir=/var/spool/postfix/usr/lib/unbound<br />
--with-rootkey-file=/var/spool/postfix/usr/lib/unbound/root.key<br />
--with-rootcert-file=/var/spool/postfix/usr/lib/unbound/ --disable-gost<br />
<br />
The specific problem I'm having is getting it to recognize libevent and<br />
libexpat (I have installed the header files, expat-devel and<br />
libevent-devel as well as the core files). The messages I get are:<br />
1) for libevent: 'configure: error: Cannot find the libevent library in<br />
/usr/lib64/libevent.so'<br />
2) for libexpat: 'configure: error: Could not find libexpat, expat.h'<br />
<br />
Also, based on a message board, I saved a file in /etc/ld.so.conf.d<br />
called usr-local.conf and wrote /usr/lib64/libevent.so and<br />
/usr/lib64/libexpat.so. I then saved and entered 'ldconfig' into the<br />
terminal and pressed enter. There was no change though.<br />
<br />
Have I got the names of the libevent and libexpat library files correct?<br />
Where else can I be looking to fix this (FYI, I have 1.8.1 up and<br />
running with Debian). While I understand these two libraries are not<br />
essential I've experienced markedly improved performance with them in<br />
the past so I'd like to try and keep them.<br />
<br />
Any and all thoughts are most welcome.<br />
<br />
(P.S. I went back to March in the archives looking for information on<br />
this but didn't find any. My luck the answer will be on the page,<br />
crystal clear in February).<br />
<br /></blockquote>
</div>
</blockquote></div>
</body></html>