[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

rails: gem install rails is bombing

JD

11/4/2004 3:28:00 AM

Hi,

I'm running into a problem installing rails using gem. How do I fix this?

debian:/usr/local/src# ruby --version
ruby 1.8.2 (2004-08-24) [i386-linux]

debian:/usr/local/src# gem install rails
Attempting local installation of 'rails'
Local gem file not found: rails*.gem
Attempting remote installation of 'rails'
Successfully installed rails, version 0.8.0
/usr/local/lib/site_ruby/1.8/rubygems/loadpath_manager.rb:5:in
`require__': No such file to load -- rdoc/rdoc (LoadError)
from
/usr/local/lib/site_ruby/1.8/rubygems/loadpath_manager.rb:5:in `require'
from /usr/local/lib/site_ruby/1.8/rubygems/doc_manager.rb:42:in
`generate_rdoc'
from
/usr/local/lib/site_ruby/1.8/rubygems/gem_commands.rb:167:in `execute'
from
/usr/local/lib/site_ruby/1.8/rubygems/gem_commands.rb:166:in `each'
from
/usr/local/lib/site_ruby/1.8/rubygems/gem_commands.rb:166:in `execute'
from /usr/local/lib/site_ruby/1.8/rubygems/command.rb:49:in
`invoke'
from /usr/local/lib/site_ruby/1.8/rubygems/cmd_manager.rb:90:in
`process_args'
from /usr/local/lib/site_ruby/1.8/rubygems/cmd_manager.rb:63:in
`run'
from /usr/local/lib/site_ruby/1.8/rubygems/gem_runner.rb:9:in `run'
from /usr/bin/gem:11
9 Answers

David Heinemeier Hansson

11/4/2004 7:19:00 AM

0

> I'm running into a problem installing rails using gem. How do I fix
> this?

You don't have RDoc installed. Debian has chopped off Ruby into tiny
packages. Have a look at http://www.rubyon...show/Rai...
for help.
--
David Heinemeier Hansson,
http://www.basec... -- Web-based Project Management
http://www.rubyon... -- Web-application framework for Ruby
http://macro... -- TextMate: Code and markup editor (OS X)
http://www.loudthi... -- Broadcasting Brain



Ara.T.Howard

11/4/2004 2:40:00 PM

0

Jamis Buck

11/4/2004 3:09:00 PM

0

Ara.T.Howard@noaa.gov wrote:
> On Thu, 4 Nov 2004, David Heinemeier Hansson wrote:
>
>>> I'm running into a problem installing rails using gem. How do I fix
>>> this?
>>
>>
>> You don't have RDoc installed. Debian has chopped off Ruby into tiny
>> packages. Have a look at http://www.rubyonrails.org/show/Rai...
>> for
>> help.
>
>
> i'm thinking of switching to debian but am kind of a tar.gz kind of package
> guy and don't like the sound of that at all... can any of you ruby/debian
> people give any information on debian as a ruby development platform?

If tar.gz's are your thing, Ara, you might enjoy Gentoo
(http://www....) as well. I've found my gentoo install to be
quite capable as a ruby development platform.

- Jamis

--
Jamis Buck
jgb3@email.byu.edu
http://www.jamisbuck...


Ara.T.Howard

11/4/2004 3:47:00 PM

0

Tobias Luetke

11/4/2004 5:13:00 PM

0

Consider me the thrid, gentoo would be the right choice.


On Fri, 5 Nov 2004 00:53:44 +0900, ara.t.howard@noaa.gov
<ara.t.howard@noaa.gov> wrote:
> On Fri, 5 Nov 2004, Jamis Buck wrote:
>
>
>
> > Ara.T.Howard@noaa.gov wrote:
> >> On Thu, 4 Nov 2004, David Heinemeier Hansson wrote:
> >>
> >>>> I'm running into a problem installing rails using gem. How do I fix
> >>>> this?
> >>>
> >>>
> >>> You don't have RDoc installed. Debian has chopped off Ruby into tiny
> >>> packages. Have a look at http://www.rubyonrails.org/show/Rai...
> >>> for
> >>> help.
> >>
> >>
> >> i'm thinking of switching to debian but am kind of a tar.gz kind of package
> >> guy and don't like the sound of that at all... can any of you ruby/debian
> >> people give any information on debian as a ruby development platform?
> >
> > If tar.gz's are your thing, Ara, you might enjoy Gentoo
> > (http://www....) as well. I've found my gentoo install to be
> > quite capable as a ruby development platform.
>
> you are the second person to mention gentoo this week - i'll check it out.
>
>
>
> cheers.
>
> -a
> --
> ===============================================================================
> | EMAIL :: Ara [dot] T [dot] Howard [at] noaa [dot] gov
> | PHONE :: 303.497.6469
> | When you do something, you should burn yourself completely, like a good
> | bonfire, leaving no trace of yourself. --Shunryu Suzuki
> ===============================================================================
>
>


--
Tobi


Jason Sweat

11/4/2004 5:26:00 PM

0

On Fri, 5 Nov 2004 02:12:57 +0900, Tobias Luetke
<tobias.luetke@gmail.com> wrote:
> Consider me the thrid, gentoo would be the right choice.

I dearly love Gentoo as a distro, but I did have one issue with the
ebuild scripts for ruby. I had to manually add the
--enable-install-doc option to the default portage ebuild script for
ruby-1.8.2_pre2 in order to get ri to work correctly. I suggested to
the maintainer of the portage script to add a "doc" USE flag to
control this.

Did anyone else have the same issue I did? Is there a more clever way
around this?

Thanks,

Regards,

Jason
--
http://blog.casey...


Jamis Buck

11/4/2004 5:40:00 PM

0

Jason Sweat wrote:
> On Fri, 5 Nov 2004 02:12:57 +0900, Tobias Luetke
> <tobias.luetke@gmail.com> wrote:
>
>>Consider me the thrid, gentoo would be the right choice.
>
>
> I dearly love Gentoo as a distro, but I did have one issue with the
> ebuild scripts for ruby. I had to manually add the
> --enable-install-doc option to the default portage ebuild script for
> ruby-1.8.2_pre2 in order to get ri to work correctly. I suggested to
> the maintainer of the portage script to add a "doc" USE flag to
> control this.
>
> Did anyone else have the same issue I did? Is there a more clever way
> around this?
>
> Thanks,
>
> Regards,
>
> Jason

Jason,

It looks like this works now--I have the doc USE flag set, and it went
and built all the ri stuff (and I mean ALL the ri stuff).

However...don't know if this is a gentoo problem or a Jamis problem, but
ri is now broken for me. If I do (for example) "ri Array", I only get a
handful of methods shown to me (abbrev, is_complex_yaml?, pretty_print,
pretty_print_cycle, quote, to_yaml, to_yaml_type). Anyone else seen
this? Is there a way to fix this so I can use ri again? Please?

- Jamis

--
Jamis Buck
jgb3@email.byu.edu
http://www.jamisbuck...


Jason Sweat

11/4/2004 6:01:00 PM

0

On Fri, 5 Nov 2004 02:39:49 +0900, Jamis Buck <jgb3@email.byu.edu> wrote:
> Jason,
>
> It looks like this works now--I have the doc USE flag set, and it went
> and built all the ri stuff (and I mean ALL the ri stuff).
>
> However...don't know if this is a gentoo problem or a Jamis problem, but
> ri is now broken for me. If I do (for example) "ri Array", I only get a
> handful of methods shown to me (abbrev, is_complex_yaml?, pretty_print,
> pretty_print_cycle, quote, to_yaml, to_yaml_type). Anyone else seen
> this? Is there a way to fix this so I can use ri again? Please?

Here is what my "ri Array" command returns, is that more or less than
you expected?:

----------------------------------------------------------- Class: Array
Arrays are ordered, integer-indexed collections of any object.
Array indexing starts at 0, as in C or Java. A negative index is
assumed to be relative to the end of the array---that is, an index
of -1 indicates the last element of the array, -2 is the next to
last element in the array, and so on.

------------------------------------------------------------------------


Includes:
---------
Enumerable(all?, any?, collect, detect, each_with_index, entries,
find, find_all, grep, include?, inject, map, max, member?, min,
partition, reject, select, sort, sort_by, to_a, to_set, zip)


Class methods:
--------------
[], new


Instance methods:
-----------------
&, *, +, -, <<, <=>, ==, [], []=, abbrev, assoc, at, clear,
collect, collect!, compact, compact!, concat, delete, delete_at,
delete_if, each, each_index, empty?, eql?, fetch, fill, first,
flatten, flatten!, frozen?, hash, include?, index, indexes,
indices, initialize_copy, insert, inspect, join, last, length, map,
map!, nitems, pack, pop, push, rassoc, reject, reject!, replace,
reverse, reverse!, reverse_each, rindex, select, shift, size,
slice, slice!, sort, sort!, to_a, to_ary, to_s, transpose, uniq,
uniq!, unshift, values_at, zip, |

Regards,
Jason
--
http://blog.casey...


Jamis Buck

11/4/2004 6:06:00 PM

0

Jason Sweat wrote:
> On Fri, 5 Nov 2004 02:39:49 +0900, Jamis Buck <jgb3@email.byu.edu> wrote:
>
>>Jason,
>>
>>It looks like this works now--I have the doc USE flag set, and it went
>>and built all the ri stuff (and I mean ALL the ri stuff).
>>
>>However...don't know if this is a gentoo problem or a Jamis problem, but
>>ri is now broken for me. If I do (for example) "ri Array", I only get a
>>handful of methods shown to me (abbrev, is_complex_yaml?, pretty_print,
>>pretty_print_cycle, quote, to_yaml, to_yaml_type). Anyone else seen
>>this? Is there a way to fix this so I can use ri again? Please?
>
>
> Here is what my "ri Array" command returns, is that more or less than
> you expected?:

[snip]

That is the minimum that I expected. (It's what ri used to return until
I recompiled ruby with the doc USE flag enabled.)

Here's the complete output from "ri18 Array" that I'm seeing:

----------------------------------------------------------- Class: Array
Sequences: Array#to_yaml

------------------------------------------------------------------------


Instance methods:
-----------------
abbrev, is_complex_yaml?, pretty_print, pretty_print_cycle, quote,
to_yaml, to_yaml_type




And, for Object:

---------------------------------------------------------- Class: Object
(no description...)
------------------------------------------------------------------------


Includes:
---------
PP::ObjectMixin(pretty_print, pretty_print_cycle,
pretty_print_inspect, pretty_print_instance_variables)


Instance methods:
-----------------
is_complex_yaml?, to_yaml, to_yaml_properties, to_yaml_type



I have no idea what is going on. Has anyone else seen this?

- Jamis

--
Jamis Buck
jgb3@email.byu.edu
http://www.jamisbuck...