Tortured by the Dependency Daemons

The instructions for installation state, "In RWiki package for your
help, druby, ERb and MutexM have been installed on the `lib’ directory."
This was not true in my experience. Therefore, I attempted to install
all DEPENDENCIES, i.e.,“I did the best that I could.”. Afterward…

$ ruby -dv rwiki.rb

Resulted in the following error messages:

ruby 1.6.8 (2002-12-24) [i686-linux] Exception NameError' at /usr/local/lib/ruby/site_ruby/1.6/racc/parser.rb:24 - uninitialized constant Object::ParseError /usr/local/lib/ruby/site_ruby/1.6/rd/visitor.rb:78: warning: method redefined; discarding old visit_Reference ExceptionLoadError’ at
/usr/local/lib/ruby/site_ruby/1.6/rwiki/rwiki.rb:13 - No such file to
load – drb/drb /usr/local/lib/ruby/site_ruby/1.6/rwiki/rwiki.rb:13:in
`require’: No such file to load – drb/drb (LoadError)

from /usr/local/lib/ruby/site_ruby/1.6/rwiki/rwiki.rb:13
from rwiki.rb:13:in `require’
from rwiki.rb:13

So, I re-installed strscan and also followed the optparse installation
instructions instead of what is stated in the instructions. Then…

$ ruby -dv rwiki.rb

Resulted in the following error messages:

ruby 1.6.8 (2002-12-24) [i686-linux] Exception NameError' at /usr/local/lib/ruby/site_ruby/1.6/racc/parser.rb:24 - uninitialized constant Object::ParseError /usr/local/lib/ruby/site_ruby/1.6/rd/visitor.rb:78: warning: method redefined; discarding old visit_Reference ExceptionLoadError’ at
/usr/local/lib/ruby/site_ruby/1.6/rwiki/rwiki.rb:14 - No such file to
load – erb /usr/local/lib/ruby/site_ruby/1.6/rwiki/rwiki.rb:14:in
`require’: No such file to load – erb (LoadError)

from /usr/local/lib/ruby/site_ruby/1.6/rwiki/rwiki.rb:14
from rwiki.rb:13:in `require’
from rwiki.rb:13

I assume I need to install ERb properly. The instructions fail to help.
I obtained the most current version and installed it. Now…

$ ruby -dv rwiki.rb

Results in the following error message:

ruby 1.6.8 (2002-12-24) [i686-linux]
Exception `NameError’ at
/usr/local/lib/ruby/site_ruby/1.6/racc/parser.rb:24 - uninitialized
constant Object::ParseError
/usr/local/lib/ruby/site_ruby/1.6/rd/visitor.rb:78: warning: method
redefined; discarding old visit_Reference
/usr/local/lib/ruby/site_ruby/1.6/rd/labeled-element.rb:6: warning:
instance variable @label not initialized (this last message repeats many
times)

Am I making any progress?

Best regards,

jcwinnie
(valid Email address upon request)

Hi, Jonathan…

The instructions for installation state, "In RWiki package for your
help, druby, ERb and MutexM have been installed on the `lib’ directory."
This was not true in my experience. Therefore, I attempted to install
all DEPENDENCIES, i.e.,“I did the best that I could.”. Afterward…

Sorry, I made the mistake. I included the obsolete document
into rwiki-2.0pre3. Please try with rd/install.rd of rwiki-2.0pre4.

seki

Thank-you. An admission of an error seems to be a rare thing in the
computer programming world. Thanks for the reply.

m_seki@mva.biglobe.ne.jp wrote:

···

Hi, Jonathan…

The instructions for installation state, "In RWiki package for your
help, druby, ERb and MutexM have been installed on the `lib’ directory."
This was not true in my experience. Therefore, I attempted to install
all DEPENDENCIES, i.e.,“I did the best that I could.”. Afterward…

Sorry, I made the mistake. I included the obsolete document
into rwiki-2.0pre3. Please try with rd/install.rd of rwiki-2.0pre4.

seki

