Navigation: Jump to content areas:


Pro Quality. Fan Perspective.
Login-facebook
Around SBN: Nevin Shapiro Vows To Bring Down Miami

Saberizing a Mac, revisited


Up front: Apologies if somehow I've overlooked any discussions that followed the four-part series from a year or so ago. I've done some digging, but couldn't find answers to my questions, and so I'm bringing them to y'all in hope of some guidance.

I've had no problem installing MAMP and Sequel Pro, and loading the Lahman BDB. I'm looking forward to learning some SQL and running some queries. My next step, though, in an ideal world, would be to also get a Retrosheet database up and running using Chadwick. I've downloaded the latter, and after some frustration with Snow Leopard, I think I have it working.*

*I think. I had to completely uninstall, download, and reinstall the latest version of Xcode tools to get gcc (the C compiler) to  work; this seems to be an issue with Snow Leopard that others might have to deal with, as well, but I don't have the technical knowledge to say much more than that. And as you'll see below, I'm not exactly sure what to do next, so I haven't really tested my compile of Chadwick yet.

Here's the thing: I'm not a programmer, and despite the much-appreciated efforts of tangotiger and Colin Wyers to document the process from the Windows side, I'm not sure what to do from here. I could probably try to do what I want to do using their instructions, file structures, programs, batch files, etc. with VMWare Fusion and Windows 7, but part of the fun here is to figure out how to do this on the Mac, right? And before I start madly downloading Retrosheet .zip files left and right, I'd like to have some sense of how to get them properly parsed.

So: anyone feeling like helping out a lost soul? Thanks in advance...

Comment 5 comments  |  0 recs  | 

Do you like this story?

Comments

Display:

I would just go to this website and download retrosheet from there

http://www.wantlinux.net/2009/04/retrosheet-baseball-mysql-database-download/

You don’t have to futz around with the chadwick or parsing stuff, just import it into SQL. There is also a Pitch f/x database for download on that website.

by vivaelpujols on Jul 13, 2010 1:56 PM EDT reply actions  

Thanks very much.

Great resource. When I checked that site last night, for some reason I thought it hadn’t been updated since Retrosheet’s November 21 changes. Would’ve been quicker, though I suppose now I can rest easy knowing I have a working C compiler.

Still: if anyone has any tips on using Chadwick on the Mac, I’d still love to see them… it’d be nice to know how to make it all work.

by Josh Garoon on Jul 13, 2010 2:17 PM EDT up reply actions  

Mac database, up and running

I wanted to use the Perl scripts Mike Fast wrote about in his blog to process the MLB XML files and get them into a MySQL database. I had some problems using MAMP on my Mac. After researching, I found it was because MAMP and the Perl MySQL drivers weren’t exactly compatible. I could have recompiled things, but I’m still pretty new to the Unix underpinnings of Mac OS X (10.5.7) and I didn’t want to fry my MacBook.

What I ended up doing was installing MySQL, then the Perl DBI and DBD modules to connect to it. The MySQL install went okay, but I had to add the database administrator, phpMyAdmin, on top to use it. This link was pretty helpful getting everything set up.

Getting DBI and DBD modules installed was another story. Apparently, on the Mac, the Perl installs from CPAN don’t “make” right, so you have to download the modules and do it manually, which require patience and a fairly good knowledge of your system file structure. After a few late nights, I got it working, but, I have to admit, I googled everywhere to get tidbits of info to make progress to that end. I didn’t discover or create anything new; it’s all out there.

I documented what I did in case I ever needed to do it again, which I did when I upgraded to 10.5.8. I’d be glad to help someone else through the process if my experiences can be of use.

by mark.d.mccluskey on Jul 13, 2010 9:12 PM EDT reply actions  

Comments For This Post Are Closed


User Tools

We use numbers and stuff.
Community Guidelines
Why be a member?

FanPosts

Community blog posts and discussion.

Recent FanPosts

Small
Prince Fielder in Comerica Park
Crystal_ball_small
Sparky vs Buck
Img_3830_small
BtBS Fantasy League
Small
Context Neutral Run and RBI projections
Small
Free Agent Compensation
Img_0001_small
Value of Various Plate Approaches
Strike_three2_small
Effect of Foul Area on Strikeouts: AL 1954-68: Erratum
Small
Baseball on a stick
Small
Player Evaluating Statistic
Baseball_small
Rays Outfield: Cheap but Extremely Productive

+ New FanPost All FanPosts >

Follow us on Facebook!

Follow us on Twitter!

SaberGraphics

MLB Daily Dish

Get the latest MLB Trade Rumors, Transactions, and News at MLB Daily Dish!


Managing Editor:

Jbopp-kc_small Justin Bopp

Columnists:

Adam_small adarowski

Dme_small Satchel Price

Closeup4_small J-Doug

Carlosicon_small Julian Levine

Billy_and_daddy_4th_of_july_small Bill Petti

Featuring:

Dayton_small Jeff Zimmerman

12475953_small Jacob Peterson

Picture-6_small Chris St. John

Btbpro_small Dave Gershman

229331_10150183361996591_674441590_6760167_6637860_n3_small Lewie Pollis

Img_3830_small David Fung