On Mar 18, 3:34 pm, valuemon... / telus.net wrote:
> On Mar 12, 3:29 pm, "bbiker" <ren... / nc.rr.com> wrote:
>
> > Have you tried "gem query -n ruby-activeldap -r"  to verify that it exist if
> > it does you can "gem install ruby_activeldap"   the -r is not necessary unless
> > you have a local copy of the gemspec
>
> > The correct syntax if "gem install ruby_activeldap -r"
>
> Hi bbiker:
>
> Thanks for the response.
>
> It looks like I can see the gem package on the server. Here's what I
> see:
>
> C:\>gem query -n ruby-activeldap -r
> C:\>"c:\ruby\bin\ruby.exe" "c:\ruby\bin\gem" query -n ruby-activeldap -
> r
> *** REMOTE GEMS ***
> ruby-activeldap (0.8.1, 0.8.0, 0.7.4, 0.7.3, 0.7.2, 0.7.1, 0.7.0,
> 0.6.0,
> 0.5.9, 0.5.8, 0.5.7, 0.5.5, 0.5.4, 0.5.3, 0.5.2, 0.5.1, 0.5.0, 0.4.4,
> 0.4.3,
> 0.4.2, 0.4.1)
> Ruby/ActiveLdap is a object-oriented API to LDAP
> ruby-activeldap-debug (0.7.4, 0.7.3, 0.7.2, 0.7.1, 0.7.0, 0.6.0,
> 0.5.9, 0.5.8,
> 0.5.7, 0.5.6, 0.5.5)
> Ruby/ActiveLDAP is a object-oriented API to LDAP
>
> This looks fine to me. So I tried to install it, but it still doesn't
> work. Here's the output:
>
> C:\>gem install ruby-activeldap -r
> C:\>"c:\ruby\bin\ruby.exe" "c:\ruby\bin\gem" install ruby-activeldap -
> r
> Attempting remote installation of 'ruby-activeldap'
> Install required dependency log4r? [Yn]  Y
> ERROR:  While executing gem ... (OpenURI::HTTPError)
>     404 Not Found
>
> The output is always failing on the log4r installation, so I tried to
> only install this gem package. Again, it failed. Here's the output:
>
> C:\>gem query -n log4r -r
> C:\>"c:\ruby\bin\ruby.exe" "c:\ruby\bin\gem" query -n log4r -r
>
> *** REMOTE GEMS ***
>
> log4r (1.0.5)
>     Log4r is a comprehensive and flexible logging library for Ruby.
>
> C:\>gem install log4r -r
> C:\>"c:\ruby\bin\ruby.exe" "c:\ruby\bin\gem" install log4r -r
> Attempting remote installation of 'log4r'
> ERROR:  While executing gem ... (OpenURI::HTTPError)
>     404 Not Found
>
> So for my own sanity, I decided to install a gem package for something
> that I figure would have relatively few dependencies. I tried
> rubytree. Here's what I saw:
>
> C:\>gem query -n rubytree -r
> C:\>"c:\ruby\bin\ruby.exe" "c:\ruby\bin\gem" query -n rubytree -r
> *** REMOTE GEMS ***
> rubytree (0.2.3, 0.2.2)
>     Ruby implementation of the Tree data structure.
>
> C:\>gem install rubytree -r
>
> C:\>"c:\ruby\bin\ruby.exe" "c:\ruby\bin\gem" install rubytree -r
> Attempting remote installation of 'rubytree'
> Successfully installed rubytree-0.2.3
> Installing RDoc documentation for rubytree-0.2.3...
>
> C:\>
>
> This one works with no fuss. So I'm still in the same place as before.
> Any thoughts on how I can get this to work?

which version of ruby and gem?


C:\Documents and Settings\Owner>ruby -v
ruby 1.8.6 (2007-03-13 patchlevel 0) [i386-mswin32]

C:\Documents and Settings\Owner>gem -v
0.9.2

goto to: http://sourceforge.net/project/showfiles.php?group_id=43396
and download the log4r-1.0.5 gem file.

In the folder where you saved the gem, invoke gem install log4r -l

note you do NOT need to specify -r if the gem that you want to install
is not located in the current directory ... gem searches the current
working directory for the specified gem, if not found then it
automatically does a remote search for the gem.

the -r option is used when you do not want to install the local copy