Installing naive bayes classifier

Hello
This is my first time here so I hope my format is correct
I am a beginner using ruby and I am trying to add a naive bayes
classifier gem i am using netbeans IDE on windows system it keeps on
giving me this error

Gems fetching failed.

See troubleshooting section in http://wiki.netbeans.org/RubyGems for
help.

Follows output of the gem tool:
ERROR: While executing gem … (Gem::RemoteFetcher::FetchError)
bad response Proxy Authorization Required 407
(http://rubygems.org/quick/Marshal.4.8/--1.gemspec.rz)

I followed the instructions on http://wiki.netbeans.org/RubyGems
nothing works
can anyone help me
thank you

aya abdelsalam wrote in post #1019814:

Hello
This is my first time here so I hope my format is correct
I am a beginner using ruby and I am trying to add a naive bayes
classifier gem i am using netbeans IDE on windows system it keeps on
giving me this error

Gems fetching failed.

See troubleshooting section in http://wiki.netbeans.org/RubyGems for
help.

Follows output of the gem tool:
ERROR: While executing gem … (Gem::RemoteFetcher::FetchError)
bad response Proxy Authorization Required 407
(http://rubygems.org/quick/Marshal.4.8/--1.gemspec.rz)

Seems you’re behind a proxy, “Proxy Authorization Required”

Please set HTTP_PROXY environment variable to your proxy configuration
using URI syntax:

http://user:pass@host:port/

or use the --http-proxy option during gem installation:

gem install foo --http-proxy=http://user:pass@host:port/


Luis L.

Tried setting HTTP_PROXY environment variable to my proxy configuration
as you told me
it still isn’t working here is its new error message

Gems fetching failed.

See troubleshooting section in http://wiki.netbeans.org/RubyGems for
help.

Follows output of the gem tool:
ERROR: While executing gem … (URI::InvalidURIError)
the scheme http does not accept registry part: user:pass@host:port
(or bad hostname?)

Do you think the problem is in netbeans IDE?

Thanks

On Fri, Sep 2, 2011 at 6:58 PM, aya abdelsalam [email protected]
wrote:

Tried setting HTTP_PROXY environment variable to my proxy configuration
as you told me
it still isn’t working here is its new error message

AFAIK the variable name must be lowercase so http_proxy instead of
HTTP_PROXY.

Gems fetching failed.

See troubleshooting section in http://wiki.netbeans.org/RubyGems for
help.

Follows output of the gem tool:
ERROR: While executing gem … (URI::InvalidURIError)
the scheme http does not accept registry part: user:pass@host:port
(or bad hostname?)

On what OS are you?

Kind regards

robert

On Fri, Sep 2, 2011 at 6:58 PM, aya abdelsalam [email protected]
wrote:

Do you think the problem is in netbeans IDE?

If you are using the inbuilt JRuby: Yes, most likely. It’s vastly out
of date, including the tools that JRuby/NetBeans inclue (like
RubyGems).

Upgrading both of those is difficult, though, but NetBeans will
happily use external Ruby installations. 1.9 support is lacking,
though.


Phillip G.

phgaw.posterous.com | twitter.com/phgaw | gplus.to/phgaw

A method of solution is perfect if we can forsee from the start,
and even prove, that following that method we shall attain our aim.
– Leibniz

I am not using JRUBY I am using externally installed Ruby at Netbeans
and still I have no clue why it doesn’t want to accept any gems

Thanks

I am using windows

On Fri, Sep 2, 2011 at 7:23 PM, aya abdelsalam [email protected]
wrote:

I am not using JRUBY I am using externally installed Ruby at Netbeans
and still I have no clue why it doesn’t want to accept any gems

What can
$ ruby -v
$ gem -v

tell us?


Phillip G.

phgaw.posterous.com | twitter.com/phgaw | gplus.to/phgaw

A method of solution is perfect if we can forsee from the start,
and even prove, that following that method we shall attain our aim.
– Leibniz

Where should I write
$ ruby -v
$ gem -v???

in the command line ?

I wrote it and here is what i got
for $ ruby -v

ruby 1.8.7 (2011-06-30 patchlevel 352) [i386-mingw32]

and for $ gem-v
1.7.2

should i change something?? sorry for my ignorance I am still a beginner
Thank you very much :):slight_smile:

On Fri, Sep 2, 2011 at 7:36 PM, aya abdelsalam [email protected]
wrote:

Where should I write
$ ruby -v
$ gem -v???

in the command line ?

Yes. On Windows, dispense with the $ (it’s a general signal that means
“do this on the command line of your computer”), though. :slight_smile:


Phillip G.

phgaw.posterous.com | twitter.com/phgaw | gplus.to/phgaw

A method of solution is perfect if we can forsee from the start,
and even prove, that following that method we shall attain our aim.
– Leibniz