I still am having a problem. It seems to start with Step 3 of RWiki
Installation

  1. Configure rw-config.rb using your favorite editor. (Comment: I am
    lost! If I ‘cp -pr lib/* /home/nahi/lib/ruby’ then what does this next
    step accomplish? It also help to see an example of what is to be
    configured.)

$ cd site
$ vi rw-config.rb

  1. Setup rw-cgi.rb as a CGI program.

$ cp interface/rw-cgi.rb ~/public (Comment: Does this directory already
exist? I have a /var/www/cgi-bin, can I use that directory or must I use
one labelled ~/public ?)
$ chmod 755 ~/public/rw-cgi.rb

  1. Configure rw-cgi.rb. Comment ‘SETUP’ must be configured. (Comment:
    What? I do not understand this instruction.)

  2. Check your ruby/1.6’s library search path. Is your personal library
    dir included? (ex. /home/nahi/lib/ruby)

$ ruby -e ‘p $:’

If not, exec either of below to set the search path. (Comment: Then why
have the reader create /home/nahi in the first place? Why not run ruby
-e ‘p $:’ after installing ruby, then use a directory that exists in the
path?)

m_seki@mva.biglobe.ne.jp wrote:

···

Hi, Jonathan…

The instructions for installation state, "In RWiki package for your
help, druby, ERb and MutexM have been installed on the `lib’ directory."
This was not true in my experience. Therefore, I attempted to install
all DEPENDENCIES, i.e.,“I did the best that I could.”. Afterward…

Sorry, I made the mistake. I included the obsolete document
into rwiki-2.0pre3. Please try with rd/install.rd of rwiki-2.0pre4.

seki

  1. Configure rw-config.rb using your favorite editor. (Comment: I am
    lost! If I ‘cp -pr lib/* /home/nahi/lib/ruby’ then what does this next
    step accomplish? It also help to see an example of what is to be
    configured.)

$ cd site
$ vi rw-config.rb

Yes. You have to set up.

  1. Setup rw-cgi.rb as a CGI program.

$ cp interface/rw-cgi.rb ~/public (Comment: Does this directory already
exist? I have a /var/www/cgi-bin, can I use that directory or must I use
one labelled ~/public ?)
$ chmod 755 ~/public/rw-cgi.rb

“~public” is a example. Please read in accordance with
your environment.

  1. Configure rw-cgi.rb. Comment ‘SETUP’ must be configured. (Comment:
    What? I do not understand this instruction.)

Please edit the following three lines in rw-cgi.rb.

$KCODE = ‘EUC’ # SETUP
rwiki_uri = ‘druby://localhost:8470’ # SETUP
rwiki_log_dir = ‘/var/tmp’ # SETUP

  1. Check your ruby/1.6’s library search path. Is your personal library
    dir included? (ex. /home/nahi/lib/ruby)

$ ruby -e ‘p $:’

If not, exec either of below to set the search path. (Comment: Then why
have the reader create /home/nahi in the first place? Why not run ruby
-e ‘p $:’ after installing ruby, then use a directory that exists in the
path?)

Hmm…
Did someone succeed in installation of RWiki?
I want someone to help edit/write of a manual. Please edit this Wiki page.

#Please forgive my funny English.

Hello, again. We are communicating cross-culturally, so I think it is
easy to be misunderstood.

You seemed to have missed my point. I have no “site” directory. How can
I “cd site” in Step 3?

Yes, a site directory exists – where I unarchived the files prior to
installation – not where I have been installing the files according to
the previous steps. I fail to see how configuring rw-config.rb, in the
place where it exists, will help RWiki to run!

Not to worry about your English. It is sufficient. My Japanese would be
ludicrous.

m_seki@mva.biglobe.ne.jp wrote:

···
  1. Configure rw-config.rb using your favorite editor. (Comment: I am
    lost! If I ‘cp -pr lib/* /home/nahi/lib/ruby’ then what does this next
    step accomplish? It also help to see an example of what is to be
    configured.)

$ cd site
$ vi rw-config.rb

Yes. You have to set up.

#Please forgive my funny English.

Still unable to get RWiki to run

ruby 1.6.8 (2002-12-24) [i686-linux]
Exception NameError' at /usr/local/lib/ruby/site_ruby/1.6/racc/parser.rb:24 - uninitialized constant Object::ParseError ExceptionNameError’ at /usr/local/lib/ruby/site_ruby/1.6/strscan.rb:22

  • uninitialized constant Id_C at StringScanner_C
    /usr/local/lib/ruby/site_ruby/1.6/strscan.rb:22: uninitialized constant
    Id_C at
    StringScanner_C (NameError)
    from
    /usr/local/lib/ruby/site_ruby/1.6/rd/rdinlineparser.tab.rb:13:in require' from /usr/local/lib/ruby/site_ruby/1.6/rd/rdinlineparser.tab.rb:13 from /usr/local/lib/ruby/site_ruby/1.6/rd/rdblockparser.tab.rb:10:inrequire’
    from /usr/local/lib/ruby/site_ruby/1.6/rd/rdblockparser.tab.rb:10
    from /usr/local/lib/ruby/site_ruby/1.6/rd/tree.rb:1:in require' from /usr/local/lib/ruby/site_ruby/1.6/rd/tree.rb:1 from /usr/local/lib/ruby/site_ruby/1.6/rd/rdfmt.rb:2:inrequire’
    from /usr/local/lib/ruby/site_ruby/1.6/rd/rdfmt.rb:2
    from /usr/local/lib/ruby/site_ruby/1.6/rwiki/rwiki.rb:9:in
    require' from /usr/local/lib/ruby/site_ruby/1.6/rwiki/rwiki.rb:9 from rwiki.rb:13:inrequire’
    from rwiki.rb:13

Jonathan Smith wrote:

···

Hello, again. We are communicating cross-culturally, so I think it is
easy to be misunderstood.

You seemed to have missed my point. I have no “site” directory. How can
I “cd site” in Step 3?

Yes, a site directory exists – where I unarchived the files prior to
installation – not where I have been installing the files according to
the previous steps. I fail to see how configuring rw-config.rb, in the
place where it exists, will help RWiki to run!

Not to worry about your English. It is sufficient. My Japanese would be
ludicrous.

m_seki@mva.biglobe.ne.jp wrote:

  1. Configure rw-config.rb using your favorite editor. (Comment: I am
    lost! If I ‘cp -pr lib/* /home/nahi/lib/ruby’ then what does this
    next step accomplish? It also help to see an example of what is to be
    configured.)

$ cd site
$ vi rw-config.rb

Yes. You have to set up.

#Please forgive my funny English.

I copied rwiki.rb and rwconfig.rb to the ~/lib directory and went
through reconfiguring the dependencies again.

I still get an error message:
ruby 1.6.8 (2002-12-24) [i686-linux]
Exception NameError' at /usr/local/lib/ruby/site_ruby/1.6/racc/parser.rb:24 - uninitialized constant Object::ParseError /usr/local/lib/ruby/site_ruby/1.6/rd/visitor.rb:78: warning: method redefined; discarding old visit_Reference ExceptionErrno::ENOENT’ at ./rwiki/rwiki.rb:101 - No such file or
directory -
"…/rd/info.rd"
Exception Errno::ENOENT' at ./rwiki/rwiki.rb:103 - No such file or directory - "../rd/info" ExceptionErrno::ENOENT’ at ./rwiki/rwiki.rb:91 - No such file or
directory - "…/rd/info.rd"
Exception `Errno::ENOENT’ at ./rwiki/rwiki.rb:93 - No such file or
directory - “…/rd/info”

Jonathan Smith wrote:

···

Hello, again. We are communicating cross-culturally, so I think it is
easy to be misunderstood.

You seemed to have missed my point. I have no “site” directory. How can
I “cd site” in Step 3?

Yes, a site directory exists – where I unarchived the files prior to
installation – not where I have been installing the files according to
the previous steps. I fail to see how configuring rw-config.rb, in the
place where it exists, will help RWiki to run!

Not to worry about your English. It is sufficient. My Japanese would be
ludicrous.

m_seki@mva.biglobe.ne.jp wrote:

  1. Configure rw-config.rb using your favorite editor. (Comment: I am
    lost! If I ‘cp -pr lib/* /home/nahi/lib/ruby’ then what does this
    next step accomplish? It also help to see an example of what is to be
    configured.)

$ cd site
$ vi rw-config.rb

Yes. You have to set up.

#Please forgive my funny English.

Hi,

I still get an error message:
ruby 1.6.8 (2002-12-24) [i686-linux]
Exception NameError' at /usr/local/lib/ruby/site_ruby/1.6/racc/parser.rb:24 - uninitialized constant Object::ParseError /usr/local/lib/ruby/site_ruby/1.6/rd/visitor.rb:78: warning: method redefined; discarding old visit_Reference ExceptionErrno::ENOENT’ at ./rwiki/rwiki.rb:101 - No such file or
directory -
"…/rd/info.rd"
Exception Errno::ENOENT' at ./rwiki/rwiki.rb:103 - No such file or directory - "../rd/info" ExceptionErrno::ENOENT’ at ./rwiki/rwiki.rb:91 - No such file or
directory - "…/rd/info.rd"
Exception `Errno::ENOENT’ at ./rwiki/rwiki.rb:93 - No such file or
directory - “…/rd/info”

It seems that the server has started.
Can you access your rw-cgi.rb page?

Hello, thanks for the reply. With all of those error messages I stopped;
I did NOT try to open rw-cgi.rb. I did notice that, rather than being
returned to the command line, it did seem at that point as if a process
was running. I will try and report the result.

Best regards,

Jonathan Smith

Masatoshi SEKI wrote:

···

Hi,

I still get an error message:
ruby 1.6.8 (2002-12-24) [i686-linux]
Exception NameError' at /usr/local/lib/ruby/site_ruby/1.6/racc/parser.rb:24 - uninitialized constant Object::ParseError /usr/local/lib/ruby/site_ruby/1.6/rd/visitor.rb:78: warning: method redefined; discarding old visit_Reference ExceptionErrno::ENOENT’ at ./rwiki/rwiki.rb:101 - No such file or
directory -
"…/rd/info.rd"
Exception Errno::ENOENT' at ./rwiki/rwiki.rb:103 - No such file or directory - "../rd/info" ExceptionErrno::ENOENT’ at ./rwiki/rwiki.rb:91 - No such file or
directory - "…/rd/info.rd"
Exception `Errno::ENOENT’ at ./rwiki/rwiki.rb:93 - No such file or
directory - “…/rd/info”

It seems that the server has started.
Can you access your rw-cgi.rb page?

Today when I try to start the server, ‘ruby -dv rwiki.rb’, I get the
same error messages:

ruby 1.6.8 (2002-12-24) [i686-linux]
Exception NameError' at /usr/local/lib/ruby/site_ruby/1.6/racc/parser.rb:24 - uninitialized constant Object::ParseError /usr/local/lib/ruby/site_ruby/1.6/rd/visitor.rb:78: warning: method redefined; discarding old visit_Reference ExceptionErrno::ENOENT’ at ./rwiki/rwiki.rb:101 - No such file or
directory -
"…/rd/info.rd"
Exception Errno::ENOENT' at ./rwiki/rwiki.rb:103 - No such file or directory - "../rd/info" ExceptionErrno::ENOENT’ at ./rwiki/rwiki.rb:91 - No such file or
directory - "…/rd/info.rd"
Exception `Errno::ENOENT’ at ./rwiki/rwiki.rb:93 - No such file or
directory - “…/rd/info”
[These messages repeated several times.]

···

Following your question, I ignored the messages and tried to start CGI,
http://localhost/cgi-bin/rw-cgi.rb

Hmm, when I try to load rw-cgi.rb into my web browser, I get the
following error message:

The server encountered an internal error and was unable to complete
your request.

 Error message:

Premature end of script headers: rw-cgi.rb

So, something works; it just does NOT work well enough.

I would appreciate your advice.

Masatoshi SEKI wrote:

Hi,

I still get an error message:
ruby 1.6.8 (2002-12-24) [i686-linux]
Exception NameError' at /usr/local/lib/ruby/site_ruby/1.6/racc/parser.rb:24 - uninitialized constant Object::ParseError /usr/local/lib/ruby/site_ruby/1.6/rd/visitor.rb:78: warning: method redefined; discarding old visit_Reference ExceptionErrno::ENOENT’ at ./rwiki/rwiki.rb:101 - No such file or
directory -
"…/rd/info.rd"
Exception Errno::ENOENT' at ./rwiki/rwiki.rb:103 - No such file or directory - "../rd/info" ExceptionErrno::ENOENT’ at ./rwiki/rwiki.rb:91 - No such file or
directory - "…/rd/info.rd"
Exception `Errno::ENOENT’ at ./rwiki/rwiki.rb:93 - No such file or
directory - “…/rd/info”

It seems that the server has started.
Can you access your rw-cgi.rb page?

I again looked at rw-cgi.rb, rw-config.db and the installation
instructions. You refer to ‘druby://localhost:8470’. There is no druby
on my system; I have drb-2.0.0 Does this make any difference?

Following your question, I ignored the messages and tried to start CGI,
http://localhost/cgi-bin/rw-cgi.rb

Hmm, when I try to load rw-cgi.rb into my web browser, I get the
following error message:

The server encountered an internal error and was unable to complete
your request.

 Error message:

Premature end of script headers: rw-cgi.rb

Probably, a library path is lacking.
Does rw-cgi.rb know your library path?
Please add following line to rw-cgi.rb

$:.unshift(’/home/your-home/your-lib’)

That fixed it! Thank-you.

m_seki@mva.biglobe.ne.jp wrote:

···

Following your question, I ignored the messages and tried to start CGI,
http://localhost/cgi-bin/rw-cgi.rb

Hmm, when I try to load rw-cgi.rb into my web browser, I get the
following error message:

The server encountered an internal error and was unable to complete
your request.

Error message:

Premature end of script headers: rw-cgi.rb

Probably, a library path is lacking.
Does rw-cgi.rb know your library path?
Please add following line to rw-cgi.rb

$:.unshift(’/home/your-home/your-lib’)

I released RWiki2.0.
rd/install.rd was changed. Your correction is included in it.
Thank you, JWS.

···

On 2003.2.13, at 11:09 PM, Jonathan Smith wrote:

That fixed it! Thank-you.

You are welcome. I am not a CodeWarrior; I did what I could to help.

Masatoshi SEKI wrote:

···

On 2003.2.13, at 11:09 PM, Jonathan Smith wrote:

That fixed it! Thank-you.

I released RWiki2.0.
rd/install.rd was changed. Your correction is included in it.
Thank you, JWS.