Building DBD::mysql on Solaris 10 Sparc

Having problems building the Perl DBD::mysql modules on Solaris 10 Sparc 64-bit?

The Perl 5.8.4 binary that ships with Solaris 10 is a 32-bit application.  You are probably running the 64-bit version of MySQL and trying to build DBD::mysql against that db version.

What you actually need to do is download the 32-bit version of MySQL, for linking the Perl DBD::mysql libraries against.   I run the 64-bit MySQL database in /opt/mysql/mysql, so I unpacked the 32-bit MySQL as /opt/mysql/mysql32.

Then, run a CPAN shell, look DBD::mysql, and build the module.

/usr/perl5/5.8.4/bin/perlgcc Makefile.PL --libs '-R/usr/sfw/lib -R/opt/mysql/mysql32/lib -L/usr/sfw/lib -L/opt/mysql/mysql32/lib -lmysqlclient -lz -lposix4 -lcrypt -lgen -lsocket -lnsl -lm' --cflags '-I/usr/sfw/include -I/usr/include -I/opt/mysql/mysql32/include'

Then

gmake install UNINST=1

and you're done.

OUCHIES! I broke my big toe this morning!

I can't beleive I broke my big toe. Not, I think I broke it. I know I broke it. I went to the hospital and had them X-RAY it. It's broke!

I was carrying my son (15 months old) down the steps, and I slipped. My only though was "Don't let Jason get hurt."

So I grabbed him and wrapped my arms around him, as my left foot missed a step, and my right foot slipped off the step it was on, hitting the step below that toe first, which toes consequently folded underneath that foot at the same time as they became the primary weight bearers for all 250 lbs of me.

Jason was not hurt. I think he was scared that daddy was screaching like his 19-month old cousin Jade when they're fighting over a toy (actually he's the screacher, not her), but he was fine.

Here's a pic of the X-RAY:
my broken toe

After I hurt myself, I took about 5 minutes to gather my wits, then I took Jason to daycare, and drove
myself to the hospital, which is quite pleasant at 8:45 AM.

A few X-RAYS, and a silly post-op shoe later, and here I am on a diet of Advil and ice-packs. Hopefully the bones won't need to be pinned in place, but I won't find out till the end of the week, when I have a follow-up with the orthopedic specialist.

How to buy your wife or girlfriend a gift they'll like.

Yesterday I was watching the Today show on NBC, and Jean Chatzky showed how little she knows about the inner workings of men, and simultaneously provided great insight into women, and a problem that most of us men have experienced: What do you buy your wife or girlfriend for Christmas?

First off, she said that women like to surprise men. They like the feeling of suspense when they buy us something they know we'll like. She seemed surprised to hear that men would like some big bold neon sign -like hints as to what a women wants for Christmas. She thinks it should be obvious to men what women like, like it's obvious to women what men like. Cute, eh? Unfortunately for her, men's brains are not wired that way. We're wired to look for meat.... hunting, fishing, computing. We're wired for taking things apart, rarely for putting them back together.

She then went on to ask, like it's obvious, "Why don't you just go to your wife's closet, look through her clothes, and look at the tags. You'll get the brands we like, you'll get our size, and you'll get an idea of the styles we like. Or notice what perfume we wear, and buy us the whole line. We'll be happy."

I sometimes wonder at how the male brain is wired. None the less at why I never thought of that. Why in all the years that I've been married, or previously, had a girlfriend at Christmas, have I never thought to look at the brands and size of her clothes, or at her perfumes, to buy her a gift? Is it because men are terrified at the thought of buying clothes for a woman? Maybe, but with the right brand, style, and size at hand, it's much less terrifying a prospect.

Thank you Jean Chatzky for getting on national television and giving the men of America (and beyond) a big, bold, neon sign -like hint. :) (yes, we really do need it!)

Here is her full article on the subject. It has a more big bold hints, like "Talk to her friends", and "Don't over look electonics", and "Kitchen appliances are not sexy gifts".

Now I feel much more confident about the Christmas present I'm getting for my wife.