bundle install fatal error

Greetings all,

After being a c# programmer I wanted to get my feet wet in RoR. Good
stuff. I'm running a cygwin (linux emmulator - sort of on Window 7). I
have ruby installed:

$ ruby -v
ruby 1.9.3p327 (2012-11-10 revision 37606) [i386-cygwin]

I have rails installed:

$ rails -v
Rails 3.2.9

I have gem installed:

$ gem -v
1.8.24

All is fine except when I run "rails new <name>" command I get a fatal
error (Pls see below). I deleted all the stuff on the link provided in
the error but still I'm getting the fatal error. Any idea what is wrong
or how I can debug this other than a reinstall?

Thanks
A

$ rails new test2
      create
      create README.rdoc
      create Rakefile
      create config.ru
      create .gitignore
      create Gemfile
      create app
      create app/assets/images/rails.png
      create app/assets/javascripts/application.js
      create app/assets/stylesheets/application.css
      create app/controllers/application_controller.rb
      create app/helpers/application_helper.rb
      create app/mailers
      create app/models
      create app/views/layouts/application.html.erb
      create app/mailers/.gitkeep
      create app/models/.gitkeep
      create config
.
.
.
(snip)
.
.
.
   create vendor/assets/javascripts
      create vendor/assets/javascripts/.gitkeep
      create vendor/assets/stylesheets
      create vendor/assets/stylesheets/.gitkeep
      create vendor/plugins
      create vendor/plugins/.gitkeep
         run bundle install
/usr/lib/ruby/gems/1.9.1/gems/bundler-1.2.2/lib/bundler/friendly_errors.rb:32:
stack level too deep (SystemStackError)
Fetching gem metadata from https://rubygems.org/
Fetching gem metadata from https://rubygems.org/
Unfortunately, a fatal error has occurred. Please see the Bundler
troubleshooting documentation at http://bit.ly/bundler-issues. Thanks!

myself@myself-HP ~
$

Adam A. wrote in post #1087178:

Greetings all,

After being a c# programmer I wanted to get my feet wet in RoR. Good
stuff. I'm running a cygwin (linux emmulator - sort of on Window 7). I
have ruby installed:

$ ruby -v
ruby 1.9.3p327 (2012-11-10 revision 37606) [i386-cygwin]

I have rails installed:

$ rails -v
Rails 3.2.9

I have gem installed:

$ gem -v
1.8.24

All is fine except when I run "rails new <name>" command I get a fatal
error (Pls see below). I deleted all the stuff on the link provided in
the error but still I'm getting the fatal error. Any idea what is wrong
or how I can debug this other than a reinstall?

Thanks
A

$ rails new test2
      create
      create README.rdoc
      create Rakefile
      create config.ru
      create .gitignore
      create Gemfile
      create app
      create app/assets/images/rails.png
      create app/assets/javascripts/application.js
      create app/assets/stylesheets/application.css
      create app/controllers/application_controller.rb
      create app/helpers/application_helper.rb
      create app/mailers
      create app/models
      create app/views/layouts/application.html.erb
      create app/mailers/.gitkeep
      create app/models/.gitkeep
      create config
.
.
.
(snip)
.
.
.
   create vendor/assets/javascripts
      create vendor/assets/javascripts/.gitkeep
      create vendor/assets/stylesheets
      create vendor/assets/stylesheets/.gitkeep
      create vendor/plugins
      create vendor/plugins/.gitkeep
         run bundle install
/usr/lib/ruby/gems/1.9.1/gems/bundler-1.2.2/lib/bundler/friendly_errors.rb:32:
stack level too deep (SystemStackError)
Fetching gem metadata from https://rubygems.org/
Fetching gem metadata from https://rubygems.org/
Unfortunately, a fatal error has occurred. Please see the Bundler
troubleshooting documentation at http://bit.ly/bundler-issues. Thanks!

myself@myself-HP ~
$

/* Hi all,

I'm in a similar scenario. Running Cygwin on Windows 7 with the
following: */

$ gem -v
1.8.24

$ ruby -v
ruby 1.9.2p320 (2012-04-20 revision 35421) [i386-cygwin]

$ rails -v
Rails 3.2.9

/* I'm using an earlier version of ruby because the latest kept failing
to install. */

