I just installed manually apr and apr_util so i can install activemq cpp library.

When i try to make the cpp library i get the following error:

/usr/bin/ld: cannot find -lexpat
collect2: ld returned 1 exit status

and expat is within apr-util and not being linked. how can i update the ld path so that make or environment will find it?

or in short: how can i resolve this?

link|improve this question

56% accept rate
rpm -qa | grep expat? – quanta Oct 26 '11 at 4:08
expat-1.95.8-8.3.el5_5.3 expat-1.95.8-8.3.el5_5.3 – user30597 Oct 26 '11 at 4:13
feedback

1 Answer

up vote 1 down vote accepted

UPDATE

It looks like you need to install expat-devel package:

# yum install expat-devel

Add the library path to /etc/ld.so.conf (or /etc/ld.so.conf.d) if you installed to non-standard location and run ldconfig.

link|improve this answer
no luck. it didnt help... – user30597 Oct 26 '11 at 4:03
updated my answer. – quanta Oct 26 '11 at 4:20
sweet! worked. thanks. – user30597 Oct 26 '11 at 4:21
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.