[typo] Problems with upgrade

de Villamil Frédéric frederic at de-villamil.com
Thu Aug 7 11:22:22 EDT 2008


Le 7 août 08 à 17:02, Anton J Aylward a écrit :

> de Villamil Frédéric said the following on 06/08/08 03:51 PM:
>> This is not a Typo but rails issue: to use a Rails application,  
>> you  need a database driver, ie ruby mysql driver. That's the  
>> reason why  you needed so much dependencies. In an ideal world,  
>> your distro would  embed a package named ruby-mysql with the proper  
>> driver, or anything  else. The problem is Rails gem has its own  
>> dependencies system which  differs from RPM and you won't register  
>> Typo MySQL gem with rpm and  the contrary.
>
> Well I loaded up all the database "-devel" RPMs and got typo to  
> install.
> I still think this dependency should be documented and the  
> justification for the later version of the database interfaces  
> explained.  Perhaps even a way to fall back...
>
> So, that done I try to set up typo ...
> That fails still
>
>
> [anton at laptop Ruby]$ mkdir typo-5.1.2; mkdir typo-5.1.2/db
> [anton at laptop Ruby]$ typo install typo-5.1.2/db/emerge  
> database=sqlite3
> Installing typo 5.1.2
> /usr/lib/ruby/gems/1.8/gems/rails-app-installer-0.2.0/lib/rails- 
> installer/databases.rb:16:in `connect': undefined method `yml' for  
> RailsInstaller::Database:Class (NoMethodError)
>        from /usr/lib/ruby/gems/1.8/gems/rails-app-installer-0.2.0/ 
> lib/rails-installer/databases.rb:36:in `backup'
>        from /usr/lib/ruby/gems/1.8/gems/rails-app-installer-0.2.0/ 
> lib/rails-installer.rb:261:in `backup_database'
>        from /usr/lib/ruby/gems/1.8/gems/rails-app-installer-0.2.0/ 
> lib/rails-installer.rb:205:in `install_sequence'
>        from /usr/lib/ruby/gems/1.8/gems/rails-app-installer-0.2.0/ 
> lib/rails-installer.rb:192:in `install'
>        from /usr/lib/ruby/gems/1.8/gems/rails-app-installer-0.2.0/ 
> lib/rails-installer/commands.rb:95:in `command'
>        from /usr/lib/ruby/gems/1.8/gems/rails-app-installer-0.2.0/ 
> lib/rails-installer.rb:646:in `execute_command'
>        from /usr/lib/ruby/gems/1.8/gems/typo-5.1.2/bin/typo:93
>        from /usr/bin/typo:19:in `load'
>        from /usr/bin/typo:19
>
>

Hello,

I understand your problem, so I'll try to make it clear. Writing docs  
is long, very long, and I'm currently alone doing it, along with a  
real job, a family and even a bit of social life. I'd love to handle  
every dependencies issues for every distro, but honnestly, I don't  
have time. There are many docs on the interweb that explains how to  
setup a rails installation on (almost) every OS, because HURD and  
Plan9 aren't supported. Yet.

For your problem, I made a typo (sic) in the typosphere doc. Try
typo install typo-5.1.2/db/emerge database=sqlite

but using sqlite is not a very good idea.

Regards,
Frédéric
-- 
Frédéric de Villamil
frederic at de-villamil.com                        tel: +33 (0)6 62 19 1337
http://fredericdevillamil.com             Typo : http://typosphere.org



More information about the Typo-list mailing list