> gcc -Wall -g -pipe -fno-common -DRUBY_EXPORT -L/opt/local/lib - > L. main.o -lruby-static -ldl -lobjc -o ruby The ruby you are building is linking against the ruby lib in /opt/ local/lib. Can you try moving that out of the way first?