Hi, is there already some viable solution for the Ubuntu-Rails problem? The problem ist, that - 1 there is no RubyGems deb in the ubuntu 2 when you build gem (aka. rubygems) yourself, then you get rails-13.1 (and I want the most recent stable one) 3 rails-13.1 depends on ruby-1.8.2. bang. 4 ubuntu hoary includes 1.8.2pre-blah-some-beta ... (two days older!) I tried what user BigSmoke suggests here: http://wiki.rubyonrails.com/rails/show/RailsOnUbuntuDebianTestingAndUnstable Then I tried to 1 build my own ruby-1.8.2 from release source 2 this gives the right ruby version, but breaks gem 3 when I build and install rubygems-0.8.11 it is still broken (somewhat different, LoadError on zlib) on "gem list" invokation This is what the wiki entry (above) suggests to do, to no avail in my case. Is there any solution proper, where I still have real package management and stuff? Or, at least some hack to get going? -Florian -- Florian Ebeling florian.ebeling-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
On Sun, 2005-07-17 at 19:24 +0200, Florian Ebeling wrote:> Hi,Hi Florian,> 1 build my own ruby-1.8.2 from release source > 2 this gives the right ruby version, but breaks gem > 3 when I build and install rubygems-0.8.11 it is still broken > (somewhat different, LoadError on zlib) on "gem list" invokationDo you have libyaml-ruby and libzlib-ruby installed? Ubuntu is a Debian derivative, so I''m guessing this might apply: http://docs.rubygems.org/read/chapter/3 Debian Linux: Debian does not automatically include all the standard Ruby libararies in the basic Ruby package. As a result, you may need to ’’apt-get’’ libyaml-ruby and libzlib-ruby before you can install rubygems.> Is there any solution proper, where I still have real package > management and stuff? Or, at least some hack to get going?Sounds like you have the right proceedure down, just need a couple more packages ;) HTH, Howard
ryan-bOWbXCzVGx2WkzVdRvz7FA@public.gmane.org
2005-Jul-17 17:53 UTC
Re: Ubuntu-Rails problem -- any solution out there?
1. Make sure that you have the zlib1g-dev package and the libreadline5-dev installed. 2. Get the latest ruby source and gem source from the respective websites 3. Install ruby by ./configure --prefix=/usr --with-sitedir=/usr/lib/ruby (dunno if the sitedir is neccessary, but I did it anyways, is this bad?), then sudo make, sudo make install 4. In the gems directory sudo ruby setup.rb 5. sudo gem install rails I couldn''t get anything working with 13.1 and the standard ubuntu ruby package, it gave me a version mismatch 12-23-04 vs 12-25-04 Also don''t know if you have this problem, but my mysql.sock is located in a odd place /var/run/mysqld/mysqld.sock; so in database.yml, you need to put socket: /var/run/mysqld/mysqld.sock hope this helps..> Hi, > > is there already some viable solution for the Ubuntu-Rails problem? > The problem ist, that - > 1 there is no RubyGems deb in the ubuntu > 2 when you build gem (aka. rubygems) yourself, then you get rails-13.1 > (and I want the most recent stable one) > 3 rails-13.1 depends on ruby-1.8.2. bang. > 4 ubuntu hoary includes 1.8.2pre-blah-some-beta ... (two days older!) > > I tried what user BigSmoke suggests here: > http://wiki.rubyonrails.com/rails/show/RailsOnUbuntuDebianTestingAndUnstable > > Then I tried to > 1 build my own ruby-1.8.2 from release source > 2 this gives the right ruby version, but breaks gem > 3 when I build and install rubygems-0.8.11 it is still broken > (somewhat different, LoadError on zlib) on "gem list" invokation > > This is what the wiki entry (above) suggests to do, to no avail in my > case. > > Is there any solution proper, where I still have real package > management and stuff? Or, at least some hack to get going? > > -Florian > > > -- > Florian Ebeling > florian.ebeling-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org > _______________________________________________ > Rails mailing list > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails >
Hi Howard, unfortunately (in some way ;-) I have those libs in place already. -Florian On 17/07/05, Lord Khaos <lordkhaos-Wuw85uim5zDR7s880joybQ@public.gmane.org> wrote:> On Sun, 2005-07-17 at 19:24 +0200, Florian Ebeling wrote: > > Hi, > Hi Florian, > > > 1 build my own ruby-1.8.2 from release source > > 2 this gives the right ruby version, but breaks gem > > 3 when I build and install rubygems-0.8.11 it is still broken > > (somewhat different, LoadError on zlib) on "gem list" invokation > Do you have libyaml-ruby and libzlib-ruby installed? > Ubuntu is a Debian derivative, so I''m guessing this might apply: > http://docs.rubygems.org/read/chapter/3 > Debian Linux: Debian does not automatically include all the standard > Ruby libararies in the basic Ruby package. As a result, you may need to > ''''apt-get'''' libyaml-ruby and libzlib-ruby before you can install > rubygems. > > > Is there any solution proper, where I still have real package > > management and stuff? Or, at least some hack to get going? > Sounds like you have the right proceedure down, just need a couple more > packages ;) > > HTH, > Howard > >-- Florian Ebeling florian.ebeling-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
Henning Kilset Pedersen
2005-Jul-18 12:08 UTC
Re: Ubuntu-Rails problem -- any solution out there?
On Sun, 2005-07-17 at 19:24 +0200, Florian Ebeling wrote:> Hi, > > is there already some viable solution for the Ubuntu-Rails problem? > The problem ist, that - > 1 there is no RubyGems deb in the ubuntu > 2 when you build gem (aka. rubygems) yourself, then you get rails-13.1 > (and I want the most recent stable one) > 3 rails-13.1 depends on ruby-1.8.2. bang. > 4 ubuntu hoary includes 1.8.2pre-blah-some-beta ... (two days older!)[snip] I got rails working and running on hoary by doing this: Remove all attempts at getting it working (I did this on a fresh install) - i.e. remove ruby, rails, rubygems etc. 1) editing /etc/apt/sources.list and replacing all references to hoary with breezy. (point the archives at archive.ubuntu.com - the country specific ones don''t seem to quite follow the update cycle on breezy. 2) sudo apt-get update sudo apt-get install rails sudo apt-get install libmysql-ruby1.8 (and yes, accept all dependencies, ruby1.8 being among them). 3) edit the /etc/apt/sources.list back to hoary. This will give you rails in the "proper" way, but you will be lacking rubygems. You might try just installing ruby and libmysql-ruby1.8, then building rubygems from source and do the standard gem install rails, too. Regards, Henning Pedersen
I switched from FC3 to a generic Ubuntu install and I''m basically having these exact same (unresolved) problems. I think I''ve removed all traces of the ubuntu installed ruby. I''ve downloaded ruby source 1.8.2 and rubygems 0.8.10 and 11. I''ve installed zlib1g-dev and libreadline5-dev. Ruby installs fine, but running sudo ruby setup.rb gives me the error: "No such file to load -- zlib (loaderror)" Suggestions appreciated. Gary ----- Original Message ----- From: <ryan-bOWbXCzVGx2WkzVdRvz7FA@public.gmane.org> To: "Florian Ebeling" <florian.ebeling-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>; <rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org> Sent: Sunday, July 17, 2005 1:53 PM Subject: Re: [Rails] Ubuntu-Rails problem -- any solution out there?> 1. Make sure that you have the zlib1g-dev package and the libreadline5-dev > installed. > 2. Get the latest ruby source and gem source from the respective websites > 3. Install ruby by ./configure --prefix=/usr --with-sitedir=/usr/lib/ruby > (dunno if the sitedir is neccessary, but I did it anyways, is this bad?), > then sudo make, sudo make install > 4. In the gems directory sudo ruby setup.rb > 5. sudo gem install rails > > I couldn''t get anything working with 13.1 and the standard ubuntu ruby > package, it gave me a version mismatch 12-23-04 vs 12-25-04 > > Also don''t know if you have this problem, but my mysql.sock is located in > a odd place /var/run/mysqld/mysqld.sock; so in database.yml, you need to > put socket: /var/run/mysqld/mysqld.sock > hope this helps.. > >> Hi, >> >> is there already some viable solution for the Ubuntu-Rails problem? >> The problem ist, that - >> 1 there is no RubyGems deb in the ubuntu >> 2 when you build gem (aka. rubygems) yourself, then you get rails-13.1 >> (and I want the most recent stable one) >> 3 rails-13.1 depends on ruby-1.8.2. bang. >> 4 ubuntu hoary includes 1.8.2pre-blah-some-beta ... (two days older!) >> >> I tried what user BigSmoke suggests here: >> http://wiki.rubyonrails.com/rails/show/RailsOnUbuntuDebianTestingAndUnstable >> >> Then I tried to >> 1 build my own ruby-1.8.2 from release source >> 2 this gives the right ruby version, but breaks gem >> 3 when I build and install rubygems-0.8.11 it is still broken >> (somewhat different, LoadError on zlib) on "gem list" invokation >> >> This is what the wiki entry (above) suggests to do, to no avail in my >> case. >> >> Is there any solution proper, where I still have real package >> management and stuff? Or, at least some hack to get going? >> >> -Florian >> >> >> -- >> Florian Ebeling >> florian.ebeling-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org >> _______________________________________________ >> Rails mailing list >> Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org >> http://lists.rubyonrails.org/mailman/listinfo/rails >> > > > _______________________________________________ > Rails mailing list > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails >
ghuntress-Wuw85uim5zDR7s880joybQ@public.gmane.org
2005-Jul-19 01:59 UTC
Re: Ubuntu-Rails problem -- any solution out there?
Wow this may be a record for a followup to my own post but it''s fixed. Turns out that yes I did need the zlib1g-dev package and it was properly installed but what I had NOT done was do a "./configure ; make clean" on my ruby install. So I''m happy again and I hope this helps some other Ubuntu newbie. Gary> I switched from FC3 to a generic Ubuntu install and I''m basically having > these exact same (unresolved) problems. > > I think I''ve removed all traces of the ubuntu installed ruby. I''ve > downloaded ruby source 1.8.2 and rubygems 0.8.10 and 11. I''ve installed > zlib1g-dev and libreadline5-dev. Ruby installs fine, but running sudo ruby > setup.rb gives me the error: > > "No such file to load -- zlib (loaderror)" > > Suggestions appreciated. > > > Gary > ----- Original Message ----- > From: <ryan-bOWbXCzVGx2WkzVdRvz7FA@public.gmane.org> > To: "Florian Ebeling" <florian.ebeling-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>; > <rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org> > Sent: Sunday, July 17, 2005 1:53 PM > Subject: Re: [Rails] Ubuntu-Rails problem -- any solution out there? > > > > 1. Make sure that you have the zlib1g-dev package and the libreadline5-dev > > installed. > > 2. Get the latest ruby source and gem source from the respective websites > > 3. Install ruby by ./configure --prefix=/usr --with-sitedir=/usr/lib/ruby > > (dunno if the sitedir is neccessary, but I did it anyways, is this bad?), > > then sudo make, sudo make install > > 4. In the gems directory sudo ruby setup.rb > > 5. sudo gem install rails > > > > I couldn''t get anything working with 13.1 and the standard ubuntu ruby > > package, it gave me a version mismatch 12-23-04 vs 12-25-04 > > > > Also don''t know if you have this problem, but my mysql.sock is located in > > a odd place /var/run/mysqld/mysqld.sock; so in database.yml, you need to > > put socket: /var/run/mysqld/mysqld.sock > > hope this helps.. > > > >> Hi, > >> > >> is there already some viable solution for the Ubuntu-Rails problem? > >> The problem ist, that - > >> 1 there is no RubyGems deb in the ubuntu > >> 2 when you build gem (aka. rubygems) yourself, then you get rails-13.1 > >> (and I want the most recent stable one) > >> 3 rails-13.1 depends on ruby-1.8.2. bang. > >> 4 ubuntu hoary includes 1.8.2pre-blah-some-beta ... (two days older!) > >> > >> I tried what user BigSmoke suggests here: > >> http://wiki.rubyonrails.com/rails/show/RailsOnUbuntuDebianTestingAndUnstable > >> > >> Then I tried to > >> 1 build my own ruby-1.8.2 from release source > >> 2 this gives the right ruby version, but breaks gem > >> 3 when I build and install rubygems-0.8.11 it is still broken > >> (somewhat different, LoadError on zlib) on "gem list" invokation > >> > >> This is what the wiki entry (above) suggests to do, to no avail in my > >> case. > >> > >> Is there any solution proper, where I still have real package > >> management and stuff? Or, at least some hack to get going? > >> > >> -Florian > >> > >> > >> -- > >> Florian Ebeling > >> florian.ebeling-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org > >> _______________________________________________ > >> Rails mailing list > >> Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > >> http://lists.rubyonrails.org/mailman/listinfo/rails > >> > > > > > > _______________________________________________ > > Rails mailing list > > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > > http://lists.rubyonrails.org/mailman/listinfo/rails > > > > > _______________________________________________ > Rails mailing list > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails
Henning Kilset Pedersen
2005-Jul-19 07:23 UTC
Re: Ubuntu-Rails problem -- any solution out there?
On Mon, 2005-07-18 at 21:36 -0400, Gary Huntress wrote:> I switched from FC3 to a generic Ubuntu install and I''m basically having > these exact same (unresolved) problems. > > I think I''ve removed all traces of the ubuntu installed ruby. I''ve > downloaded ruby source 1.8.2 and rubygems 0.8.10 and 11. I''ve installed > zlib1g-dev and libreadline5-dev. Ruby installs fine, but running sudo ruby > setup.rb gives me the error: > > "No such file to load -- zlib (loaderror)" > > Suggestions appreciated.I''ve posted this before, but not everyone seems to be reading the entire list :) [snip] I got rails working and running on hoary by doing this: Remove all attempts at getting it working (I did this on a fresh install) - i.e. remove ruby, rails, rubygems etc. 1) editing /etc/apt/sources.list and replacing all references to hoary with breezy. (point the archives at archive.ubuntu.com - the country specific ones don''t seem to quite follow the update cycle on breezy. 2) sudo apt-get update sudo apt-get install rails sudo apt-get install libmysql-ruby1.8 (and yes, accept all dependencies, ruby1.8 being among them). 3) edit the /etc/apt/sources.list back to hoary. This will give you rails in the "proper" way, but you will be lacking rubygems. You might try just installing ruby and libmysql-ruby1.8, then building rubygems from source and do the standard gem install rails, too. Regards, Henning Pedersen
On 7/18/05, Henning Kilset Pedersen <henning-m0Gqv1oIyVE@public.gmane.org> wrote:> 1) > editing /etc/apt/sources.list and replacing all references to hoary with > breezy. (point the archives at archive.ubuntu.com - the country specific > ones don''t seem to quite follow the update cycle on breezy. > > 2) > sudo apt-get update > sudo apt-get install rails > sudo apt-get install libmysql-ruby1.8I just tried this, and I''m having some problems. Now, I use postgresql instead of mysql... upgrading to rails from breezy also upgraded my libc6, which screwed up my locales, which had to be uninstalled (not sure exactly why/how that happened), and now postgresql won''t even install because I don''t have locales (well, it installs but the post installation script fails due to some locales problem, so postgresql won''t run). So then I tried to downgrade libc6, but that wants to uninstall every single package on my system. Great. I''m kinda thinking that I want to just wait until Ubuntu Breezy is released in October and just start fresh on that, but I have this nagging feeling that rails will have moved on to a new version of ruby, and it''ll be the exact same problem all over again (eg, breezy will have ruby 1.8.3, rails will require 1.8.4 and will refuse to work with 1.8.3). -- Urban Artography http://artography.ath.cx