 |
Forums |
Admin Discussion Forums: help Start New Thread
By: Sveni
RE: Error: require 'postgres' ... not found [ reply ] 2007-01-01 14:53
|
I tried to compile it in the /usr/local/lib/ruby/gems/1.8/gems/postgres-0.7.1/ directoy itself, which worked, but the error still appeared. I think the problem was that the new lib was not found by ruby. After I started a script in the 'sample' folder with:
ruby -rubygems <script>
Everythink worked.
Thanks for your help!
|
By: Ryan Davis
RE: Error: require 'postgres' ... not found [ reply ] 2006-12-31 12:14
|
This is a bug between postgres gem's makefile and rubygems itself. To fix it, cd to the postgres gem directory and rebuild. For me (on osx and would look the same on most unix/linux systems):
cd /usr/local/lib/ruby/gems/1.8/gems/postgres-0.7.1/
sudo make
|
By: Sveni
Error: require 'postgres' ... not found [ reply ] 2006-12-31 12:06
|
I installed the 'gem' with no error. But the 'postgres' module will not be found. Even the
scripts in the 'test' directory aren't working.
It is the first time I am using ruby and postgres. Did I forget something (configure,...), so that 'postgres' will be found?
I am using ruby 1.8.4 on slackware 11.
greeds
sveni
|
|
 |