Necesito instalar el gestor de Hoteleria Solunas en Ubuntu. No tengo mucha experiencia en Ubuntu y un poco mas en RoR pero en windows.
Lo que hice fue
1) Instalar Ubuntu 14.04
2) instale MySQL 5,5.47 (ultima version estable)
3) instale RVM para manejar # versiones de ruby
4) instale Solunas 2.1.1
5) instale ruby (la ultima version) y la version 1.8.6 que es con la que el servidor web webrick arranca bien.
Defini 1.8.6 como corriente y aranco webrick y ok.
Salida de terminal:
=> Booting WEBrick
=> Rails 2.3.2 application starting on http://0.0.0.0:3000
=> Call with -d to detach
=> Ctrl-C to shutdown server
[2016-04-13 08:35:51] INFO WEBrick 1.3.1
[2016-04-13 08:35:51] INFO ruby 1.8.6 (2010-09-02) [x86_64-linux]
[2016-04-13 08:35:51] WARN TCPServer Error: Address already in use - bind(2)
[2016-04-13 08:35:51] INFO WEBrick::HTTPServer#start: pid=9418 port=3000
En el navegador al dar 'localhost:3000' sale en el terminal:
! The bundled [login to view URL] driver has been removed from Rails 2.2. Please install the mysql gem and try again: gem install mysql.
/!\ FAILSAFE /!\ Wed Apr 13 08:37:24 -0300 2016
Status: 500 Internal Server Error
no such file to load -- mysql
/home/marcelo/.rvm/rubies/ruby-1.8.6-p420/lib/ruby/site_ruby/1.8/rubygems/[login to view URL]:in `gem_original_require'
/home/marcelo/.rvm/rubies/ruby-1.8.6-p420/lib/ruby/site_ruby/1.8/rubygems/[login to view URL]:in `require'......................
Cuando doy 'gem install mysql' me dice :
/home//.rvm/gems/ruby-1.8.6-p420..global/gems/executable-hooks-1.3.2/lib/executable-hooks/[login to view URL]: warning: parenthesize argument(s) for future version
ERROR: Error installing mysql:
mysql requires Ruby version >= 1.8.7.
Si uso la version ruby 1.8.7 (que ya tiene la gema Mysql instalada) como current no me arranca webrick o sea en el terminal se ve asi:
...-HP-Pavilion-15-Notebook-PC:~/Solunas$ rvm 1.8.7
...-HP-Pavilion-15-Notebook-PC:~/Solunas$ ruby script/server
./script/../config/../vendor/rails/railties/lib/rails/[login to view URL]:in `add_frozen_gem_path': undefined method `source_index' for Gem:Module (NoMethodError)
from ./script/../config/[login to view URL]:in `load_initializer'
from ./script/../config/[login to view URL]:in `run'
from ./script/../config/[login to view URL]:in `boot!'
from ./script/../config/[login to view URL]
from script/server:2:in `require'
from script/server:2
Si busco una version anterior de mysql para ruby 1.8.6 he visto que funciona la version mysql 5.0. Pero resulta que esta version no funciona en ubuntu 14.4 (la que tengo instalada),
(o sea metaforicamente:si me tapo la cabeza se me destapan los pies y viceversa)
Hola, deseo ayudarte a implementar tu sistema de hotelería en Ubuntu. Tengo una vasta experiencia manejando Ubuntu. Te felicito por el avance que hiciste al instalar el sistema aún sin tener mucha experiencia como dijiste. Espero que finiquitemos las dudas y resolvamos las complicaciones que te hayan aparecido en el proceso de instalación.