apt-get versus gem

Scott (angrykeyboarder) geekboy at angrykeyboarder.com
Fri Mar 28 05:20:12 UTC 2008


Caleb Marcus spake thusly:
>> 
> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN"> <HTML>
> <HEAD>
>   <META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
>   <META NAME="GENERATOR" CONTENT="GtkHTML/3.16.1">
> </HEAD>
> <BODY>
> I don't know much about Ruby and gems, but I can tell you that I'm
> guessing that installing the "gem" is similar to installing a
> Python "egg." It's installing the Ruby module, but not
> installing the executable in the system path. I'd just use apt-get, if I
> were you.<BR> On Thu, 2008-03-27 at 09:44 +0000, thufir wrote:
> <BLOCKQUOTE TYPE=CITE>
> <PRE>
> <FONT COLOR="#000000">On Thu, 27 Mar 2008 09:21:28 +0000, thufir
> wrote:</FONT>
> 
> 
> <FONT COLOR="#000000">> This is a relatively common package so is
> distributed through apt-get.</FONT> <FONT COLOR="#000000">> Is there
> a problem with installing rake through rubygems?</FONT>
> 
> 
> <FONT COLOR="#000000">Well, it doesn't even seem to install correctly
> through gems :(</FONT>
> 
> <FONT COLOR="#000000">Is this just an environment variable issue, that
> "rake" is unknown?</FONT>
> 
> 
> <FONT COLOR="#000000">thufir at arrakis:~$ </FONT> <FONT
> COLOR="#000000">thufir at arrakis:~$ gem install rake</FONT> <FONT
> COLOR="#000000">Bulk updating Gem source index for: <A
> HREF="http://gems.rubyforge.org">http://gems.rubyforge.org</A></FONT>
> <FONT COLOR="#000000">ERROR:  While executing gem ...
> (Errno::EACCES)</FONT> <FONT COLOR="#000000">    Permission denied -
> /var/lib/gems/1.8/cache/rake-0.8.1.gem</FONT> <FONT
> COLOR="#000000">thufir at arrakis:~$ </FONT> <FONT
> COLOR="#000000">thufir at arrakis:~$ sudo gem install rake</FONT> <FONT
> COLOR="#000000">Successfully installed rake-0.8.1</FONT> <FONT
> COLOR="#000000">Installing ri documentation for rake-0.8.1...</FONT>
> <FONT COLOR="#000000">Installing RDoc documentation for
> rake-0.8.1...</FONT> <FONT COLOR="#000000">thufir at arrakis:~$ </FONT>
> <FONT COLOR="#000000">thufir at arrakis:~$ rake</FONT> <FONT
> COLOR="#000000">The program 'rake' is currently not installed.  You can
> install it by </FONT> <FONT COLOR="#000000">typing:</FONT>
> <FONT COLOR="#000000">sudo apt-get install rake</FONT> <FONT
> COLOR="#000000">bash: rake: command not found</FONT> <FONT
> COLOR="#000000">thufir at arrakis:~$ </FONT> <FONT
> COLOR="#000000">thufir at arrakis:~$ </FONT> <FONT
> COLOR="#000000">thufir at arrakis:~$ gem list --local --verbose</FONT>
> 
> <FONT COLOR="#000000">*** LOCAL GEMS ***</FONT>
> 
> <FONT COLOR="#000000">rake (0.8.1)</FONT> <FONT COLOR="#000000">    Ruby
> based make-like utility.</FONT>
> 
> <FONT COLOR="#000000">sources (0.0.1)</FONT> <FONT COLOR="#000000">   
> This package provides download sources for remote gem
> installation</FONT> <FONT COLOR="#000000">thufir at arrakis:~$ </FONT>
> <FONT COLOR="#000000">thufir at arrakis:~$ sudo gem list --local
> --verbose</FONT>
> 
> <FONT COLOR="#000000">*** LOCAL GEMS ***</FONT>
> 
> <FONT COLOR="#000000">rake (0.8.1)</FONT> <FONT COLOR="#000000">    Ruby
> based make-like utility.</FONT>
> 
> <FONT COLOR="#000000">sources (0.0.1)</FONT> <FONT COLOR="#000000">   
> This package provides download sources for remote gem
> installation</FONT> <FONT COLOR="#000000">thufir at arrakis:~$ </FONT>
> 
> <FONT COLOR="#000000">thanks,</FONT>
> 
> <FONT COLOR="#000000">Thufir</FONT>
> 
> 
> </PRE>
> </BLOCKQUOTE>
> </BODY>
> </HTML>

It speaks for itself....



-- 
            Scott
http://angrykeyboarder.com
I've never used an OS I didn't (dis)like.
I'm angrykeyboarder™ and I approved this message.






More information about the ubuntu-users mailing list