Hello, I''ve tried everything I could find, but I can''t figure out how to install rails on Debian stable. The gem program only installs the rails_analyzer, and there doesn''t seem to be a Debian package for rails yet. Anybody succeed at this? Thanks, John S. _______________________________________________ Rails mailing list Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org http://lists.rubyonrails.org/mailman/listinfo/rails
On Thu, Sep 08, 2005 at 08:56:33AM -0600, John W. M. Stevens wrote:> Hello, > > I''ve tried everything I could find, but I can''t figure out how to install > rails on Debian stable. > > The gem program only installs the rails_analyzer, and there doesn''t seem > to be a Debian package for rails yet. > > Anybody succeed at this?yes, I have Rails up and running on Sarge. I just followed the steps described in the rails wiki: http://wiki.rubyonrails.com/rails/show/RailsOnUbuntuDebianTestingAndUnstable (under ''Common procedure for Debian Sarge and Ubuntu Warty''). It boils down to first install rubygems from source, and then do gem install rubygems-update gem install rails hth, Jens -- Jens Krämer jk-UayuY8ajoWPk1uMJSBkQmQ@public.gmane.org
I did exactly that about 3 hours ago :-) Are you installing into ruby1.8? The default ruby on stable is 1.6. There are a few bits and pieces (like libopenssl-ruby1.8) that I had to manually add, but I just went through the package list at http://wiki.rubyonrails.com/rails/show/RailsDebianStable one by one until all the packages were installed. Then I installed ruby-gems, and after which ''gem install rails'' worked a charm... The only thing I had to come back for was the postgresql adapter. I''ll agree it''s hardly elegant, but it does seem to work in the end. So, what''s the output of ruby -v? :-) -- Alex (P.S. There is a Debian rails package, but it''s only for unstable.) John W. M. Stevens wrote:> Hello, > > I''ve tried everything I could find, but I can''t figure out how to install > rails on Debian stable. > > The gem program only installs the rails_analyzer, and there doesn''t seem > to be a Debian package for rails yet. > > Anybody succeed at this? > > Thanks, > John S. >
On Thu, Sep 08, 2005 at 05:06:44PM +0200, Jens Kraemer wrote:> On Thu, Sep 08, 2005 at 08:56:33AM -0600, John W. M. Stevens wrote: > > Hello, > > > > I''ve tried everything I could find, but I can''t figure out how to install > > rails on Debian stable. > > > > The gem program only installs the rails_analyzer, and there doesn''t seem > > to be a Debian package for rails yet. > > > > Anybody succeed at this? > > yes, I have Rails up and running on Sarge. I > just followed the steps described in the rails wiki: > http://wiki.rubyonrails.com/rails/show/RailsOnUbuntuDebianTestingAndUnstable > (under ''Common procedure for Debian Sarge and Ubuntu Warty''). > > It boils down to first install rubygems from source, and then do > > gem install rubygems-updateThis gives me: # gem install rubygems-update Attempting local installation of ''rubygems-update'' Local gem file not found: rubygems-update*.gem Attempting remote installation of ''rubygems-update'' Successfully installed rubygems-update, version 0.8.11 Installing RDoc documentation for rubygems-update-0.8.11... WARNING: Generating RDoc on .gem that may not have RDoc.> gem install railsThis, however, only gives me: # gem install rails Attempting local installation of ''rails'' Local gem file not found: rails*.gem Attempting remote installation of ''rails'' Successfully installed rails_analyzer_tools, version 1.0.0 Installing RDoc documentation for rails_analyzer_tools-1.0.0... But as you can see, no rails. Getting rails analyzer without rails is particulary and rather poignantly irritating. Any hints, please? Thanks for replying, John S. _______________________________________________ Rails mailing list Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org http://lists.rubyonrails.org/mailman/listinfo/rails
On Thu, Sep 08, 2005 at 04:11:13PM +0100, Alex Young wrote:> I did exactly that about 3 hours ago :-) > > Are you installing into ruby1.8? > The default ruby on stable is 1.6.Yep. I cleaned out ruby1.6 just to be safe.> There are a few bits and pieces (like libopenssl-ruby1.8) that I had to > manually add, but I just went through the package list at > http://wiki.rubyonrails.com/rails/show/RailsDebianStable one by one > until all the packages were installed. Then I installed ruby-gems, and > after which ''gem install rails'' worked a charm...This last bit is what is simply failing. When I run: gem install rails I only get the rails analyzer . . . no rails.> The only thing I had > to come back for was the postgresql adapter. I''ll agree it''s hardly > elegant, but it does seem to work in the end. > > So, what''s the output of ruby -v? :-)ruby 1.8.2 (2005-04-11) [i386-linux] Does anybody know how to install rails manually, and where the stuff should be downloaded from, and installed to? Thanks for replying, John S. _______________________________________________ Rails mailing list Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org http://lists.rubyonrails.org/mailman/listinfo/rails
John W. M. Stevens wrote:> On Thu, Sep 08, 2005 at 05:06:44PM +0200, Jens Kraemer wrote: > >>On Thu, Sep 08, 2005 at 08:56:33AM -0600, John W. M. Stevens wrote: >> >>gem install rails > > > This, however, only gives me: > > # gem install rails > Attempting local installation of ''rails'' > Local gem file not found: rails*.gem > Attempting remote installation of ''rails'' > Successfully installed rails_analyzer_tools, version 1.0.0 > Installing RDoc documentation for rails_analyzer_tools-1.0.0... > > But as you can see, no rails. Getting rails analyzer without rails is > particulary and rather poignantly irritating.Just out of interest, what does ''gem install activerecord'' give you? -- Alex
John W. M. Stevens wrote:>Hello, > >I''ve tried everything I could find, but I can''t figure out how to install >rails on Debian stable. > >The gem program only installs the rails_analyzer, and there doesn''t seem >to be a Debian package for rails yet. > >Anybody succeed at this? > >Thanks, >John S. > >I have installed on Debian stable. I installed ruby, ri, irb, ril, and importantly rdoc. If you get rdoc, you will can get a working environment. If you don''t install rdoc before rails, it won''t build the API docs, and they are really useful. I then downloaded rubygems (not with apt) and ran the setup.rb. Once I had that, I just did a gem install rails, and said yes a lot, then did a gem install postgres-pr since I don''t use MySQL.
On Thu, Sep 08, 2005 at 04:18:52PM +0100, Alex Young wrote:> John W. M. Stevens wrote: > > On Thu, Sep 08, 2005 at 05:06:44PM +0200, Jens Kraemer wrote: > > > >>On Thu, Sep 08, 2005 at 08:56:33AM -0600, John W. M. Stevens wrote: > >> > >>gem install rails > > > > > > This, however, only gives me: > > > > # gem install rails > > Attempting local installation of ''rails'' > > Local gem file not found: rails*.gem > > Attempting remote installation of ''rails'' > > Successfully installed rails_analyzer_tools, version 1.0.0 > > Installing RDoc documentation for rails_analyzer_tools-1.0.0... > > > > But as you can see, no rails. Getting rails analyzer without rails is > > particulary and rather poignantly irritating. > > Just out of interest, what does ''gem install activerecord'' give you?This seems more promising . . . morningstar:~# gem install activerecord Attempting local installation of ''activerecord'' Local gem file not found: activerecord*.gem Attempting remote installation of ''activerecord'' Install required dependency activesupport? [Yn] Successfully installed activerecord, version 1.11.1 Installing RDoc documentation for activerecord-1.11.1... Installing RDoc documentation for activesupport-1.1.1... Thanks! That seems to have worked. Now all I have to do is find a list of all the sub-packages that rails is supposed to install, and I''m there. I suppose I should report this as a bug . . . anybody know the contact info for this? Thanks again, John S. _______________________________________________ Rails mailing list Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org http://lists.rubyonrails.org/mailman/listinfo/rails
On Thu, Sep 08, 2005 at 09:15:19AM -0600, John W. M. Stevens wrote:> On Thu, Sep 08, 2005 at 05:06:44PM +0200, Jens Kraemer wrote: > > On Thu, Sep 08, 2005 at 08:56:33AM -0600, John W. M. Stevens wrote: > > > Hello, > > > > > > I''ve tried everything I could find, but I can''t figure out how to install > > > rails on Debian stable. > > > > > > The gem program only installs the rails_analyzer, and there doesn''t seem > > > to be a Debian package for rails yet. > > > > > > Anybody succeed at this? > > > > yes, I have Rails up and running on Sarge. I > > just followed the steps described in the rails wiki: > > http://wiki.rubyonrails.com/rails/show/RailsOnUbuntuDebianTestingAndUnstable > > (under ''Common procedure for Debian Sarge and Ubuntu Warty''). > > > > It boils down to first install rubygems from source, and then do > > > > gem install rubygems-update > > This gives me: > > # gem install rubygems-update > Attempting local installation of ''rubygems-update'' > Local gem file not found: rubygems-update*.gem > Attempting remote installation of ''rubygems-update'' > Successfully installed rubygems-update, version 0.8.11 > Installing RDoc documentation for rubygems-update-0.8.11... > WARNING: Generating RDoc on .gem that may not have RDoc. > > > gem install rails > > This, however, only gives me: > > # gem install rails > Attempting local installation of ''rails'' > Local gem file not found: rails*.gem > Attempting remote installation of ''rails'' > Successfully installed rails_analyzer_tools, version 1.0.0 > Installing RDoc documentation for rails_analyzer_tools-1.0.0... > > But as you can see, no rails. Getting rails analyzer without rails is > particulary and rather poignantly irritating.hm, right. The output of my gem command looks slightly different: Attempting local installation of ''rails'' Local gem file not found: rails*.gem Attempting remote installation of ''rails'' Updating Gem source index for: http://gems.rubyforge.org that updating the index step seems to be missing in your output.> Any hints, please?what does gem --version give you ? jens -- Jens Krämer jk-UayuY8ajoWPk1uMJSBkQmQ@public.gmane.org
On Thu, Sep 08, 2005 at 05:26:40PM +0200, Jens Kraemer wrote:> On Thu, Sep 08, 2005 at 09:15:19AM -0600, John W. M. Stevens wrote: > > On Thu, Sep 08, 2005 at 05:06:44PM +0200, Jens Kraemer wrote: > > > On Thu, Sep 08, 2005 at 08:56:33AM -0600, John W. M. Stevens wrote: > > > > Hello, > > > > > > > > I''ve tried everything I could find, but I can''t figure out how to install > > > > rails on Debian stable. > > > > > > > > The gem program only installs the rails_analyzer, and there doesn''t seem > > > > to be a Debian package for rails yet. > > > > > > > > Anybody succeed at this? > > > > > > yes, I have Rails up and running on Sarge. I > > > just followed the steps described in the rails wiki: > > > http://wiki.rubyonrails.com/rails/show/RailsOnUbuntuDebianTestingAndUnstable > > > (under ''Common procedure for Debian Sarge and Ubuntu Warty''). > > > > > > It boils down to first install rubygems from source, and then do > > > > > > gem install rubygems-update > > > > This gives me: > > > > # gem install rubygems-update > > Attempting local installation of ''rubygems-update'' > > Local gem file not found: rubygems-update*.gem > > Attempting remote installation of ''rubygems-update'' > > Successfully installed rubygems-update, version 0.8.11 > > Installing RDoc documentation for rubygems-update-0.8.11... > > WARNING: Generating RDoc on .gem that may not have RDoc. > > > > > gem install rails > > > > This, however, only gives me: > > > > # gem install rails > > Attempting local installation of ''rails'' > > Local gem file not found: rails*.gem > > Attempting remote installation of ''rails'' > > Successfully installed rails_analyzer_tools, version 1.0.0 > > Installing RDoc documentation for rails_analyzer_tools-1.0.0... > > > > But as you can see, no rails. Getting rails analyzer without rails is > > particulary and rather poignantly irritating. > > hm, right. The output of my gem command looks slightly different: > > Attempting local installation of ''rails'' > Local gem file not found: rails*.gem > Attempting remote installation of ''rails'' > Updating Gem source index for: http://gems.rubyforge.org > > that updating the index step seems to be missing in your output. > > > Any hints, please? > > what does > gem --version > give you ?0.8.1 Another replier suggested that I install the sub-packages, and I got activerecord, activesupport and actionpack installed . . . but of course, I will still have to figure out how to install rails itself manually, plus find a complete list of all of the sub-packages, then try to install them using gem. Thanks, John S. _______________________________________________ Rails mailing list Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org http://lists.rubyonrails.org/mailman/listinfo/rails
On Thu, Sep 08, 2005 at 08:56:33AM -0600, John W. M. Stevens wrote:> Hello, > > I''ve tried everything I could find, but I can''t figure out how to install > rails on Debian stable. > > The gem program only installs the rails_analyzer, and there doesn''t seem > to be a Debian package for rails yet. > > Anybody succeed at this?Got it! By installing all the sub-packages listed on this page (except for rails of course): http://wiki.rubyonrails.com/rails/show/GemRails By doing: gem install activesupport gem install actionpack gem install actionmailer gem install activerecord gem install actionwebservice gem install rake Then downloading the .gem file from: http://rubyforge.org/frs/?group_id=307&release_id=2462 Then by doing: gem install rails-0.13.1.gem It installed. Sigh. This was a bit difficult. I hope a rails package makes it into Debian stable soon. Thanks to all who helped, John S. _______________________________________________ Rails mailing list Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org http://lists.rubyonrails.org/mailman/listinfo/rails
On Sep 8, 2005, at 8:26 AM, Jens Kraemer wrote:> On Thu, Sep 08, 2005 at 09:15:19AM -0600, John W. M. Stevens wrote: > >> On Thu, Sep 08, 2005 at 05:06:44PM +0200, Jens Kraemer wrote: >> >>> On Thu, Sep 08, 2005 at 08:56:33AM -0600, John W. M. Stevens wrote: >>> >>>> Hello, >>>> >>>> I''ve tried everything I could find, but I can''t figure out how >>>> to install >>>> rails on Debian stable. >>>> >>>> The gem program only installs the rails_analyzer, and there >>>> doesn''t seem >>>> to be a Debian package for rails yet. >>>> >>>> Anybody succeed at this? >>>> >>> >>> yes, I have Rails up and running on Sarge. I >>> just followed the steps described in the rails wiki: >>> http://wiki.rubyonrails.com/rails/show/ >>> RailsOnUbuntuDebianTestingAndUnstable >>> (under ''Common procedure for Debian Sarge and Ubuntu Warty''). >>> >>> It boils down to first install rubygems from source, and then do >>> >>> gem install rubygems-update >>> >> >> This gives me: >> >> # gem install rubygems-update >> Attempting local installation of ''rubygems-update'' >> Local gem file not found: rubygems-update*.gem >> Attempting remote installation of ''rubygems-update'' >> Successfully installed rubygems-update, version 0.8.11 >> Installing RDoc documentation for rubygems-update-0.8.11... >> WARNING: Generating RDoc on .gem that may not have RDoc. >> >> >>> gem install rails >>> >> >> This, however, only gives me: >> >> # gem install rails >> Attempting local installation of ''rails'' >> Local gem file not found: rails*.gem >> Attempting remote installation of ''rails'' >> Successfully installed rails_analyzer_tools, version 1.0.0 >> Installing RDoc documentation for rails_analyzer_tools-1.0.0... >> >> But as you can see, no rails. Getting rails analyzer without >> rails is >> particulary and rather poignantly irritating. >> > > hm, right. The output of my gem command looks slightly different: > > Attempting local installation of ''rails'' > Local gem file not found: rails*.gem > Attempting remote installation of ''rails'' > Updating Gem source index for: http://gems.rubyforge.org > > that updating the index step seems to be missing in your output. > > >> Any hints, please? >> > > what does > gem --version > give you ? > > > jens > > -- > Jens Krämer > jk-UayuY8ajoWPk1uMJSBkQmQ@public.gmane.org > _______________________________________________ > Rails mailing list > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails >I have rails 0.13.1 running on Sarge. I had the same problem with gem install rails installing the rails_production_log analyzer as well. This worked fine for me: $ gem install rails --version ''>0.13'' HTH -Ezra Zygmuntowicz Yakima Herald-Republic WebMaster 509-577-7732 ezra-gdxLOakOTQ9oetBuM9ipNAC/G2K4zDHf@public.gmane.org
On Thu, Sep 08, 2005 at 09:36:24AM -0600, John W. M. Stevens wrote: [..]> > > > what does > > gem --version > > give you ? > > 0.8.1mine says 0.8.10 maybe upgrading to the most recent version will help: http://rubyforge.org/frs/download.php/5207/rubygems-0.8.11.tgz> Another replier suggested that I install the sub-packages, and I > got activerecord, activesupport and actionpack installed . . . but > of course, I will still have to figure out how to install rails > itself manually, plus find a complete list of all of the sub-packages, > then try to install them using gem.`gem dependency rails` gives me Gem rails-0.13.1 Requires rake (>= 0.5.3) activesupport (= 1.1.1) activerecord (= 1.11.1) actionpack (= 1.9.1) actionmailer (= 1.0.1) actionwebservice (= 0.8.1) But there must be a way to make this work as supposed, i.e. let it resolve those dependencies automatically. You could download the rails gem (http://gems.rubyforge.org/gems/rails-0.13.1.gem) and try installing this directly using gem install. Jens -- Jens Krämer jk-UayuY8ajoWPk1uMJSBkQmQ@public.gmane.org
On 9/8/05, Jens Kraemer <jk-UayuY8ajoWPk1uMJSBkQmQ@public.gmane.org> wrote:> On Thu, Sep 08, 2005 at 08:56:33AM -0600, John W. M. Stevens wrote: > > Hello, > > > > I''ve tried everything I could find, but I can''t figure out how to install > > rails on Debian stable. > > > > The gem program only installs the rails_analyzer, and there doesn''t seem > > to be a Debian package for rails yet. > > > > Anybody succeed at this? > > yes, I have Rails up and running on Sarge. I > just followed the steps described in the rails wiki: > http://wiki.rubyonrails.com/rails/show/RailsOnUbuntuDebianTestingAndUnstable > (under ''Common procedure for Debian Sarge and Ubuntu Warty''). > > It boils down to first install rubygems from source, and then do > > gem install rubygems-update > gem install railsI know this is old, but since the answer was never truly given, I thought I''d respond anyway. after doing as Jens said and installing rubygems-update you must run update_rubygems, then install rails so the commands are gem install rubygems-update update_rubygems gem install rails If you don''t mind using some packages from sid (ruby1.8.3), here''s the easiest way I''ve found to get everything installed. Add sid/unstable repositories to your sources.list apt-get update apt-get install rails apt-get remove rails wget http://people.debian.org/~akira/rubygems/rubygems_0.8.4-0.1_all.deb dpkg -i rubygems_0.8.4-0.1_all.deb gem install rubygems-update update_rubygems gem install rails I know, it seems a bit backwards to install rails, then remove rails, but this gets all the required dependencies, without having to manually type them. And it removes debian''s rails, which has never worked for me. I don''t see the point in using apt to manage rails, and other gems, when rubygems does it just fine. alternately as opposed to using the older, expirimental rubygems package, you can just install rubygems from rubyforge. But once you install the update (in either case), you''ll have the latest rubygems. I''ve done it both ways, on many different systems, and both work great. I''m sure the OP has gotten it working by now, but hopefully this will help others. Keep in mind you''ll probably still need the lib for whatever db you''re using, you can find them via apt-cache search lib | grep ruby -- Chris Martin Web Developer Open Source & Web Standards Advocate http://www.chriscodes.com/