RMagick installation on 64bit ubuntu 7.04

Dear All,

Thanks in advance !

i have ubuntu 7.04 64 bit installed… i want to install RMagick 2.5 and
i have done that installation but it is working ?

here are some outputs


root@bpocanada-desktop:/home/bpocanada/Desktop/ImageMagick-6.4.1# gem
install rmagick
Bulk updating Gem source index for: http://gems.rubyforge.org/
Building native extensions. This could take a while…
Successfully installed rmagick-2.5.1
1 gem installed


root@bpocanada-desktop:/home/bpocanada/test2# irb
irb(main):001:0> require ‘RMagick’
LoadError: no such file to load – RMagick
from (irb):1:in `require’
from (irb):1
irb(main):002:0> exit

Here anything missing like PATH of some directories ?

and when i do irb -rubygems -r RMagick instead of irb ? like following !


root@bpocanada-desktop:/home/bpocanada/test2# irb -rubygems -r RMagick
irb(main):001:0> require ‘RMagick’
=> false
irb(main):002:0>

Here it should be True ? or False ?


root@bpocanada-desktop:/home/bpocanada/test2# gem list

*** LOCAL GEMS ***

actionmailer (2.1.0)
actionpack (2.1.0)
activerecord (2.1.0)
activeresource (2.1.0)
activesupport (2.1.0)
rails (2.1.0)
rake (0.8.1)
rmagick (2.5.1)
root@bpocanada-desktop:/home/bpocanada/test2#

when i check dependency for rmagick ?

root@bpocanada-desktop:/home/bpocanada/test2# gem dependency rmagick
Gem rmagick-2.5.1

So what anything else u need ?

On Jun 24, 8:57 am, Ishan P. [email protected]
wrote:

Dear All,

Thanks in advance !

i have ubuntu 7.04 64 bit installed… i want to install RMagick 2.5 and
i have done that installation but it is working ?

Have you tried actually using it?


root@bpocanada-desktop:/home/bpocanada/test2# irb
irb(main):001:0> require ‘RMagick’
LoadError: no such file to load – RMagick
from (irb):1:in `require’
from (irb):1
irb(main):002:0> exit

it’s a gem, so if you don’t load rubygems then you can’t require it

Here it should be True ? or False ?

if the require doesn’t through an exception it means that the library
has been loaded (or in this case was already loaded)

Fred

Frederick C. wrote:

Have you tried actually using it?

Hey i am a Linux admin and i have been given task to solve the RoR
developers issus and it is their issu! They told me that the out put of
the following

root@bpocanada-desktop:/home/bpocanada/test2# irb -rubygems -r RMagick
irb(main):001:0> require ‘RMagick’
=> false
irb(main):002:0>

should be True fot them to use it ! and i have to solve this as it is
false right now !

so …


On Jun 24, 10:28 am, Ishan P. [email protected]
wrote:

irb(main):002:0>

should be True fot them to use it ! and i have to solve this as it is
false right now !

They’re wrong. You’re requiring it twice (once with the -r flag, once
explicitly), so it’s perfectly normal for the second require to return
false because require won’t load the same path twice.

Fred

Frederick C. wrote:

On Jun 24, 10:28�am, Ishan P. [email protected]
wrote:

irb(main):002:0>

should be True fot them to use it ! and i have to solve this as it is
false right now !

They’re wrong. You’re requiring it twice (once with the -r flag, once
explicitly), so it’s perfectly normal for the second require to return
false because require won’t load the same path twice.

Fred

OK i understand what u want to say but …
if i do following command then ( irb with out any -r option to load
RMagick) and then if i do require ‘RMagick’ then it will give me like
following !!! why ?

root@bpocanada-desktop:/home/bpocanada/test2# irb
irb(main):001:0> require ‘RMagick’
LoadError: no such file to load – RMagick
from (irb):1:in `require’
from (irb):1
irb(main):002:0> exit

On 24 Jun 2008, at 10:45, Ishan P. wrote:

They’re wrong. You’re requiring it twice (once with the -r flag, once
explicitly), so it’s perfectly normal for the second require to
return
false because require won’t load the same path twice.

Fred

OK i understand what u want to say but …
if i do following command then ( irb with out any -r option to load
RMagick) and then if i do require ‘RMagick’ then it will give me like
following !!! why ?
because you need to require rubygems first.

Fred

Frederick C. wrote:

On 24 Jun 2008, at 10:45, Ishan P. wrote:

They’re wrong. You’re requiring it twice (once with the -r flag, once
explicitly), so it’s perfectly normal for the second require to
return
false because require won’t load the same path twice.

Fred

OK i understand what u want to say but …
if i do following command then ( irb with out any -r option to load
RMagick) and then if i do require ‘RMagick’ then it will give me like
following !!! why ?
because you need to require rubygems first.

Fred

OKKKKKKKKK

I got that…

yessssssssssssssssss…

T H A N K S Fred !