($ rvm install 1.9.3
No binary rubies available for: downloads/ruby-1.9.3-p327.
Continuing with compilation. Please read 'rvm mount' to get more
information on
binary rubies.
Fetching yaml-0.1.4.tar.gz to /home/Abdeleon/.rvm/archives
Extracting yaml to /home/Abdeleon/.rvm/src/yaml-0.1.4
Prepare yaml in /home/Abdeleon/.rvm/src/yaml-0.1.4.
Configuring yaml in /home/Abdeleon/.rvm/src/yaml-0.1.4.
Compiling yaml in /home/Abdeleon/.rvm/src/yaml-0.1.4.
Installing yaml to /home/Abdeleon/.rvm/usr
Installing Ruby from source to:
/home/Abdeleon/.rvm/rubies/ruby-1.9.3-p327, this
may take a while depending on your cpu(s)...
ruby-1.9.3-p327 - #downloading ruby-1.9.3-p327, this may take a while
depending
on your connection...
ruby-1.9.3-p327 - #extracted to /home/Abdeleon/.rvm/src/ruby-1.9.3-p327
(already
extracted)
ruby-1.9.3-p327 - #configuring
ruby-1.9.3-p327 - #compiling
Error running 'make', please read
/home/Abdeleon/.rvm/log/ruby-1.9.3-p327/make.log

There has been an error while running make. Halting the installation.)

/* I couldn't figure out that one so I tried 1.9.2 instead...

At first, I tried running 'bundle install' in the root of the app
directory and then tried 'gem install (missing gem name)' for each gem
bundle install reported was missing. I had to run it for sqlite3 and
uglifier. Now, when I run bundle install, I just get a fatal error. */

~/rails_projects/test_app
$ bundle install
Unfortunately, a fatal error has occurred. Please see the Bundler
troubleshooting documentation at http://bit.ly/bundler-issues. Thanks!
/home/Abdeleon/.rvm/gems/ruby-1.9.2-p320@global/gems/bundler-1.2.3/lib/bundler/d
efinition.rb:105:in `resolve_remotely!': Specs already loaded
(RuntimeError)
        from
/home/Abdeleon/.rvm/gems/ruby-1.9.2-p320@global/gems/bundler-1.2.3/
lib/bundler/installer.rb:81:in `run'
        from
/home/Abdeleon/.rvm/gems/ruby-1.9.2-p320@global/gems/bundler-1.2.3/
lib/bundler/installer.rb:14:in `install'
        from
/home/Abdeleon/.rvm/gems/ruby-1.9.2-p320@global/gems/bundler-1.2.3/
lib/bundler/cli.rb:230:in `install'
        from
/home/Abdeleon/.rvm/gems/ruby-1.9.2-p320@global/gems/bundler-1.2.3/
lib/bundler/vendor/thor/task.rb:27:in `run'
        from
/home/Abdeleon/.rvm/gems/ruby-1.9.2-p320@global/gems/bundler-1.2.3/
lib/bundler/vendor/thor/invocation.rb:120:in `invoke_task'
        from
/home/Abdeleon/.rvm/gems/ruby-1.9.2-p320@global/gems/bundler-1.2.3/
lib/bundler/vendor/thor.rb:275:in `dispatch'
        from
/home/Abdeleon/.rvm/gems/ruby-1.9.2-p320@global/gems/bundler-1.2.3/
lib/bundler/vendor/thor/base.rb:408:in `start'
        from
/home/Abdeleon/.rvm/gems/ruby-1.9.2-p320@global/gems/bundler-1.2.3/
bin/bundle:14:in `block in <top (required)>'
        from
/home/Abdeleon/.rvm/gems/ruby-1.9.2-p320@global/gems/bundler-1.2.3/
lib/bundler/friendly_errors.rb:4:in `with_friendly_errors'
        from
/home/Abdeleon/.rvm/gems/ruby-1.9.2-p320@global/gems/bundler-1.2.3/
bin/bundle:14:in `<top (required)>'
        from
/home/Abdeleon/.rvm/gems/ruby-1.9.2-p320@global/bin/bundle:19:in `l
oad'
        from
/home/Abdeleon/.rvm/gems/ruby-1.9.2-p320@global/bin/bundle:19:in `<

'

        from
/home/Abdeleon/.rvm/gems/ruby-1.9.2-p320@rails3tutorial/bin/ruby_no
exec_wrapper:14:in `eval'
        from
/home/Abdeleon/.rvm/gems/ruby-1.9.2-p320@rails3tutorial/bin/ruby_no
exec_wrapper:14:in `<main>'

/* I went to the site mentioned above for bundle troubleshooting and
then ran only the following: */

Nice to see I'm not alone in the world of R0R on Cygwin :slight_smile:

I got it working with latest Ruby release. Everything on my end works
just fine. Here's what worked for me: Make sure the ruby that you have
installed /with/ cygwin (during the setup.exe) is not interferring with
the ruby installed in your windows.

In my case, I'm using the ruby that installed myself on windows. I refer
to it (and it's in my env and path) as
/cygwin/c/ruby-1.9.3/bin/ruby.exe. All other tools and scripts are
referred to as /cygwin/c/ruby-1.9.3/bin/bundle.bat or gem.bat or
rails.bat. In sum, make sure you are consistant as to which ruby you
are using and in which environment.

HTH