When I run related MySQL program then I got error like:
/home/jaimin/.rvm/rubies/ruby-2.0.0-p353/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in
`require': cannot load such file -- mysql (LoadError)
from
/home/jaimin/.rvm/rubies/ruby-2.0.0-p353/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in
`require'
from jai.rb:2:in `<main>'
I installed rubyGem-2.2.2 and I installed MySQl also.
How can I solve this error?
Kind regards.

On Fri, Mar 14, 2014 at 6:02 PM, Jaimin Pandya <lists@ruby-forum.com>
wrote:
> I installed rubyGem-2.2.2 and I installed MySQl also.>> How can I solve this error?
Can you confirm you actually successfully installed the mysql gem?
Can you show the output of this command:
$ gem list | grep mysql
Jesus.

On Sun, Mar 16, 2014 at 1:41 PM, Jaimin Pandya <lists@ruby-forum.com>
wrote:
>>>> Please try again, and don't confuse with netstat !>>>> Try again means, should I installed MySQL again?>> don't confuse with netstat means I am not unserstand what are you want> to say?
Yes, sorry, I think the language is a problem here. What I mean is
that you showed before:
>>> tcp 0 0 localhost:mysql *:* listen 5342/mysqld
is not the output of what I wrote, it's the output of netstat. I want
you to run this, and show us the result:
gem list | grep mysql
Jesus.

Jesús Gabriel y Galán wrote in post #1140056:
> On Sun, Mar 16, 2014 at 1:41 PM, Jaimin Pandya <lists@ruby-forum.com>> wrote:>>>>>> Please try again, and don't confuse with netstat !>>>>>>> Try again means, should I installed MySQL again?>>>> don't confuse with netstat means I am not unserstand what are you want>> to say?>> Yes, sorry, I think the language is a problem here. What I mean is> that you showed before:>>>>> tcp 0 0 localhost:mysql *:* listen 5342/mysqld>> is not the output of what I wrote, it's the output of netstat.
Yes, I understand that. It is output of netstat.
>> gem list | grep mysql>
When I run above command then output is not display. Cursor shift to
second line like following:
jaimin@ubuntu:~$ gem list | grep mysql
jaimin@ubuntu:~$
Kind regards.

On Sun, Mar 16, 2014 at 7:33 PM, Jaimin Pandya <lists@ruby-forum.com>
wrote:
>> gem list | grep mysql>>>> When I run above command then output is not display. Cursor shift to> second line like following:>> jaimin@ubuntu:~$ gem list | grep mysql> jaimin@ubuntu:~$
So what are the individual parts of that command doing, and what
should the output, or lack of output, of that command tell us?

Hassan Schroeder wrote in post #1140105:
> On Sun, Mar 16, 2014 at 7:33 PM, Jaimin Pandya <lists@ruby-forum.com>> wrote:>>>> gem list | grep mysql>>>>>>> When I run above command then output is not display. Cursor shift to>> second line like following:>>>> jaimin@ubuntu:~$ gem list | grep mysql>> jaimin@ubuntu:~$>> So what are the individual parts of that command doing, and what> should the output, or lack of output, of that command tell us?
In that command:
[1] gem list: When I will run this command then It will load locally
installed gem. So I can see which gems are installed.
[2] grep mysql: used for searching the contents of files for information
that matches particular criteria.
Kind regards.

Jaimin Pandya wrote in post #1140108:
> Hassan Schroeder wrote in post #1140105:>> On Sun, Mar 16, 2014 at 7:33 PM, Jaimin Pandya <lists@ruby-forum.com>>> wrote:
Output of this command (gem list | grep mysql) display like following:
The program 'gem' can be found in the following packages:
* ruby1.9.1
* rubygems
Try: sudo apt-get install <selected package>
Is it correct output? If yes what should I do?
Thank you.

On Mon, Mar 17, 2014 at 1:00 AM, Jaimin Pandya <lists@ruby-forum.com>
wrote:
> Output of this command (gem list | grep mysql) display like following:>> The program 'gem' can be found in the following packages:> * ruby1.9.1> * rubygems> Try: sudo apt-get install <selected package>>> Is it correct output? If yes what should I do?
SMH. Does that *look* like the "correct output" of the command I
asked you to explain? Hint: did it list the gems on your computer?
What you should do is learn how to set up a computer properly with
the version of Ruby and RubyGems you want, *in your path*, and
then learn how to install gems in general.
Trying to code before that's done is simply pointless.

Hassan Schroeder wrote in post #1140159:
>> SMH. Does that *look* like the "correct output" of the command I> asked you to explain? Hint: did it list the gems on your computer?>> What you should do is learn how to set up a computer properly with> the version of Ruby and RubyGems you want, *in your path*, and> then learn how to install gems in general.>> Trying to code before that's done is simply pointless.
Thanks for your advise. I got answer.
Kind regards.