jasonknight / salor-retail

Rails Based Point of Sale and Store Management Software
84 stars 63 forks source link

Gem install issues with Ruby 1.9.2 #19

Open jgamedev opened 8 years ago

jgamedev commented 8 years ago

On my system running Ubuntu 15.04, when trying to use Ruby 1.9.2 as a local version (using rbenv as a version manager), I get a few gem installation errors similar to this one:

Gem::InstallError: execjs requires Ruby version >= 1.9.3.

Using latest 1.9.3 release instead of 1.9.2 which is suggested in the readme file fixes it for me. Please consider updating the installation instructions, if that's the case.

(Disclaimer: I might have deleted the gemlock file prior to running bundle install, maybe this is the cause)

an-nasir commented 5 years ago

I've just installed it on Ubuntu 16 with ruby 2.1.0 as they mentioned some gems that I supposed are meant for ruby 2.1.0 like gem 'i18n-js' I got complete gem installation by making following changes to Gemfile

changed mysql2 to gem 'mysql2', "~> 0.3.18" And then I added a file column_definition.rb in config/initializers/ folder with following content class ActiveRecord::ConnectionAdapters::ColumnDefinition def sql_type type.to_sym == :primary_key ? 'int(11) auto_increment PRIMARY KEY' : base.type_to_sql(type.to_sym, limit, precision, scale) rescue type end end

this file was needed to resolve mysql primary key error.

Hope this helps...

jasonknight commented 5 years ago

Hi,

Thanks, I can't believe anyone is still using the system...

an-nasir commented 5 years ago

I was just looking for an open source inventory management system. Just installed and checked if it fulfill my needs.

jasonknight commented 5 years ago

It has inventory management features, but probably not gonna be what you need I think.