diff --git a/Rakefile b/Rakefile
index 34fca0bf4732809cb819ba09dddde8c0fd3a7937..ef3f731fe1e6acfb2d32ad90191030425120ca6a 100755
--- a/Rakefile
+++ b/Rakefile
@@ -221,7 +221,7 @@ end
 # c:/ruby-1.8.6-p383-preview2/devkit/msys/1.0.11/usr/local/share/swig/1.3.22
 # before running swig on MinGW.
 namespace :swig do
-  SWIG = "/usr/local/bin/swig"
+  SWIG = "swig"
   SWIGFLAGS = "-fcompact -noruntime -c++ -ruby -no_default -I../fox-includes"
   SWIG_LIB = `#{SWIG} -swiglib`.chomp
   SWIG_MODULES = {