Link against MacPorts Ruby instead of system Ruby

Kevin Walzer kw at codebykevin.com
Sat Apr 26 06:55:41 PDT 2014


On Mavericks, I am developing a tool that uses an embedded Ruby 
interpreter and am trying to link it against my MacPorts installation of 
Ruby 2.1. However, while it successfully builds and runs with the 
following command:

gcc -Wall -v -o test test.c -lruby

it is linked against the system Ruby, 2.0. (Apple has apparently 
replaced MacRuby with standard Ruby in Mavericks.)

Can anyone suggest the correct command-line invocation to point my tool 
at MacPorts Ruby instead?

--Kevin
-- 
Kevin Walzer
Code by Kevin/Mobile Code by Kevin
http://www.codebykevin.com
http://www.wtmobilesoftware.com


More information about the macports-users mailing list