Re: No such file or directory - bundle install (Errno::ENOENT) . install spree on Windows 7

488 views
Skip to first unread message

binaryphile

unread,
May 25, 2013, 11:36:49 PM5/25/13
to spree...@googlegroups.com
You're going to find that Windows is not a suitable environment for rails development.  I'd suggest using a Linux vm instead.

I've written an article on using Vagrant to build a Spree-friendly vm for you with a little effort: http://www.binaryphile.com/spree/a-vagrant-box-for-spree-development.   It's easier and better than knocking yourself out with Windows only to find that it doesn't work for you in the end.

On Saturday, May 25, 2013 9:48:51 AM UTC-4, Ildar Minnikhanov wrote:
  1. Hi.
  2. I try to install spree on Windows 7 by  https://github.com/spree/spree chapter Installation.
  3.  
  4. gem install rails -v 3.2.13 -  already installed
  5.  
  6. gem install spree
  7.    Ok.
  8. rails  new app
  9.    Ok.
  10.  
  11. spree install app
  12.     ERROR
  13.  
  14. Help me, please. What is wrong?
  15.  
  16. \eshop\spree>spree install app
  17. Would you like to install the default gateways? (Recommended) (yes/no) [yes] y
  18. Would you like to install the default authentication system? (yes/no) [yes] y
  19. Would you like to run the migrations? (yes/no) [yes] y
  20. Would you like to load the seed data? (yes/no) [yes] y
  21. Would you like to load the sample data? (yes/no) [yes] y
  22.      gemfile  spree
  23.      gemfile  spree_gateway
  24.      gemfile  spree_auth_devise
  25.          run  bundle install from "./app"
  26. C:/dev/ruby200/lib/ruby/gems/2.0.0/gems/thor-0.18.1/lib/thor/actions.rb:252:in `
  27. `': No such file or directory - bundle install (Errno::ENOENT)
  28.         from C:/dev/ruby200/lib/ruby/gems/2.0.0/gems/thor-0.18.1/lib/thor/action
  29. s.rb:252:in `run'
  30.         from C:/dev/ruby200/lib/ruby/gems/2.0.0/gems/spree_cmd-2.0.0/lib/spree_c
  31. md/installer.rb:104:in `block in add_gems'
  32.         from C:/dev/ruby200/lib/ruby/gems/2.0.0/gems/thor-0.18.1/lib/thor/action
  33. s.rb:182:in `block in inside'
  34.         from C:/dev/ruby200/lib/ruby/2.0.0/fileutils.rb:125:in `chdir'
  35.         from C:/dev/ruby200/lib/ruby/2.0.0/fileutils.rb:125:in `cd'
  36.         from C:/dev/ruby200/lib/ruby/gems/2.0.0/gems/thor-0.18.1/lib/thor/action
  37. s.rb:182:in `inside'
  38.         from C:/dev/ruby200/lib/ruby/gems/2.0.0/gems/spree_cmd-2.0.0/lib/spree_c
  39. md/installer.rb:92:in `add_gems'
  40.         from C:/dev/ruby200/lib/ruby/gems/2.0.0/gems/thor-0.18.1/lib/thor/comman
  41. d.rb:27:in `run'
  42.         from C:/dev/ruby200/lib/ruby/gems/2.0.0/gems/thor-0.18.1/lib/thor/invoca
  43. tion.rb:120:in `invoke_command'
  44.         from C:/dev/ruby200/lib/ruby/gems/2.0.0/gems/thor-0.18.1/lib/thor/invoca
  45. tion.rb:127:in `block in invoke_all'
  46.         from C:/dev/ruby200/lib/ruby/gems/2.0.0/gems/thor-0.18.1/lib/thor/invoca
  47. tion.rb:127:in `each'
  48.         from C:/dev/ruby200/lib/ruby/gems/2.0.0/gems/thor-0.18.1/lib/thor/invoca
  49. tion.rb:127:in `map'
  50.         from C:/dev/ruby200/lib/ruby/gems/2.0.0/gems/thor-0.18.1/lib/thor/invoca
  51. tion.rb:127:in `invoke_all'
  52.         from C:/dev/ruby200/lib/ruby/gems/2.0.0/gems/thor-0.18.1/lib/thor/group.
  53. rb:233:in `dispatch'
  54.         from C:/dev/ruby200/lib/ruby/gems/2.0.0/gems/thor-0.18.1/lib/thor/base.r
  55. b:439:in `start'
  56.         from C:/dev/ruby200/lib/ruby/gems/2.0.0/gems/spree_cmd-2.0.0/lib/spree_c
  57. md.rb:14:in `<top (required)>'
  58.         from C:/dev/ruby200/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_re
  59. quire.rb:45:in `require'
  60.         from C:/dev/ruby200/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_re
  61. quire.rb:45:in `require'
  62.         from C:/dev//lib/ruby/gems/2.0.0/gems/spree_cmd-2.0.0/bin/spree:2
  63. :in `<top (required)>'
  64.         from C:/dev/ruby200/bin/spree:23:in `load'
  65.         from C:/dev/ruby200/bin/spree:23:in `<main>'
  66.  
  67. \eshop\spree>

Ryan Bigg

unread,
May 26, 2013, 10:57:05 AM5/26/13
to spree...@googlegroups.com
Spree should still be developable on Windows. This issue seems to be because "bundle" is missing as a command. Is the Bundler gem installed?

Ted Lilley

unread,
May 26, 2013, 11:35:31 AM5/26/13
to spree...@googlegroups.com

Not to be a wet blanket but rmagick isn't supported on Windows. Recommending it for development is the way to heartache, trust me, I've tried. :)

Ryan Bigg

unread,
May 27, 2013, 7:25:21 AM5/27/13
to spree...@googlegroups.com
--

Ryan Bigg
Community Manager
Spree Commerce, Inc.

Register now for SpreeConf
May 20-21 in Washington, D.C.

Ted Lilley

unread,
May 27, 2013, 7:26:38 AM5/27/13
to spree...@googlegroups.com
That gem doesn't work any more.  It isn't maintained.

Ryan Bigg

unread,
May 27, 2013, 7:29:09 AM5/27/13
to spree...@googlegroups.com
Ok then, thanks for the info.

Ildar Minnikhanov

unread,
May 27, 2013, 11:48:11 AM5/27/13
to spree...@googlegroups.com
That gem installed. May be work, I don't know yet :-))))  .

http://www.redmine.org/projects/redmine/wiki/HowTo_install_rmagick_gem_on_Windows

>>>>>
C:\dev\ruby200>set CPATH=C:\dev\ImageMagick-6.8.5-Q16\include

C:\dev\ruby200>set LIBRARY_PATH=C:\dev\ImageMagick-6.8.5-Q16\lib

C:\dev\ruby200>gem install rmagick
Building native extensions.  This could take a while...
Successfully installed rmagick-2.13.2
Parsing documentation for rmagick-2.13.2
unable to convert "\x90" from ASCII-8BIT to UTF-8 for ext/RMagick/RMagick2.so, s
kipping
unable to convert "\xEC" from ASCII-8BIT to UTF-8 for ext/RMagick/rmagick.o, ski
pping
unable to convert "\xD8" from ASCII-8BIT to UTF-8 for ext/RMagick/rmdraw.o, skip
ping
unable to convert "\xF4" from ASCII-8BIT to UTF-8 for ext/RMagick/rmenum.o, skip
ping
unable to convert "\x8A" from ASCII-8BIT to UTF-8 for ext/RMagick/rmfill.o, skip
ping
unable to convert "\xF5" from ASCII-8BIT to UTF-8 for ext/RMagick/rmilist.o, ski
pping
unable to convert "\xD6" from ASCII-8BIT to UTF-8 for ext/RMagick/rmimage.o, ski
pping
unable to convert "\xC9" from ASCII-8BIT to UTF-8 for ext/RMagick/rminfo.o, skip
ping
unable to convert "\xE3" from ASCII-8BIT to UTF-8 for ext/RMagick/rmmain.o, skip
ping
unable to convert "\x92" from ASCII-8BIT to UTF-8 for ext/RMagick/rmmontage.o, s
kipping
unable to convert "\xFE" from ASCII-8BIT to UTF-8 for ext/RMagick/rmpixel.o, ski
pping
unable to convert "\xE5" from ASCII-8BIT to UTF-8 for ext/RMagick/rmstruct.o, sk
ipping
unable to convert "\xC1" from ASCII-8BIT to UTF-8 for ext/RMagick/rmutil.o, skip
ping
unable to convert "\x90" from ASCII-8BIT to UTF-8 for lib/RMagick2.so, skipping
Installing ri documentation for rmagick-2.13.2
1 gem installed

C:\dev\ruby200>gem list rmag

*** LOCAL GEMS ***

rmagick (2.13.2)

C:\dev\ruby200>identify
Version: ImageMagick 6.8.5-7 2013-05-19 Q16 http://www.imagemagick.org
Copyright: Copyright (C) 1999-2013 ImageMagick Studio LLC
Features: DPC OpenMP
Delegates: bzlib fontconfig freetype jng jp2 jpeg lcms lzma png ps tiff x xml zl
ib

Usage: identify.exe [options ...] file [ [options ...] file ... ]

Image Settings:
  -alpha option        on, activate, off, deactivate, set, opaque, copy
                       transparent, extract, background, or shape
  -antialias           remove pixel-aliasing
  -authenticate password
                       decipher image with this password
  -channel type        apply option to select image channels
  -clip                clip along the first path from the 8BIM profile
  -clip-mask filename  associate a clip mask with the image
  -clip-path id        clip along a named path from the 8BIM profile
  -colorspace type     alternate image colorspace
  -crop geometry       cut out a rectangular region of the image
  -define format:option
                       define one or more image format options
  -density geometry    horizontal and vertical density of the image
  -depth value         image depth
  -endian type         endianness (MSB or LSB) of the image
  -extract geometry    extract area from image
  -features distance   analyze image features (e.g. contrast, correlation)
  -format "string"     output formatted image characteristics
  -fuzz distance       colors within this distance are considered equal
  -gamma value         of gamma correction
  -interlace type      type of image interlacing scheme
  -interpolate method  pixel color interpolation method
  -limit type value    pixel cache resource limit
  -mask filename       associate a mask with the image
  -monitor             monitor progress
  -ping                efficiently determine image attributes
  -quiet               suppress all warning messages
  -regard-warnings     pay attention to warning messages
  -respect-parentheses settings remain in effect until parenthesis boundary
  -sampling-factor geometry
                       horizontal and vertical sampling factor
  -seed value          seed a new sequence of pseudo-random numbers
  -set attribute value set an image attribute
  -size geometry       width and height of image
  -strip               strip image of all profiles and comments
  -unique              display the number of unique colors in the image
  -units type          the units of image resolution
  -verbose             print detailed information about the image
  -virtual-pixel method
                       virtual pixel access method

Image Operators:
  -negate              replace every pixel with its complementary color

Miscellaneous Options:
  -debug events        display copious debugging information
  -help                print program options
  -list type           print a list of supported option arguments
  -log format          format of debugging information
  -version             print version information

By default, the image format of `file' is determined by its magic
number.  To specify a particular image format, precede the filename
with an image format name and a colon (i.e. ps:image) or specify the
image type as the filename suffix (i.e. image.ps).  Specify 'file' as
'-' for standard input or output.

