Created
October 24, 2014 04:17
-
-
Save larskanis/5ebb2c96a50ed0821cf1 to your computer and use it in GitHub Desktop.
pg-0.18.0.pre20141017160319-x86-mingw32 load error
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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