Main > Diary > Development
« The Midwestern Backyard Mentality | Main | What American accent do you have? »October 30, 2006
mtcolor butt cheese
I decided to check into my referrer logs tonight just to see how much bandwidth the MySpace kidz are using hot-linking to my photoblog images (just wait until I come up with a fun image to replace them all with! Suggestions -> me) when I noticed that syntax highlighting stopped working again. This happened because I updated perl and the Syntax::Highlight::Universal module went AWOL again. Getting mtcolorer working continuously could have it's own highly paid crack support staff working 24x7. It's a terrible foundation this thing is built upon.
Long story short, I needed to rebuild the module by hand. A few modifications have to be made to the module source in order to get it to compile on a recent Linux distribution:
- Add -fpermissive to the CCFLAGS parameter of Makefile.PL.
- Use perl Makefile.PL to build a Makefile.
- Edit this makefile and change whatever *-gcc entries to *-g++; otherwise gcc will not generate the shared C++ symbols correctly.
- Edit ./colorer/common/Hashtable.h and change references to capacity and bucket on lines 22-23, 64-65 to this->capacity and this->bucket (scoping people!).
- make ; make install Voila!
After that it was smooth sailing; and time for bed!
{ printf("And to all, a %s.\n", "good night"); exit(-1); }
Posted by jordanh at October 30, 2006 1:11 AM
Trackback Pings
TrackBack URL for this entry:
http://jordan.husney.com/mt/mt-tb.cgi/285.

Posting comment...
It's tempting to make spiteful "you are eating my bandwidth" image to use for hotlinking, but my eventual approach with both music and images was to use mod_rewrite to check the referrer and serve up a file with "_ext" appended if such a file exists, then write some scripts that create versions of images and audio with a little plug for my site tacked on. The result is that all the hot-linkers turn into free advertising for my site.
Let me know if you're interested, and I'll send along the details.
Posted by: Paul at October 31, 2006 9:58 AM