"When you find yourself in some far off place, And it causes you to rethink some things, You start to sense that slowly you're becoming someone else, And then you find yourself. When you make new friends in a brand new town, And you start to think about settlin' down, The things that would have been lost on you are now clear as a bell, And you find yourself, that's when you find yourself. Where you go through life so sure of where youre headed, And you wind up lost and it's the best thing that could have happened, 'Cause sometimes when you lose your way it's just as well, Because you find yourself. yeah, that's when you find yourself. When you meet the one that you've been waitin' for, And she's everything that you want and more, You look at her and you finally start to live for some one else, And then you find yourself, that's when you find yourself. We go through life so sure of where we're headed, And we wind up lost and it's the best thing that could have happened, 'Cause sometimes when you lose your way it's really just as well, Because you find yourself, yeah, that's when you find yourself... ~ Brad Paisley - Find Yourself"
Posted by Wayne on 8th April 2008

Recompiling shit for Mac

Ok, so I want to build a webapp… while for most things the stock apache / php / mysql installs on Leopard are great… but not if you want extensions… I need to be able to create PDFs… and so I need to build all of the stuff from source… Let’s see exactly how well that went..

Here are the basics…
Step One… obtain Apache source
Step Two… ./configure apache2 with the necessary options
Step Three install apache2 using the sudo make install command

This went well…. Next Thing to install… PHP
Get Source … do ./configure then sudo make install
That went well… Except for the 4 hours spent trying to get everything needed in order to actually compile the damn thing… but I finally got it working this morning

Mysql…. actually went well…

Now in order to create PDF files I need PDFLib… which will require a rebuild of PHP… I also need to make sure that the ldap extension works for my webapp… and lo and behold… it’s not installed… so now I have to find it…

Find Ldap source… using openldap… And I try and compile that and guess what… it requires Berkeley DB, which is installed on mac by default.. but it’s the wrong version… guess I’ll go and build that… There were well written instructions on how to do that…

download source
decompress
cd build_unix
../dist/configure
sudo make
sudo install

That’s compiling as I write this… I just hope that this works so I can have PDFLib on my server…

With the 10+ hours spent thus far just compiling things I wonder if Leopard server would’ve had any of these issues…

oh well… just the way it goes… I wonder if doing this on a linux box would be any easier…

I’ll keep everybody posted…

No comments yet!

Post your comments