Monday 15 June 2015

ruby on rails - Cannot install state_machines gem in Windows environment -


I'm new to rail and want to see how the ecommerce solution looks before optimization. That's why I am installing ruby ​​with Ruby Installer, Devkit, Rail, Spree etc.

state_machines appears during the installation of the gem below error and the gem is not finally installed.

  C: \ & gt; GEM installed state_machines error: while executing the gem ... (Errno :: EINVAL) invalid argument @ rb_sysopen - C: / dev / ruby ​​/ lib / ruby ​​/ gem / 2.1.0 / gem / state_m achines-0.2 .2 / test / unit / node_collection / node_collection_after_being_copied_test.rb  

The spree project has the effect of bundle install on it later:

  erro :: inviol: invalid argument @ rb_sesopen - c: / dev / rub / lib / rb / js -2.1.0 / gem EMS / state_machines -0.2.2 / test / unit / node_collection / node_collection_after_being_c opied_test.rb State_machines (0.2.2) Established when an error has occurred, and bundler can not continue. Ensure that the gem is successful before establishing state_machine -5 '0.2.2' bundling.  

The current Ruby version is installed: Ruby 2.1.5p273 (2014-11-13 Amendment 48405) [i386-mingw32] + devkit

Rail version 4.2.0

I am running on a Windows environment without any possibility of going to Linux.

I also ran into this.

It seems that state_masters have some test case files that have a new line in their name, I am sure the issue is the cause. I have submitted a bridge request here: Meanwhile, there is no problem in my branch:

Specific improvements (for the moment, unless accepted for pulling) is:

  git clone https://github.com/jeff-hamm/state_machines CD state_machines bundle gem state_machines rack install  

After doing this, install 'gem install Spree_core 'worked just fine on windows

Keep in mind that I am not planning to keep my branch up to date ( The request has been accepted, I will delete it), hence, cloned URLs will not stop for a long time

/ div>

No comments:

Post a Comment