FYI: Installation instructions updated to include Mac OS X
Pierre Queinnec
pierre at queinnec.org
Wed Nov 1 23:21:53 CET 2006
Hi Eirik,
I've been wanting to share a quick n'dirty patch to get it to work on OS
X with a clock_gettime hack, but as I updated to the current SVN
version, I saw this commit:
http://projects.linpro.no/pipermail/varnish-commit/2006-October/001218.html
It should answer your question. BTW, I ponder wether it's better to use
gettimeofday-style or something like:
host_get_clock_service(mach_host_self(), REALTIME_CLOCK, &myClock);
clock_get_time(myClock, &myTime);
I bet the current compat hack is better, because it doesn't involve
including mach headers.
Anyway, thanks to the ones that made it possible and thanks for this
quality software!
--
Pierre Queinnec
Architecte - Zenika
http://www.zenika.com
Eirik Øverby wrote:
> On Oct 28, 2006, at 7:10 PM, Tom Lazar wrote:
>
>> I just installed varnish successfully on my OSX boxen and edited the
>> installation instructions[1] accordingly.
>
> Just curious, what happened to those missing time functions on OSX?
> /Eirik
>
>>
>> it's just two additional steps:
>>
>> --snip--
>> 1. install `automake`, i.e. via [http://darwinports.opendarwin.org/
>> Darwin Ports]: `sudo port install automake` as the version of
>> `automake` that ships with OS X is too old.
>>
>> 2. patch the `autogen.sh` file:
>>
>> {{{
>> 10a11,15
>> > if [ -e /opt/local/bin/automake ] ; then
>> > PATH=/opt/local/bin:${PATH}
>> > export PATH
>> > fi
>> >
>> 30c35
>> < libtoolize --copy --force
>> ---
>> > glibtoolize --copy --force
>> }}}
>>
>> ''n.b. this assumes you are using the abovementioned
>> [http://darwinports.opendarwin.org/ Darwin Ports]. The key point is to
>> insert the path to your newer version of `automake` '''before''' the
>> system path in order to 'hide' the old version from `autogen.sh`.''
>>
>> --snap--
>>
>>
>> cheers,
>>
>> tom
>>
>> [1] http://varnish.projects.linpro.no/wiki/Installation
>> _______________________________________________
>> varnish-misc mailing list
>> varnish-misc at projects.linpro.no
>> http://projects.linpro.no/mailman/listinfo/varnish-misc
>>
>>
>
> _______________________________________________
> varnish-misc mailing list
> varnish-misc at projects.linpro.no
> http://projects.linpro.no/mailman/listinfo/varnish-misc
More information about the varnish-misc
mailing list