M
Mits Hadeishi
Hi,
So I'm trying to install Ruby on a couple of servers, one running RH9 and one
running Red Hat Enterprise Linux. RHEL has Ruby 1.6 in its ancient up2date
archives but I need to install rubygems so I intsalled Ruby 1.8.2 from
source.
This is what I did:
Downloaded Ruby 1.8.2 stable from http://www.ruby-lang.org/en/20020102.html
configure; make; make install (no problems)
Downloaded Rubygems 0.8.10 from http://rubyforge.org/frs/?group_id=126
ruby setup.rb (no obvious problems)
gem install lafcadio (I need this for some software I am trying to run)
Attempt to run the Ruby script that depends on Lafcadio
Problems:
I get the following errors when it is installing lafcadio (while it is
installing a dependent package, log4r):
-----------
src/log4r/config.rb:4:0: Unrecognized directive 'nodoc'
src/log4r/base.rb:2:7: Unrecognized directive 'nodoc'
src/log4r/logevent.rb:2:6: Unrecognized directive 'nodoc'
src/log4r/loggerfactory.rb:4:0: Unrecognized directive 'nodoc'
src/log4r/repository.rb:4:0: Unrecognized directive 'nodoc'
src/log4r/staticlogger.rb:2:6: Unrecognized directive 'nodoc'
src/log4r/lib/drbloader.rb:2:6: Unrecognized directive 'nodoc'
src/log4r/lib/xmlloader.rb:2:6: Unrecognized directive 'nodoc'
src/log4r/outputter/consoleoutputters.rb:2:7: Unrecognized directive 'nodoc'
src/log4r/outputter/fileoutputter.rb:4:0: Unrecognized directive 'nodoc'
src/log4r/outputter/iooutputter.rb:2:7: Unrecognized directive 'nodoc'
src/log4r/outputter/outputterfactory.rb:4:0: Unrecognized directive 'nodoc'
src/log4r/outputter/remoteoutputter.rb:2:7: Unrecognized directive 'nodoc'
src/log4r/outputter/rollingfileoutputter.rb:5:0: Unrecognized directive
'nodoc'
src/log4r/outputter/staticoutputter.rb:2:6: Unrecognized directive 'nodoc'
----------
However, the above does not prevent lafcadio from installing, or so it seems.
When I run the script, however, I get this error:
----------
/usr/local/lib/ruby/gems/1.8/gems/lafcadio-0.7.3/lib/lafcadio/mock.rb:93:
uninitialized constant Lafcadio::ObjectStore (NameError)
from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:18:in
`require__'
from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:18:in
`require'
from /usr/local/lib/ruby/gems/1.8/gems/lafcadio-0.7.3/lib/lafcadio.rb:24
from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:18:in
`require__'
from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:18:in
`require'
from /usr/local/lib/ruby/site_ruby/1.8/rubygems.rb:175:in `activate'
from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:23:in
`require'
from track_newsletters.rb:6
--------
Which seems to imply that Lafcadio is not, in fact, working or installed
properly.
Note that I was able to get the script working fine on my laptop which runs a
version of Debian, but in that case I didn't build Ruby from source, I used
the Debian unstable package instead. I did install Rubygems from the
download, above, but when I installed Lafcadio I got no errors.
Any ideas? Should I try installing Ruby from an RPM instead? Which RPM?
Mitsu
So I'm trying to install Ruby on a couple of servers, one running RH9 and one
running Red Hat Enterprise Linux. RHEL has Ruby 1.6 in its ancient up2date
archives but I need to install rubygems so I intsalled Ruby 1.8.2 from
source.
This is what I did:
Downloaded Ruby 1.8.2 stable from http://www.ruby-lang.org/en/20020102.html
configure; make; make install (no problems)
Downloaded Rubygems 0.8.10 from http://rubyforge.org/frs/?group_id=126
ruby setup.rb (no obvious problems)
gem install lafcadio (I need this for some software I am trying to run)
Attempt to run the Ruby script that depends on Lafcadio
Problems:
I get the following errors when it is installing lafcadio (while it is
installing a dependent package, log4r):
-----------
src/log4r/config.rb:4:0: Unrecognized directive 'nodoc'
src/log4r/base.rb:2:7: Unrecognized directive 'nodoc'
src/log4r/logevent.rb:2:6: Unrecognized directive 'nodoc'
src/log4r/loggerfactory.rb:4:0: Unrecognized directive 'nodoc'
src/log4r/repository.rb:4:0: Unrecognized directive 'nodoc'
src/log4r/staticlogger.rb:2:6: Unrecognized directive 'nodoc'
src/log4r/lib/drbloader.rb:2:6: Unrecognized directive 'nodoc'
src/log4r/lib/xmlloader.rb:2:6: Unrecognized directive 'nodoc'
src/log4r/outputter/consoleoutputters.rb:2:7: Unrecognized directive 'nodoc'
src/log4r/outputter/fileoutputter.rb:4:0: Unrecognized directive 'nodoc'
src/log4r/outputter/iooutputter.rb:2:7: Unrecognized directive 'nodoc'
src/log4r/outputter/outputterfactory.rb:4:0: Unrecognized directive 'nodoc'
src/log4r/outputter/remoteoutputter.rb:2:7: Unrecognized directive 'nodoc'
src/log4r/outputter/rollingfileoutputter.rb:5:0: Unrecognized directive
'nodoc'
src/log4r/outputter/staticoutputter.rb:2:6: Unrecognized directive 'nodoc'
----------
However, the above does not prevent lafcadio from installing, or so it seems.
When I run the script, however, I get this error:
----------
/usr/local/lib/ruby/gems/1.8/gems/lafcadio-0.7.3/lib/lafcadio/mock.rb:93:
uninitialized constant Lafcadio::ObjectStore (NameError)
from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:18:in
`require__'
from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:18:in
`require'
from /usr/local/lib/ruby/gems/1.8/gems/lafcadio-0.7.3/lib/lafcadio.rb:24
from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:18:in
`require__'
from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:18:in
`require'
from /usr/local/lib/ruby/site_ruby/1.8/rubygems.rb:175:in `activate'
from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:23:in
`require'
from track_newsletters.rb:6
--------
Which seems to imply that Lafcadio is not, in fact, working or installed
properly.
Note that I was able to get the script working fine on my laptop which runs a
version of Debian, but in that case I didn't build Ruby from source, I used
the Debian unstable package instead. I did install Rubygems from the
download, above, but when I installed Lafcadio I got no errors.
Any ideas? Should I try installing Ruby from an RPM instead? Which RPM?
Mitsu