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 ” 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 < main>' 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 `’
/* I went to the site mentioned above for bundle troubleshooting and
then ran only the following: */
~
$ rvm gemset use global
Using ruby-1.9.2-p320 with gemset global
~
$ gem uninstall rubygems-bundler open_gem
Remove executables:
rubygems-bundler-uninstaller
in addition to the gem? [Yn] y
Removing rubygems-bundler-uninstaller
Successfully uninstalled rubygems-bundler-1.1.0
INFO: gem “open_gem” is not installed
~
$ gem install bundle
Fetching: bundle-0.0.1.gem (100%)
Successfully installed bundle-0.0.1
1 gem installed
Installing ri documentation for bundle-0.0.1…
Installing RDoc documentation for bundle-0.0.1…
~
$ cd rails_projects
~/rails_projects
$ cd test_app
~/rails_projects/test_app
$ bundle install
Fetching gem metadata from https://rubygems.org/…
Fetching gem metadata from https://rubygems.org/…
Using rake (10.0.2)
Installing i18n (0.6.1)
Installing multi_json (1.4.0)
Installing activesupport (3.2.9)
Installing builder (3.0.4)
Installing activemodel (3.2.9)
Installing erubis (2.7.0)
Installing journey (1.0.4)
Installing rack (1.4.1)
Installing rack-cache (1.2)
Installing rack-test (0.6.2)
Installing hike (1.2.1)
Installing tilt (1.3.3)
Installing sprockets (2.2.2)
Installing actionpack (3.2.9)
Installing mime-types (1.19)
Installing polyglot (0.3.3)
Installing treetop (1.4.12)
Installing mail (2.4.4)
Installing actionmailer (3.2.9)
Installing arel (3.0.2)
Installing tzinfo (0.3.35)
Installing activerecord (3.2.9)
Installing activeresource (3.2.9)
Using bundler (1.2.3)
Installing coffee-script-source (1.4.0)
Installing execjs (1.4.0)
Installing coffee-script (2.2.0)
Installing rack-ssl (1.3.2)
Installing json (1.7.5) with native extensions
Installing rdoc (3.12)
Installing thor (0.16.0)
Installing railties (3.2.9)
Installing coffee-rails (3.2.2)
Installing jquery-rails (2.1.4)
Installing rails (3.2.9)
Installing sass (3.2.3)
Installing sass-rails (3.2.5)
Installing sqlite3 (1.3.6) with native extensions
Installing uglifier (1.3.0)
Your bundle is complete! Use bundle show [gemname]
to see where a
bundled gem
is installed.
Post-install message from rdoc:
Depending on your version of ruby, you may need to install ruby rdoc/ri
data:
<= 1.8.6 : unsupported
= 1.8.7 : gem install rdoc-data; rdoc-data --install
= 1.9.1 : gem install rdoc-data; rdoc-data --install
= 1.9.2 : nothing to do! Yay!
/* I then ran ‘rails server’ at the root of my app directory: */
~/rails_projects/test_app
$ rails server
=> Booting WEBrick
=> Rails 3.2.9 application starting in development on
http://0.0.0.0:3000
=> Call with -d to detach
=> Ctrl-C to shutdown server
[2012-12-09 12:54:07] INFO WEBrick 1.3.1
[2012-12-09 12:54:07] INFO ruby 1.9.2 (2012-04-20) [i386-cygwin]
[2012-12-09 12:54:07] INFO WEBrick::HTTPServer#start: pid=6020
port=3000
Started GET “/assets/rails.png” for 127.0.0.1 at 2012-12-09 12:54:26
-0600
Connecting to database specified by database.yml
Served asset /rails.png - 200 OK (21ms)
/* Afterwards I opened http://localhost:3000/ in a web browser and it
worked! Now I can go back to reading “Ruby on Rails 3 Tutorial, by
Michael Hart”. I’m a .NET(C#) tinkerer as well and am beginning an
exciting journey from a fully Microsoft only world to the realms of open
source and RoR. I hope this helps other fellow coders in the same boat.
Regards,
Tony */