two problems: 1) rubygems & dpkg are incompatible at the design level. In my opinion, it's the design of rubygems that's broken, but we have to live with it. So the quick answer is "never install rubygems via dpkg". There are several solutions, but the one I recommend for development boxes is to install rvm (https://rvm.io/) and then install ruby through that. It is possible to get Hobo to work using the Ubuntu supplied rubygems, but you'll probably run into problems later.
2) you're missing some build dependencies. In this case you're missing ruby1.9.1.dev. You could apt-get install that, but instead I recommend installing ruby through RVM. "rvm notes" will tell you exactly what you need to install for your OS. Bryan On Thu, May 3, 2012 at 12:27 PM, Quiliro Ordóñez <[email protected]> wrote: > Hi. > > I have installed Rubygems 1.9.2 from the apt repos. Then I updated Rubygems > and tryed to install Hobo 1.3. I get "ERROR: Failed to build gem native > extension.": > > quiliro@trisquel:~$ sudo aptitude show ruby1.9.1 > Paquete: ruby1.9.1 > Estado: sin instalar > Instalado automáticamente: no > Versión: 1.9.2.290-2 > Prioridad: opcional > Sección: universe/ruby > Desarrollador: Ubuntu Developers <[email protected]> > Tamaño sin comprimir: 918 k > Depende de: libruby1.9.1 (= 1.9.2.290-2), libc6 (>= 2.0) > Sugiere: ruby1.9.1-examples, ri1.9.1, graphviz, ruby1.9.1-dev > Tiene conflictos con: irb1.9.1 (< 1.9.1.378-2~), rdoc1.9.1 (< 1.9.1.378-2~), > ri (<= 4.5), ri1.9.1 (< 1.9.2.180-3~), ruby (<= 4.5), rubygems1.9.1 > Reemplaza: irb1.9.1, rdoc1.9.1, rubygems1.9.1 > Proporciona: irb1.9.1, rdoc1.9.1, ruby-interpreter, ruby1.9.2, rubygems1.9.1 > Descripción: Interpreter of object-oriented scripting language Ruby 1.9.2 > Ruby es un lenguaje interpretado de guiones, que permite programar con > orientación a objetos de manera rápida y sencilla. Tiene muchas > funcionalidades para procesar archivos de > texto y realizar tareas de administración de sistemas (como perl). Es > simple, directo y extensible. > > In the name of this package, `1.9.1' indicates the Ruby library > compatibility version. This package currently provides the `1.9.2' branch of > Ruby, which is compatible with the > `1.9.1' branch. > Página de inicio: http://www.ruby-lang.org/ > > quiliro@trisquel:~$ sudo aptitude install ruby1.9.1 > Se instalarán los siguiente paquetes NUEVOS: > libruby1.9.1{a} libyaml-0-2{a} ruby1.9.1 > 0 paquetes actualizados, 3 nuevos instalados, 0 para eliminar y 7 sin > actualizar. > Necesito descargar 0 B/4022 kB de archivos. Después de desempaquetar se > usarán 15,7 MB. > ¿Quiere continuar? [Y/n/?] > Seleccionando el paquete libyaml-0-2 previamente no seleccionado. > (Leyendo la base de datos ... 210885 ficheros o directorios instalados > actualmente.) > Desempaquetando libyaml-0-2 (de .../libyaml-0-2_0.1.4-1_i386.deb) ... > Seleccionando el paquete libruby1.9.1 previamente no seleccionado. > Desempaquetando libruby1.9.1 (de .../libruby1.9.1_1.9.2.290-2_i386.deb) ... > Seleccionando el paquete ruby1.9.1 previamente no seleccionado. > Desempaquetando ruby1.9.1 (de .../ruby1.9.1_1.9.2.290-2_i386.deb) ... > Procesando disparadores para man-db ... > Configurando libyaml-0-2 (0.1.4-1) ... > Configurando libruby1.9.1 (1.9.2.290-2) ... > Configurando ruby1.9.1 (1.9.2.290-2) ... > update-alternatives: utilizando /usr/bin/gem1.9.1 para proveer /usr/bin/gem > (gem) en modo automático. > update-alternatives: utilizando /usr/bin/ruby1.9.1 para proveer > /usr/bin/ruby (ruby) en modo automático. > Procesando disparadores para libc-bin ... > ldconfig deferred processing now taking place > > quiliro@trisquel:~$ sudo gem update > Updating installed gems > Nothing to update > quiliro@trisquel:~$ sudo gem install hobo > Building native extensions. This could take a while... > ERROR: Error installing hobo: > ERROR: Failed to build gem native extension. > > /usr/bin/ruby1.9.1 extconf.rb > <internal:lib/rubygems/custom_require>:29:in `require': no such file to load > -- mkmf (LoadError) > from <internal:lib/rubygems/custom_require>:29:in `require' > from extconf.rb:1:in `<main>' > > > Gem files will remain installed in /var/lib/gems/1.9.1/gems/json-1.7.0 for > inspection. > Results logged to > /var/lib/gems/1.9.1/gems/json-1.7.0/ext/json/ext/parser/gem_make.out > quiliro@trisquel:~$ > > -- > Saludos libres, > > Quiliro Ordóñez > (593)2-253 5534 > (593)2-340 1517 > (593)9-675 9641 > > -- > You received this message because you are subscribed to the Google Groups > "Hobo Users" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group at > http://groups.google.com/group/hobousers?hl=en. > -- You received this message because you are subscribed to the Google Groups "Hobo Users" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/hobousers?hl=en.
