Can't able to solve load error

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

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 P. [email protected]
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.

Jesús Gabriel y Galán wrote in post #1139866:

On Fri, Mar 14, 2014 at 6:02 PM, Jaimin P. [email protected]
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

Output of above command is:

tcp 0 0 localhost:mysql : listen 5342/mysqld

Kind regards.

Jesús Gabriel y Galán wrote in post #1139870:

On Fri, Mar 14, 2014 at 6:14 PM, Jaimin P. [email protected]
wrote:

$ gem list | grep mysql

Output of above command is:

tcp 0 0 localhost:mysql : listen 5342/mysqld

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?

Regards.

On Fri, Mar 14, 2014 at 6:14 PM, Jaimin P. [email protected]
wrote:

$ gem list | grep mysql

Output of above command is:

tcp 0 0 localhost:mysql : listen 5342/mysqld

Please try again, and don’t confuse with netstat !

Jesus.

On Sun, Mar 16, 2014 at 1:41 PM, Jaimin P. [email protected]
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 P. [email protected]
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:

[email protected]:~$ gem list | grep mysql
[email protected]:~$

Kind regards.

Hassan S. wrote in post #1140105:

On Sun, Mar 16, 2014 at 7:33 PM, Jaimin P. [email protected]
wrote:

gem list | grep mysql

When I run above command then output is not display. Cursor shift to
second line like following:

[email protected]:~$ gem list | grep mysql
[email protected]:~$

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.

On Sun, Mar 16, 2014 at 7:33 PM, Jaimin P. [email protected]
wrote:

gem list | grep mysql

When I run above command then output is not display. Cursor shift to
second line like following:

[email protected]:~$ gem list | grep mysql
[email protected]:~$

So what are the individual parts of that command doing, and what
should the output, or lack of output, of that command tell us?

Jaimin P. wrote in post #1140108:

Hassan S. wrote in post #1140105:

On Sun, Mar 16, 2014 at 7:33 PM, Jaimin P. [email protected]
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

Is it correct output? If yes what should I do?

Thank you.

On Mon, Mar 17, 2014 at 1:00 AM, Jaimin P. [email protected]
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

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 S. 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.

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs