make libcurl

Sharpe, Sam J sam.sharpe+lists.redhat at gmail.com
Sun May 31 19:12:22 UTC 2009


2009/5/31 Thufir <hawat.thufir at gmail.com>:
> Thanks, guys, it's closer.  Here's what I have so far:
>
>
> [root at arrakis curl-java-0.2.3]#
> [root at arrakis curl-java-0.2.3]#
> [root at arrakis curl-java-0.2.3]# ./configure
> checking for a BSD-compatible install... /usr/bin/install -c
<snip>

If you don't want to make an RPM, then you just need to edit your
configure line to be:

# ./configure --prefix=/usr --libdir=/usr/lib
(that may need to be /usr/lib64, but I think you are building for i386)
# make
# make install

If you do want to make an RPM, then after your configure, you should
have a curl-java.spec file. Edit it and replace

./configure --prefix="%{_prefix}"

With:

./configure --prefix="%{_prefix}" --libdir="%{_libdir}"

Then:

mkdir -p ~/rpmbuild/SPECS
mkdir -p ~/rpmbuild/SOURCES
cp ../curl-java-0.2.3.tar.gz ~/rpmbuild/SOURCES
cp curl-java.spec ~/rpmbuild/SPECS
rpmbuild -ba ~/rpmbuild/SPECS/curl-java.spec

That should produce you an RPM in ~rpmbuild/RPMS/

(at least this all worked for me)

-- 
Sam




More information about the fedora-list mailing list