Page 1 of 1

OSX Chipmunk install advice?

Posted: Fri Mar 07, 2008 11:58 am
by biot023
Hi -- I want to get started using Chipmunk in conjunction with gosu, using Ruby on OSX.
I'm afraid that I'm a total Chipmunk, gosu, & Mac newbie -- you'll be relieved to hear I know Ruby, at least!
Can anyone offer instructions on how to install Chipmunk on OSX?
Thanks alot,
Doug.

Re: OSX Chipmunk install advice?

Posted: Sun Mar 30, 2008 11:09 pm
by skawaii
Hi, Doug.

I had the same question as you tonight and, after several frustrating minutes, I figured it out.

After you do the instructions in the readme (ruby extconf.rb, make), you'll have a file in the chipmunk/ruby directory called chipmunk.bundle. All you need to do now is copy that file to ruby's site packages directory. Assuming your setup is the same as mine, that directory is located at /usr/local/lib/ruby/site_ruby/1.8/. So, in Terminal, do the following (assuming you're in Chipmunk-xxx/ruby/ directory),

Code: Select all

sudo cp chipmunk.bundle /usr/local/lib/ruby/site_ruby/1.8
Type in your root password and you should then be able to use chipmunk without any problems.

Re: OSX Chipmunk install advice?

Posted: Thu Jun 04, 2009 12:59 am
by foobarfighter
Instead of copying the file manually, here is what I did:

tar xzvf ChipmunkLatest.tgz
cd Chipmunk-4.1.0/
cd ruby/
ruby extconf.rb
make
sudo make install