Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@larskanis
Created October 24, 2014 04:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save larskanis/5ebb2c96a50ed0821cf1 to your computer and use it in GitHub Desktop.
Save larskanis/5ebb2c96a50ed0821cf1 to your computer and use it in GitHub Desktop.
pg-0.18.0.pre20141017160319-x86-mingw32 load error
diff --git a/lib/pg.rb b/lib/pg.rb
index 3d96b75..b9b8b65 100644
--- a/lib/pg.rb
+++ b/lib/pg.rb
@@ -10,7 +10,7 @@ rescue LoadError
# Set the PATH environment variable, so that libpq.dll can be found.
old_path = ENV['PATH']
- ENV['PATH'] = "#{old_path};#{File.expand_path("../#{RUBY_PLATFORM}", __FILE__)}"
+ ENV['PATH'] = "#{File.expand_path("../#{RUBY_PLATFORM}", __FILE__)};#{old_path}"
require "#{major_minor}/pg_ext"
ENV['PATH'] = old_path
else
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment