Hi All, Sorry my ignorance, i am kind of new to the ROR Linux. Do we have a ROR package on Linux similar to a InstantRails(Windows) ? In the rubyforge, I haven''t seen any package like that for Linux. Please help me in getting one working ruby on rails package for Linux. Thanks, Sapna. -- Posted via http://www.ruby-forum.com/.
On Thu, Oct 15, 2009 at 9:49 AM, Sapna Ruby <rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:> > Hi All, > > Sorry my ignorance, i am kind of new to the ROR Linux. > Do we have a ROR package on Linux similar to a InstantRails(Windows) ? > > In the rubyforge, I haven''t seen any package like that for Linux. > Please help me in getting one working ruby on rails package for Linux."Linux" is too wide. Distro? Anyhow, you should do everything with the gem command, installed via the rubygems package on any major linux distro (each with their own package manager, of course). You can install rubygems by hand too, and youĺl still get your "instant" package. -- Leonardo Mateo. There''s no place like ~
Leonardo Mateo wrote:> On Thu, Oct 15, 2009 at 9:49 AM, Sapna Ruby > <rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote: >> >> Hi All, >> >> Sorry my ignorance, i am kind of new to the ROR Linux. >> Do we have a ROR package on Linux similar to a InstantRails(Windows) ? >> >> In the rubyforge, I haven''t seen any package like that for Linux. >> Please help me in getting one working ruby on rails package for Linux. > "Linux" is too wide. Distro? > Anyhow, you should do everything with the gem command, installed via > the rubygems package on any major linux distro (each with their own > package manager, of course). > You can install rubygems by hand too, and youĺl still get your > "instant" package. > > -- > Leonardo Mateo. > There''s no place like ~Hi Leonardo, Thanks for the reply! I am talking about the Redhat5 Linux. These gems are quite confusing. I had to really struggle a lot to get all the possible gems, but unfortunately ended up with ruby 1.8.8 (as stated in my other post :: PLS HELP : backgroundrb problme). ruby1.8.8 is not yet out, unknowingly I have installed that. Now I have many issues with my setup, I am kind of encountering one or the other dependency error.... But on Windows, life is more easier, we get everything in one single package, no need to download the gems, ruby package separately. Even now, I am googling out for the compatible ruby with my current version of rails : 2.3.4. I am still debating whether to downgrade my ruby version to 1.8.7, meaning I have to re-install the suitable gems :( Any suggestions please?? -- Posted via http://www.ruby-forum.com/.
> Hi Leonardo, > > Thanks for the reply! > I am talking about the Redhat5 Linux. > These gems are quite confusing.What is confusing about gems? It''s pretty clear. If you have rubygems installed correctly (which implies you have Ruby installed properly, too), a simple: gem install rails Will give you all you need. Then, of course you''ll need to install the right gems for your application, but that has nothing to do with Ruby/Rails or Gem itself, that''s application dependent. Anyway, if you properly specified the gems in your environment.rb, a simple rake gems:install will do all the work for you.> I had to really struggle a lot to get > all the possible gems, but unfortunately ended up with ruby 1.8.8 (as > stated in my other post :: PLS HELP : backgroundrb problme). ruby1.8.8 > is not yet out, unknowingly I have installed that.Well, I don''t know about RedHat package versioning, I have installed 1.8.7 on Arch Linux, and I think it is the last of the 1.8.x, but you should check that.> Now I have many issues with my setup, I am kind of encountering one or > the other dependency error.... > > But on Windows, life is more easierLet me put a doubt mark on that. I REALLY don''t think that life on Windows is much easier, you might know better Windows than Linux, so life can be easier for you there. I could swear life is way easier on Linux, after have worked on both platforms, but I don''t wanna turn this on a Linux vs Windows flame :)>, we get everything in one single > package, no need to download the gems, ruby package separately.Anyway, you have to go to the download site, download the installer, run it and do a few more clicks. I only have to do (pacman -S| apt-get install | watherver...) rubygems && gem install rails from my console. :)> > Even now, I am googling out for the compatible ruby with my current > version of rails : 2.3.4. > > I am still debating whether to downgrade my ruby version to 1.8.7, > meaning I have to re-install the suitable gems :(My suggestion is you downgrade ruby to a widely known stable version like 1.8.7, and install rubygems from your package manager (RPM, either from console or from any fancy GUI, I really don''t know RH, I only tried it a few years ago) After that, install rails via gem (which will install all it''s dependencies) Everything after these two steps, is application dependent. -- Leonardo Mateo. There''s no place like ~
>> >> Even now, I am googling out for the compatible ruby with my current >> version of rails : 2.3.4. >> >> I am still debating whether to downgrade my ruby version to 1.8.7, >> meaning I have to re-install the suitable gems :( > My suggestion is you downgrade ruby to a widely known stable version > like 1.8.7, and install rubygems from your package manager (RPM, > either from console or from any fancy GUI, I really don''t know RH, I > only tried it a few years ago) > > After that, install rails via gem (which will install all it''s > dependencies) > Everything after these two steps, is application dependent. > > -- > Leonardo Mateo. > There''s no place like ~Can you please point to me one standard site where I can get the ruby and compatible RAILS GEMS for linux? curently I am looking at http://wiki.rubyonrails.org/getting-started/installation/linux If I download 1.8.7 ruby version, can I still have rails 2.3.4??? Please reply..!!! -- Posted via http://www.ruby-forum.com/.
2009/10/15 Sapna Ruby <rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org>:> > >>> >>> Even now, I am googling out for the compatible ruby with my current >>> version of rails : 2.3.4. >>> >>> I am still debating whether to downgrade my ruby version to 1.8.7, >>> meaning I have to re-install the suitable gems :( >> My suggestion is you downgrade ruby to a widely known stable version >> like 1.8.7, and install rubygems from your package manager (RPM, >> either from console or from any fancy GUI, I really don''t know RH, I >> only tried it a few years ago) >> >> After that, install rails via gem (which will install all it''s >> dependencies) >> Everything after these two steps, is application dependent. >> >> -- >> Leonardo Mateo. >> There''s no place like ~ > > > Can you please point to me one standard site where I can get the ruby > and compatible RAILS GEMS for linux? curently I am looking at > http://wiki.rubyonrails.org/getting-started/installation/linux > > If I download 1.8.7 ruby version, can I still have rails 2.3.4??? > Please reply..!!!Yes, 1.8.7 is fine for 2.3.4. This is the script I use to install RoR and mysql on Ubuntu. The download path would need adjusting. If you want passenger as well have a look at the hackido site mentioned below. # this derived from http://www.hackido.com/2009/04/install-ruby-rails-on-ubuntu-904-jaunty.html # bits for building stuff sudo apt-get install build-essential # mysql and rubyy sudo apt-get install ruby ri rdoc mysql-server libmysql-ruby ruby1.8-dev irb1.8 libdbd-mysql-perl libdbi-perl libmysql-ruby1.8 libmysqlclient15off libnet-daemon-perl libplrpc-perl libreadline-ruby1.8 libruby1.8 mysql-client-5.0 mysql-common mysql-server-5.0 rdoc1.8 ri1.8 ruby1.8 irb libopenssl-ruby libopenssl-ruby1.8 libhtml-template-perl mysql-server-core-5.0 wget -N -P /home/colinl/downloads http://rubyforge.org/frs/download.php/60718/rubygems-1.3.5.tgz tar xvzf /home/colinl/downloads/rubygems-1.3.5.tgz cd rubygems-1.3.5 sudo ruby setup.rb cd .. rm -rf rubygems-1.3.5 # make symlinks - not sure if this will always be necessary, must be done if gem -v does not work sudo ln -s /usr/bin/gem1.8 /usr/local/bin/gem sudo ln -s /usr/bin/ruby1.8 /usr/local/bin/ruby sudo ln -s /usr/bin/rdoc1.8 /usr/local/bin/rdoc sudo ln -s /usr/bin/ri1.8 /usr/local/bin/ri sudo ln -s /usr/bin/irb1.8 /usr/local/bin/irb # rails latest version, 2.3.2 and 2.3.3 sudo gem install rails --no-rdoc --no-ri sudo gem install rails --version 2.3.2 --no-rdoc --no-ri sudo gem install rails --version 2.3.3 --no-rdoc --no-ri # use sudo gem install <gemname> to install others Not quite as simple as InstantRails I admit, but not difficult. It may not work for all of course. Colin
Thanks a lot Colin. Can I ask you one question, why do we need passenger? Again sorry for my ignorance :-( -- Posted via http://www.ruby-forum.com/.
2009/10/15 Sapna Ruby <rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org>:> > > Thanks a lot Colin. > Can I ask you one question, why do we need passenger? > Again sorry for my ignorance :-(You probably don''t for development, I don''t. It is used for deploying Rails apps to a production server. See http://en.wikipedia.org/wiki/Phusion_Passenger. Colin
Colin Law wrote:> 2009/10/15 Sapna Ruby <rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org>: >> >> >> Thanks a lot Colin. >> Can I ask you one question, why do we need passenger? >> Again sorry for my ignorance :-( > > You probably don''t for development, I don''t. It is used for deploying > Rails apps to a production server. See > http://en.wikipedia.org/wiki/Phusion_Passenger. > > Colinoh ok. By the way, I got the Enterprise edition of ruby 1.8.7 from http://www.rubyenterpriseedition.com/download.html And when I am running ./installer got the following error :( any clue? ---------------------------------------------------------------------------- # cd ruby-enterprise-1.8.7-20090928 [ruby-enterprise-1.8.7-20090928]# ./installer *** ERROR: Ruby is not installed *** The Ruby Enterprise Edition installer is written in Ruby. This source tarball bundles precompiled versions of Ruby for many platforms for the purpose of running this installer, but unfortunately we did not include a precompiled Ruby binary for the current platform. So please install Ruby manually, then run this installer again. -- Posted via http://www.ruby-forum.com/.
On Thu, Oct 15, 2009 at 6:11 PM, Sapna Ruby <rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:> > Colin Law wrote: >> 2009/10/15 Sapna Ruby <rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org>: >>> >>> >>> Thanks a lot Colin. >>> Can I ask you one question, why do we need passenger? >>> Again sorry for my ignorance :-( >> >> You probably don''t for development, I don''t. It is used for deploying >> Rails apps to a production server. See >> http://en.wikipedia.org/wiki/Phusion_Passenger. >> >> Colin > > oh ok. > By the way, I got the Enterprise edition of ruby 1.8.7 from > http://www.rubyenterpriseedition.com/download.html > > And when I am running ./installer > > got the following error :( any clue? > ---------------------------------------------------------------------------- > # cd ruby-enterprise-1.8.7-20090928 > [ruby-enterprise-1.8.7-20090928]# ./installer > *** ERROR: Ruby is not installed *** > The Ruby Enterprise Edition installer is written in Ruby. This source > tarball bundles precompiled versions of Ruby for many platforms for the > purpose of running this installer, but unfortunately we did not include > a precompiled Ruby binary for the current platform. So please install > Ruby manually, then run this installer again.The error is pretty clear there, you don''t have Ruby installed, and the installer for REE is written in Ruby and bundles precompiled versions of Ruby for many platforms but not for yours. You still need to install Ruby for your platform manually. -- Leonardo Mateo. There''s no place like ~
Leonardo Mateo wrote:> On Thu, Oct 15, 2009 at 6:11 PM, Sapna Ruby > <rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote: >>> Rails apps to a production server. �See >> got the following error :( any clue? >> ---------------------------------------------------------------------------- >> # cd ruby-enterprise-1.8.7-20090928 >> [ruby-enterprise-1.8.7-20090928]# ./installer >> *** ERROR: Ruby is not installed *** >> The Ruby Enterprise Edition installer is written in Ruby. This source >> tarball bundles precompiled versions of Ruby for many platforms for the >> purpose of running this installer, but unfortunately we did not include >> a precompiled Ruby binary for the current platform. So please install >> Ruby manually, then run this installer again. > > The error is pretty clear there, you don''t have Ruby installed, and > the installer for REE is written in Ruby and bundles precompiled > versions of Ruby for many platforms but not for yours. You still need > to install Ruby for your platform manually. > > -- > Leonardo Mateo. > There''s no place like ~Yup, there is no ruby; what i tgt was the bundle is gonna have everything.. anyways, I am one more step down.. meaning now installing ruby1.8.6; Now I know the critical task for me is getting backgroundrb up and runnning. Can you please please please advice me on which version of backgroundrb gem should I install? This whole thing started as I want to migrate my ROR framework from Windows to Linux. My GEMS: RubyGems Environment: - RUBYGEMS VERSION: 1.3.5 - RUBY VERSION: 1.8.6 (2007-03-13 patchlevel 0) [x86_64-linux] - INSTALLATION DIRECTORY: /usr/local/lib/ruby/gems/1.8 - RUBY EXECUTABLE: /usr/local/bin/ruby - EXECUTABLE DIRECTORY: /usr/local/bin - RUBYGEMS PLATFORMS: - ruby - x86_64-linux - GEM PATHS: - /usr/local/lib/ruby/gems/1.8 - /root/.gem/ruby/1.8 - GEM CONFIGURATION: - :update_sources => true - :verbose => true - :benchmark => false - :backtrace => false - :bulk_threshold => 1000 - REMOTE SOURCES: - http://gems.rubyforge.org/ -- Posted via http://www.ruby-forum.com/.
On Thu, Oct 15, 2009 at 6:30 PM, Sapna Ruby <rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:> > Leonardo Mateo wrote: >> On Thu, Oct 15, 2009 at 6:11 PM, Sapna Ruby >> <rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote: >>>> Rails apps to a production server. �See >>> got the following error :( any clue? >>> ---------------------------------------------------------------------------- >>> # cd ruby-enterprise-1.8.7-20090928 >>> [ruby-enterprise-1.8.7-20090928]# ./installer >>> *** ERROR: Ruby is not installed *** >>> The Ruby Enterprise Edition installer is written in Ruby. This source >>> tarball bundles precompiled versions of Ruby for many platforms for the >>> purpose of running this installer, but unfortunately we did not include >>> a precompiled Ruby binary for the current platform. So please install >>> Ruby manually, then run this installer again. >> >> The error is pretty clear there, you don''t have Ruby installed, and >> the installer for REE is written in Ruby and bundles precompiled >> versions of Ruby for many platforms but not for yours. You still need >> to install Ruby for your platform manually. >> >> -- >> Leonardo Mateo. >> There''s no place like ~ > > Yup, there is no ruby; what i tgt was the bundle is gonna have > everything.. > anyways, I am one more step down.. meaning now installing ruby1.8.6; > > Now I know the critical task for me is getting backgroundrb up and > runnning. > Can you please please please advice me on which version of backgroundrb > gem should I install? > > This whole thing started as I want to migrate my ROR framework from > Windows to Linux. > > My GEMS: > RubyGems Environment: > - RUBYGEMS VERSION: 1.3.5 > - RUBY VERSION: 1.8.6 (2007-03-13 patchlevel 0) [x86_64-linux] > - INSTALLATION DIRECTORY: /usr/local/lib/ruby/gems/1.8 > - RUBY EXECUTABLE: /usr/local/bin/ruby > - EXECUTABLE DIRECTORY: /usr/local/bin > - RUBYGEMS PLATFORMS: > - ruby > - x86_64-linux > - GEM PATHS: > - /usr/local/lib/ruby/gems/1.8 > - /root/.gem/ruby/1.8 > - GEM CONFIGURATION: > - :update_sources => true > - :verbose => true > - :benchmark => false > - :backtrace => false > - :bulk_threshold => 1000 > - REMOTE SOURCES: > - http://gems.rubyforge.org/ >OK, I think you''re unnecessarily complicating things with the Windows to Linux migration. Forget about that, the only thing you need to "migrate" is your application, which should be done only by moving the files from one computer to the other. Ruby should work out of the box in nearly every major Linux distribution, such as RH. Rubygems should be on RH package list for sure and should wor out of the box like in any other distribution. Start from scratch a clean installation, remove all you''ve installed so far. Install a ruby version from your package manager. Install rubygems from your package manager. Once you''ve done this, make sure you can run the gem command (you can do: which gem, and this should return the path to the executable file) When you''re sure you can run gem do, as root: gem install rails That should be enough to have Ruby On Rails installed on your system. The rest is for a different discussion. Cheers. -- Leonardo Mateo. There''s no place like ~
So, you are telling me to copy the Framework on my widnows to Linux and then do which gem and then install the respective gems on the Linux ? or did I get it wrong? -- Posted via http://www.ruby-forum.com/.
On Thu, Oct 15, 2009 at 7:38 PM, Sapna Ruby <rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:> > > > So, you are telling me to copy the Framework on my widnows to Linux and > then do which gem and then install the respective gems on the Linux ? or > did I get it wrong?Please, read carefully what I wrote, I even detailed it on steps.> Start from scratch a clean installation, remove all you''ve installed so far. > > Install a ruby version from your package manager. > Install rubygems from your package manager. > Once you''ve done this, make sure you can run the gem command (you can > do: which gem, and this should return the path to the executable file) > When you''re sure you can run gem do, as root: > gem install rails > > That should be enough to have Ruby On Rails installed on your system. > The rest is for a different discussion.You have to pay attention to the answers, mailing lists and forums are for helping, not for spoon feed. We can''t take your hand and make you type on your keyboard. -- Leonardo Mateo. There''s no place like ~
I don''t have trouble with rails or ruby; its just that I am stuck up at the backgroundrb and was looking for some help. Probably I should check with an expert on backgroundrb by posting a different thread. Anyways appreciate your help Leonardo, your responses were really helpful and its very much clear now..!! -- Posted via http://www.ruby-forum.com/.