Can't able to 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 `<main>'

I installed rubyGem-2.2.2 and I installed MySQl also.

How can I solve this error?

Kind regards.

···

--
Posted via http://www.ruby-forum.com/.

Can you confirm you actually successfully installed the mysql gem?
Can you show the output of this command:

$ gem list | grep mysql

Jesus.

···

On Fri, Mar 14, 2014 at 6:02 PM, Jaimin Pandya <lists@ruby-forum.com> wrote:

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?

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

···

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

Output of above command is:

tcp 0 0 localhost:mysql *:* listen 5342/mysqld

Kind regards.

--
Posted via http://www.ruby-forum.com/\.

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

Jesus.

···

On Fri, Mar 14, 2014 at 6:14 PM, Jaimin Pandya <lists@ruby-forum.com> wrote:

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

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

Output of above command is:

tcp 0 0 localhost:mysql *:* listen 5342/mysqld

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

···

On Fri, Mar 14, 2014 at 6:14 PM, Jaimin Pandya <lists@ruby-forum.com> > 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.

--
Posted via http://www.ruby-forum.com/\.

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

$ 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?

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.

···

On Sun, Mar 16, 2014 at 1:41 PM, Jaimin Pandya <lists@ruby-forum.com> wrote:

On Fri, Mar 14, 2014 at 6:14 PM, Jaimin Pandya <lists@ruby-forum.com> >> wrote:

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

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 1:41 PM, Jaimin Pandya <lists@ruby-forum.com> > wrote:

--
Posted via http://www.ruby-forum.com/\.

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

···

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:~$

--
Hassan Schroeder ------------------------ hassan.schroeder@gmail.com

twitter: @hassa

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.

--
Posted via http://www.ruby-forum.com/\.

Jaimin Pandya wrote in post #1140108:

Hassan Schroeder wrote in post #1140105:

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 Sun, Mar 16, 2014 at 7:33 PM, Jaimin Pandya <lists@ruby-forum.com> >> wrote:

--
Posted via http://www.ruby-forum.com/\.

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.

···

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?

--
Hassan Schroeder ------------------------ hassan.schroeder@gmail.com

twitter: @hassan

Try: sudo apt-get install <selected package>

···

--
  Matthew Kerwin
  http://matthew.kerwin.net.au/