binaryphile

unread,
May 27, 2013, 11:53:22 AM5/27/13
to spree...@googlegroups.com
You may very well get it to work.  The point is that no one does it that way, so you'll run into problems with poor support for the platform and no support from anyone in your shoes, only to find that you spent all of that effort for an install that performs like poop because Ruby on windows has well-documented performance issues that hit Rails particularly hard.

I've run Spree on Windows in production.  I don't any more.  Good luck with it if you want to keep going, but don't expect much is all I'm saying.

Ildar Minnikhanov

unread,
May 27, 2013, 11:57:23 AM5/27/13
to spree...@googlegroups.com
Yes, Bundler gem, DevKit installed.

At this Ruby & RoR environment I install Redmine and it run.

Michael Sevestre

unread,
May 27, 2013, 12:02:42 PM5/27/13
to spree...@googlegroups.com
I second Ted on that. 

It will be much easier in the long run to create a Linux machine to work on spree. There are some Vagrant templates available out there that are ready for rails development with ruby, rails etc installed. 
Good luck

Ildar Minnikhanov

unread,
May 27, 2013, 12:37:43 PM5/27/13
to spree...@googlegroups.com
I agree with you. I read a lot times - Ruby is better on *nix, is easier. I suppose at 2d step to create a Linux machine to work on spree.
Now I want to make only 1st step - to start & look at it. Now I have easer access to win. I want to show Spree to anyone, they hav't *nix yet, they have only win.

May you help me to start spree on win?
Now I purpose install & show Spree. Further I switch to Linux as you advice.

https://groups.google.com/d/msg/spree-user/suAzWRx_o2s/hVyb2Wm3WMoJ

Ryan Bigg

unread,
May 30, 2013, 10:46:45 AM5/30/13
to spree...@googlegroups.com
Ildar, you can set up Spree on a Linux machine and have it running there. People who are on Windows will only connect to Spree through a web browser, so it doesn't matter which operating system that they're using... it will still work.
Reply all
Reply to author
Forward
0 new messages