T
Tom Willis
Is anyone else struggling with Ruby on Debian unstable (or as I like
to call it, Red Hat Stable )? It seems to me that Debians Package
management is fighting with Gems, but I don't know enough about Ruby
to know for sure, or what the correct way of doing things is.
I wanted to play with ActiveRecord last night, and I assumed I had
Rails installed because
#gem install rails --remote
reported no problems, and a few days later the same version showed up
in apt so I Installed it from there as well. Maybe this was a mistake
I don't know.
Anyway, irb reports $LOAD_PATH to be....
/usr/local/lib/site_ruby/1.8
/usr/local/lib/site_ruby/1.8/i386-linux
/usr/local/lib/site_ruby
/usr/lib/ruby/1.8
/usr/lib/ruby/1.8/i386-linux
anyway, from memory...jumping into irb
So I search all the entries in $LOAD_PATH and sure enough no active_record.rb
Do a find for active_record.rb and it's in /usr/share/rails/activerecord/lib/
#cd /usr/share/rails/activerecord/lib
#irb
which is in /usr/share/rails/activesupport/lib
Then I notice a install.rb in /usr/share/rails/activerecord so I run
that hoping it will take care of things. and it bombs on a provider
for oracle which is nowhere to be found.
Comment out that line re-run no problems reported.
Back to my home to try the irb again
~/irb
ARGHHHH!!!!
I now see that /usr/local/lib/site_ruby/1.8 contains an
active_record.rb and a active_record dir.
Basically I ended up copying everything under
/usr/share/rails/active*/lib/ to it's corresponding folder in
/usr/local/lib/site_ruby/1.8 .
Now everything seems to work fine. Though by the time I got the
require statement to return true, it was bed time.
Are other Debian users having these same problems? If so any advice on
how to mange this stuff? Or, am I doing something wrong?
TIA
to call it, Red Hat Stable )? It seems to me that Debians Package
management is fighting with Gems, but I don't know enough about Ruby
to know for sure, or what the correct way of doing things is.
I wanted to play with ActiveRecord last night, and I assumed I had
Rails installed because
#gem install rails --remote
reported no problems, and a few days later the same version showed up
in apt so I Installed it from there as well. Maybe this was a mistake
I don't know.
Anyway, irb reports $LOAD_PATH to be....
/usr/local/lib/site_ruby/1.8
/usr/local/lib/site_ruby/1.8/i386-linux
/usr/local/lib/site_ruby
/usr/lib/ruby/1.8
/usr/lib/ruby/1.8/i386-linux
anyway, from memory...jumping into irb
LoadError: no such file to load -- active_recordrequire 'active_record'
So I search all the entries in $LOAD_PATH and sure enough no active_record.rb
Do a find for active_record.rb and it's in /usr/share/rails/activerecord/lib/
#cd /usr/share/rails/activerecord/lib
#irb
another error about ClassInheritableAttributesrequire 'active_record'
which is in /usr/share/rails/activesupport/lib
Then I notice a install.rb in /usr/share/rails/activerecord so I run
that hoping it will take care of things. and it bombs on a provider
for oracle which is nowhere to be found.
Comment out that line re-run no problems reported.
Back to my home to try the irb again
~/irb
same error about ClassInheritableAttributesrequire 'active_record'
ARGHHHH!!!!
I now see that /usr/local/lib/site_ruby/1.8 contains an
active_record.rb and a active_record dir.
Basically I ended up copying everything under
/usr/share/rails/active*/lib/ to it's corresponding folder in
/usr/local/lib/site_ruby/1.8 .
Now everything seems to work fine. Though by the time I got the
require statement to return true, it was bed time.
Are other Debian users having these same problems? If so any advice on
how to mange this stuff? Or, am I doing something wrong?
TIA