OSX Chipmunk install advice?

Official forum for the Chipmunk2D Physics Library.
Post Reply
biot023
Posts: 1
Joined: Fri Mar 07, 2008 11:53 am
Contact:

OSX Chipmunk install advice?

Post 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.
skawaii
Posts: 1
Joined: Sun Mar 30, 2008 10:52 pm
Contact:

Re: OSX Chipmunk install advice?

Post 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.
foobarfighter
Posts: 1
Joined: Thu Jun 04, 2009 12:57 am
Contact:

Re: OSX Chipmunk install advice?

Post 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
Post Reply

Who is online

Users browsing this forum: No registered users and 11 guests