Ted Leung on the air
Ted Leung on the air: Open Source, Java, Python, and ...
Thu, 15 Jan 2004
Which is harder building kernel 2.6.1 or subversion on Mac OS X
Bill Kearney is wrestling with trying to get Linux 2.6.1 running on his older hardware. A few days ago I built 2.6.1 on my development linux box, and it seemed to build okay. I haven't booted it yet, because I haven't had enough time to reboot it and then walk over to the garage to make sure that it boots correctly. Perhaps over the weekend.

Last night and today I've been wrestling with getting subversion 0.36 to build on Mac OS X. I was unhappy with the Fink guys because their version is so far behind, but after my experiences, I understand a bit more where they are coming from.

To build subversion (svn), you need Berkeley DB (BDB) 4.2.50, Neon 0.24, httpd 2.0.48, and subversion-0.36. Getting the tarballs and unpacking them is no problem. I built Neon and BDB according to the instructions and set them aside. No problem. Next up, build httpd 2.0.48 against BDB 4.2.50 so that httpd and subversion both use the same BDB (subversion needs BDB 4.2). I got stuck here for quite a while. First, the httpd build wasn't finding BDB. This was partially fixed by Justin Erenkrantz who pointed me to a newer version of httpd-2.0.48/srclib/apr-util/build/dbm.m4 (I got version 1.8). This got me further not quite all the way. I made a typo in the pathe for BDB which was just dumb. But it took a couple builds to find it (thanks to Jack Repenning). The next obstacle was that httpd built, but subversion wasn't finding it or SSL. When I tried to run apachectl. It failed with an error about expat libraries being incorrect versions. I was trying to build all of the httpd modules as shared, which may have been the problem. So throttled back to enabling just the modules described in the svn INSTALL file. This still didn't produce a working apachectl. As a last act of desperation, I blew away the httpd directory and unpacked the tarball again, copied the new version of dbm.m4 and configured. And lo and behold httpd built and apachectl ran. Of course, I'm missing a bunch of modules that I want -- I guess I'll be learning how to build individual modules as DSO's (yes I did try to build all the modules non-shared. subversion didn't like that either).

Working httpd in hand, I then proceeded on to try and build svn clients and servers. After the first attempt at configuring, I saw that subversion actually builds neon itself. So much for the original build of neon. The problem was that neon wasn't getting built with SSL support. So I went looking through the mailing lists (again) for some kind of pointers. Fortunately, this message mentioned the --with-libs= option for neon, which resulted in subversion configuring correctly. The compile just finished and everything seems good. I can't guarantee that it runs, but that's next on my list.

If you've been keeping score, and you want to try this at home (assuming you've unpacked the tarballs):

cd db-4.2.50
cd build_unix
../dist/configure
make
sudo make install
cd ..
cp dbm.m4 httpd-2.0.48  (you have to get the path for dbm.m4 right after you download it)
cd httpd-2.0.48
./configure --enable-dav --enable-so --enable-maintainer-mode --enable-ssl --with-berkeley-db=/usr/local/BerkeleyDB.4.2
make
sudo make install
cd ..
cd subversion-0.36.0
./autogen.sh
./configure --enable-maintainer-mode --enable-ssl --with-ssl --with-libs=/sw/lib --with-berkeley-db=/usr/local/BerkeleyDB.4.2
make
sudo make install
No goats, chickens, or other animals required. Just lots of frustration.
[23:27] | [computers/operating_systems/macosx] | # | TB | F | G | 5 Comments | Other blogs commenting on this post
You can subscribe to an RSS feed of the comments for this blog: RSS Feed for comments

Add a comment here:

You can use some HTML tags in the comment text:
To insert a URI, just type it -- no need to write an anchor tag.
Allowable html tags are: <a href>, <em>, <i>, <b>, <blockquote>, <br/>, <p>, <code>, <pre>, <cite>, <sub> and <sup>.

You can also use some Wiki style:
URI => [uri title]
<em> => _emphasized text_
<b> => *bold text*
Ordered list => consecutive lines starting spaces and an asterisk

Name:


E-mail:


URL:


Comment:


Remember my info?


twl JPG

About

Ted Leung FOAF Explorer

I work at the Open Source Applications Foundation (OSAF).
The opinions expressed here are entirely my own, not those of my employer.

Creative Commons License
This work is licensed under a Creative Commons License.

Now available!
Professional XML Development with Apache Tools : Xerces, Xalan, FOP, Cocoon, Axis, Xindice
Technorati Profile
PGP Key Fingerprint
My del.icio.us Bookmarks
My Flickr Photos


Syndicate
RSS 2.0 xml GIF
Comments (RSS 2.0) xml GIF
Atom 0.3 feed
Feedburner'ed RSS feed

< January 2004 >
SuMoTuWeThFrSa
     1 2 3
4 5 6 7 8 910
11121314151617
18192021222324
25262728293031

Archives
2006
2005
2004
2003

Articles
Macintosh Tips and Tricks

Search
Lucene
Blogs nearby
geourl PNG

Categories
/ (1567)
  books/ (33)
  computers/ (62)
    hardware/ (15)
    internet/ (58)
      mail/ (11)
      microcontent/ (58)
      weblogs/ (174)
        pyblosxom/ (36)
      www/ (25)
    open_source/ (145)
      asf/ (53)
      osaf/ (32)
        chandler/ (35)
        cosmo/ (1)
    operating_systems/ (16)
      linux/ (9)
        debian/ (15)
        ubuntu/ (2)
      macosx/ (101)
        tips/ (25)
      windows_xp/ (4)
    programming/ (156)
      clr/ (1)
      dotnet/ (13)
      java/ (71)
        eclipse/ (22)
      lisp/ (34)
      python/ (86)
      smalltalk/ (4)
      xml/ (18)
    research/ (1)
    security/ (4)
    wireless/ (1)
  culture/ (10)
    film/ (8)
    music/ (6)
  education/ (13)
  family/ (17)
  gadgets/ (24)
  misc/ (47)
  people/ (18)
  photography/ (25)
    pictures/ (12)
  places/ (3)
    us/ (0)
      wa/ (2)
        bainbridge_island/ (17)
        seattle/ (13)
  skating/ (6)
  society/ (20)



[Valid RSS]

del.icio.us linkblog

www.flickr.com

Blogroll

java.blogs
Listed on BlogShares

Locations of visitors to this page
Where are visitors to this page?


pyblosxom GIF