gem install

B

Brian Smither

It's nice where you are given the command line text to use to install a gem
(see: http://rubygems.org/gems/mysql2), and even more info on the gem's
homepage (see: https://github.com/brianmario/mysql2 "Installing"). But when
is this syntax ever going to change?

I would REALLY like it if there were more to "You may have to specify...".
When? Why? What happens if I don't?

And I would REALLY like it if explanations of errors were discussed. For
example:
Successfully installed mysql2-0.2.6-x86-mingw32
1 gem installed
Installing ri documentation for mysql2-0.2.6-x86-mingw32...
Enclosing class/module 'mMysql2' for class Client not known
Installing RDoc documentation for mysql2-0.2.6-x86-mingw32...
Enclosing class/module 'mMysql2' for class Client not known

Is 'class Client not known' reporting an error, or it supposed to say this
when things are good?
 
J

Jonas Pfenniger (zimbatm)

2011/1/7 Brian Smither said:
It's nice where you are given the command line text to use to install a gem
(see: http://rubygems.org/gems/mysql2), and even more info on the gem's
homepage (see: https://github.com/brianmario/mysql2 "Installing"). But when
is this syntax ever going to change?

I would REALLY like it if there were more to "You may have to specify...".
When? Why? What happens if I don't?

If gem install works, then you don't have to worry about it. It's for
people who install mysql in a non-standard place.
And I would REALLY like it if explanations of errors were discussed. For
example:
Successfully installed mysql2-0.2.6-x86-mingw32
1 gem installed
Installing ri documentation for mysql2-0.2.6-x86-mingw32...
Enclosing class/module 'mMysql2' for class Client not known
Installing RDoc documentation for mysql2-0.2.6-x86-mingw32...
Enclosing class/module 'mMysql2' for class Client not known

Is 'class Client not known' reporting an error, or it supposed to say this
when things are good?

I agree that this is confusing. The error is generated by the ri and
RDoc generator, which is not able to understand some statement in the
source code. It means that the documentation may not be perfect, but
this doesn't affect the library execution at all.

Cheers,
zimbatm
 
L

Luis Lavena

Successfully installed mysql2-0.2.6-x86-mingw32
1 gem installed
Installing ri documentation for mysql2-0.2.6-x86-mingw32...
Enclosing class/module 'mMysql2' for class Client not known
Installing RDoc documentation for mysql2-0.2.6-x86-mingw32...
Enclosing class/module 'mMysql2' for class Client not known

Is 'class Client not known' reporting an error, or it supposed to say this
when things are good?

The error came after "1 gem installed" So the gem installed and the
context of the error is around "Installing ri/RDoc documentation"

You need to report this documentation "bug" to the gem author:

http://github.com/brianmario/mysql2/issues

But first look there if nobody else reported it before.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,582
Members
45,070
Latest member
BiogenixGummies

Latest Threads

Top