Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

Hey guys, I'm trying to install SVN on CentOS 5. Unfortunately a simple yum install isn't going to work (afaik) because I'm using the DirectAdmin control panel.

When it comes to running 'make' I get this error:

/usr/bin/ld: cannot find -lexpat

I'm new to installing things without yum (!) so am a bit lost. Do you have any advice on how to get past this hurdle?

Just to give a little more context to the error;

/apache   -I/usr/include/apache -I/etc/svn-install/subversion-1.6.2/sqlite-amalgamation  -o subversion/svn/util.o -c subversion/svn/util.c
cd subversion/svn && /bin/sh /etc/svn-install/subversion-1.6.2/libtool --tag=CC --silent --mode=link gcc  -g -O2  -g -O2 -pthread   -rpath /usr/lib -o svn  add-cmd.o blame-cmd.o cat-cmd.o changelist-cmd.o checkout-cmd.o cleanup-cmd.o commit-cmd.o conflict-callbacks.o copy-cmd.o delete-cmd.o diff-cmd.o export-cmd.o help-cmd.o import-cmd.o info-cmd.o list-cmd.o lock-cmd.o log-cmd.o main.o merge-cmd.o mergeinfo-cmd.o mkdir-cmd.o move-cmd.o notify.o propdel-cmd.o propedit-cmd.o propget-cmd.o proplist-cmd.o props.o propset-cmd.o resolve-cmd.o resolved-cmd.o revert-cmd.o status-cmd.o status.o switch-cmd.o tree-conflicts.o unlock-cmd.o update-cmd.o util.o ../../subversion/libsvn_client/libsvn_client-1.la ../../subversion/libsvn_wc/libsvn_wc-1.la ../../subversion/libsvn_ra/libsvn_ra-1.la ../../subversion/libsvn_delta/libsvn_delta-1.la ../../subversion/libsvn_diff/libsvn_diff-1.la ../../subversion/libsvn_subr/libsvn_subr-1.la /etc/httpd/lib/libaprutil-1.la  -lexpat /etc/httpd/lib/libapr-1.la -luuid -lrt -lcrypt  -lpthread -ldl
/usr/bin/ld: cannot find -lexpat
collect2: ld returned 1 exit status
make: *** [subversion/svn/svn] Error 1

Thanks!

share|improve this question

5 Answers 5

You are missing the expat development package

Try

yum install expat-devel

and rerun make after that

though I doubt this question belongs on SF

share|improve this answer
    
sorry :( is there another stack overflow / serverfault-type website it would be better on? –  furnace Jun 6 '09 at 18:08
    
Don't worry about it too much ;-) Did you manage to compile it yet? –  wzzrd Jun 6 '09 at 19:49

for CentOS 5: install the expat-devel package

rpm -Uvh ftp://mirror.switch.ch/pool/3/mirror/centos/5.3/os/i386/CentOS/expat-devel-1.95.8-8.2.1.i386.rpm

A google for "centos expat devel" got the answer in the end - although I landed on CentOS 4 rpms.

http://www.google.co.uk/search?hl=en&q=centos+expat-devel+rpm&btnG=Google+Search&meta=&aq=f&oq=

share|improve this answer

I might suggest going to the official Subversion site (http://subversion.tigris.org/project_packages.html). There you get a link to collabNet BINARY packages for Redhat versions 4,5 and others.

Since CentOS is really a recompilation of Redhat AS sources you should have no problem using the RedHat binary packages. Its also nice as all the necessary binaries, modules and such are included.

share|improve this answer

looks like some message with the apr-util stuff which links to its own expat in it's own location in some random directory it creates.

this is one of the messiest things i've built in a long time, what a waste.

share|improve this answer

not sure this will work for others but I was successfully able to install svn 1.6.12 on my CentOS 5.3 server by simply running this script here:

http://wandisco.com/subversion/os/downloads

I do not work there, nor have they paid me blablabla... it just worked.

;)

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.