Forum OpenACS Development: building tDOM on OS X tiger

Collapse
Posted by Torben Brosten on
I'm adding this to the forum, instead of wiki, because I understand that the wiki content is not yet searchable.

To get tDOM to build on tiger, I had to:

1. download the latest version of xcode tools (version2.2) from http://developer.apple.com/tools/xcode which updates the gcc compiler.

Then make some additional changes to the unix/CONFIG file (after modifying the unix/CONFIG file according to instructions at: https://openacs.org/doc/current/aolserver4 )

2. uncomment 'CC=gcc; export CC'

3. add a new line, somewhere after the first line:

export CCP="/usr/bin/cpp"

Hopefully, this works for others as well.

cheers!

Collapse
Posted by Janine Ohmer on
I cannot seem to get a tDOM library that will load on my OS X 10.4.7 laptop. Maybe someone can spot what I've done wrong.

I started out with tDOM 0.8.0, which is the current one at tdom.org. I have installed a more recent copy of Tcl than the one OS X comes with, so the line in my CONFIG script looks like this:

../configure --enable-threads --disable-tdomalloc --prefix=/usr/local/aolserver --with-tcl=/usr/local/lib

I made it all one line because when it's split with a continuation backslash I get these warnings when I run configure:

configure: WARNING: --prefix defaulting to TCL_PREFIX /usr/local
configure: WARNING: --exec-prefix defaulting to TCL_EXEC_PREFIX /usr/local

Putting the command all on one line gets rid of the warnings, but the built libraries still end up in /usr/local/lib/tdom0.8.0 anyway. This is a minor problem, though; it's easy enough to copy them to /usr/local/aolserver/lib/tdom0.8.0.

So moving on to building... I've tried building it with no changes, and I've also tried the changes recommended at http://www.efaber.net/personal/svet/OpenACS5-MacOSX-log.txt, which is to change from building a .dylib to a .so. Same error either way; the library builds, but does not load:

[15/Sep/2006:20:03:02][10190.2684407648][-main-] Error: 0-acs-init.tcl: error loading tdom: couldn't find procedure Tdom_Init

If it makes any difference, this is an Intel-based MacBook.

Any suggestions?

Collapse
Posted by Janine Ohmer on
tDOM from CVS works, so it must be something that needs to be updated in tDOM, not something stupid I was doing. For once! :)
Collapse
Posted by Gustaf Neumann on
I'm adding this to the forum, instead of wiki, because I
understand that the wiki content is not yet searchable.

what makes you believe that (xo)wiki is not searchable?

-gn

Collapse
Posted by Torben Brosten on
Hi Gustav,

Sorry for the confusion. There was no xowiki installed at the time of the post, https://openacs.org/wiki/ was not indexed. It may be now.

I'm sure xowiki is searchable.

Thank you for being a big part in rekindling OpenACS and expanding its potential.

cheers,
Torben

Collapse
Posted by Stan Kaufman on
Quoth Torben:

3. add a new line, somewhere after the first line:

export CCP="/usr/bin/cpp"

Obviously that should be:

export CPP="/usr/bin/cpp"

I point this out merely for those of us who copy&paste first and ask questions later. 😉

Hopefully, this works for others as well.

Indeed it does work; thanks!

Collapse
Posted by Torben Brosten on
Thanks for catching that typo, Stan. I updated the docs in xowiki, too: https://openacs.org/xowiki/en/openacs-system-install-osx
Collapse
Posted by Stan Kaufman on
I added to the xowiki doc the fact that PG 8.x is necessary for Intel Macs; PG 7.4 won't compile, and the PG maintainers aren't going to fix that. Something I ran into this weekend after I got my MBP17. 😉