Originally posted by sollaires
about mysql:::
i actually did not get it to compile - i keep getting the ps/pid error and have not figured out a way to get the host issue resolved. most of the hostnames did not work because the mysql source didn't understand them. there is a binary download of mac os x mysql, though i haven't had time to play with it too much and have not gotten it to work. so hopefully someone out there with more *nix/bsd experience has figured out how to compile it.
Ok. Here is what I have found out so far. You can replace the config.guess and config.sub with the ones that are in /usr/libexec/ (they are both in there) At least on my system, and I have OSX + Dev Tools (these are the real dev tools since I am an ADC member)
that deals with all the hostname problems.
then for the "ps pid" problems. I am not sure why the test doesn't work correctly. But, in the ~mysql/configure script, edit the file and change it to have the following (just search for the # Linux style)
# lame darwin style. not sure why
if $PS p $$ 2> /dev/null | grep sh > /dev/null
then
FIND_PROC="$PS p \$\$PID | grep mysqld > /dev/null"
# Linux style
elif $PS p $$ 2> /dev/null | grep $0 > /dev/null
All I know about this one, is that $$ returns the correct PID, but $0 returns "./configure" which seems right. But in the process list, the PID is listed as just "sh".
Then, be sure to type ./configure --with-named-curses-libs=""
I'll have another way of doing this, but that is the easiest way.
Now, you get the problem with __attribute__. and basically, I haven't fixed the problem yet. I know how to fix it -- it is just 1:15am and I am not going to work on this anymore. The problem is that __attribute__ is not supported by the gcc version that is on the OSX. you need to go through and create somewhere (not sure where yet) a macro that has:
#if defined( __Sometinglike_Darwin__)
#define mysql__attribute(x)
#else
#define mysql__attribute(x) __attribute__(x)
#endif
and then, go through all the code and change all the __attribute__ to mysql_attribute.
I haven't done this yet, so I don't know what the next problems will be.
But I got that far.