bundle install fails with rdoc Internal Server Error - ruby

while trying to install a Ruby application with Bundler, the dependent rdoc gem fails with an Internal Server Error:
user#machine:/home/user/someapp# bundle
Fetching gem metadata from http://rubygems.org/...........
Fetching gem metadata from http://rubygems.org/..
Using rake (10.0.3)
Using i18n (0.6.1)
Using multi_json (1.6.1)
Using activesupport (3.2.12)
Using builder (3.0.4)
Using activemodel (3.2.12)
Using erubis (2.7.0)
Using journey (1.0.4)
Using rack (1.4.5)
Using rack-cache (1.2)
Using rack-test (0.6.2)
Using hike (1.2.1)
Using tilt (1.3.3)
Using sprockets (2.2.2)
Using actionpack (3.2.12)
Using mime-types (1.21)
Using polyglot (0.3.3)
Using treetop (1.4.12)
Using mail (2.4.4)
Using actionmailer (3.2.12)
Using arel (3.0.2)
Using tzinfo (0.3.35)
Using activerecord (3.2.12)
Using activeresource (3.2.12)
Using addressable (2.3.3)
Using bcrypt-ruby (3.0.1)
Using coderay (1.0.9)
Using better_errors (0.7.0)
Using debug_inspector (0.0.2)
Using binding_of_caller (0.7.1)
Using cancan (1.6.9)
Using nokogiri (1.5.6)
Using ffi (1.4.0)
Using childprocess (0.3.8)
Using rubyzip (0.9.9)
Using websocket (1.0.7)
Using selenium-webdriver (2.30.0)
Using xpath (1.0.0)
Using capybara (2.0.2)
Using coffee-script-source (1.4.0)
Using execjs (1.4.0)
Using coffee-script (2.2.0)
Using rack-ssl (1.3.3)
Using json (1.7.7)
Gem::RemoteFetcher::FetchError: bad response Internal Server Error 500 (http://aws-eu-cache01.rubygems.org/gems/rdoc-3.12.1.gem)
An error occured while installing rdoc (3.12.1), and Bundler cannot continue.
Make sure that `gem install rdoc -v '3.12.1'` succeeds before bundling.
What I have tried:
gem install rdoc -v '3.12.1': ERROR: While executing gem ... Gem::RemoteFetcher::FetchError) bad response Internal Server Error 500 (http://aws-eu-cache01.rubygems.org/gems/rdoc-3.12.1.gem)
adding gem: --no-document to the /etc/gemrc file
adding gem: --no-rdoc --no-ri to the /etc/gemrc file
How can I get rdoc to install, or how do I get the application to install without rdoc?

Try reinstalling rdoc. Maybe there was a problem with the rubygems server when you last tried.

Related

Ruby193 completely ignore breakpoints in debug mode

I had just upgrade from Ruby192 to Ruby193 (rubyinstaller-1.9.3-p392).
After gone through many errors and googling, I manage to start up the server normally without any error.
When I start up my server with debug mode (In NetBeans 6.9.1) it just ignore the breakpoints and continue to load the page, see below output.
Fast Debugger (ruby-debug-ide 0.4.17.beta16, ruby-debug-base19x 0.11) listens on 127.0.0.1:49628
=> Booting WEBrick
=> Rails 3.2.12 application starting in development on http://0.0.0.0:3000
=> Call with -d to detach
=> Ctrl-C to shutdown server
[2013-03-09 11:34:54] INFO WEBrick 1.3.1
[2013-03-09 11:34:54] INFO ruby 1.9.3 (2013-02-22) [i386-mingw32]
[2013-03-09 11:34:54] INFO WEBrick::HTTPServer#start: pid=708 port=3000
Breakpoint 32 at D:/MyWorkspace/NetBeans_Projects/homeloqsg/app/controllers/miscellaneous_controller.rb:7
I have the following gem installed
$ gem list
*** LOCAL GEMS ***
actionmailer (3.2.12)
actionpack (3.2.12)
activemodel (3.2.12)
activerecord (3.2.12)
activeresource (3.2.12)
activesupport (3.2.12)
addressable (2.3.3)
archive-tar-minitar (0.5.2)
arel (3.0.2)
authlogic (3.2.0)
aws-s3 (0.6.3)
aws-sdk (1.8.3.1)
bigdecimal (1.1.0)
bson (1.8.3)
bson_ext (1.8.3)
builder (3.0.4)
bundler (1.3.1)
carrierwave (0.8.0)
climate_control (0.0.3)
cocaine (0.5.1)
columnize (0.3.6)
debugger (1.4.0)
debugger-linecache (1.1.2)
debugger-ruby_core_source (1.2.0)
erubis (2.7.0)
excon (0.16.10)
fog (1.10.0)
formatador (0.2.4)
gmaps4rails (1.5.6)
heroku (2.35.0)
heroku-api (0.3.8)
hike (1.2.1)
i18n (0.6.4)
io-console (0.3)
journey (1.0.4)
jquery-rails (2.2.1)
json (1.5.5)
launchy (2.2.0)
linecache19 (0.5.12)
mail (2.4.4)
mime-types (1.21)
minitest (2.5.1)
multi_json (1.6.1)
mysql (2.8.1 x86-mingw32)
net-scp (1.1.0)
net-ssh (2.6.6)
netrc (0.7.7)
nokogiri (1.5.6 x86-mingw32)
paperclip (3.4.1)
pg (0.14.1 x86-mingw32)
polyglot (0.3.3)
rack (1.4.5)
rack-cache (1.2)
rack-ssl (1.3.3)
rack-test (0.6.2)
rails (3.2.12)
railties (3.2.12)
rake (0.9.2.2)
rdiscount (1.6.8)
rdoc (3.9.5)
rest-client (1.6.7)
rmagick (2.13.2)
ruby-debug-base19x (0.11.30.pre10)
ruby-debug-ide (0.4.17.beta16)
ruby-hmac (0.4.0)
ruby_core_source (0.1.5)
rubygems-update (2.0.1)
rubyzip (0.9.9)
sitemap_generator (3.4)
sprockets (2.2.2)
thor (0.17.0)
tilt (1.3.4)
treetop (1.4.12)
tzinfo (0.3.36)
uuidtools (2.1.3)
will_paginate (3.0.4)
xml-simple (1.1.2)
After struggled for hours I manage to solved this issue.
I think I have too many debug gems.
debugger (1.4.0)
debugger-linecache (1.1.2)
debugger-ruby_core_source (1.2.0)
ruby-debug-base19x (0.11.30.pre10)
ruby-debug-ide (0.4.17.beta16)
linecache19 (0.5.12)
After removed the following gems it working fine and the breakpoints just stop at the line I want.
debugger (1.4.0)
debugger-linecache (1.1.2)
debugger-ruby_core_source (1.2.0)
Thanks.

Failed to build gem native extension ruby 2.0 upgrade fastthread

I am upgrading my system to ruby 2.0 and I have done everything short of throw my computer on the wall. I find it hard to believe that fastthread is the problem. Has anyone else seen this error when running 'bundle install'. Here is my ruby version
ruby -v
ruby 2.0.0p0 (2013-02-24 revision 39474) [x86_64-darwin12.2.0]
when I try to run rails -v I get this
rails -v
Could not find fastthread-1.0.7 in any of the sources
Run bundle install to install missing gems.
Fetching gem metadata from https://rubygems.org/.........
Fetching gem metadata from https://rubygems.org/..
Resolving dependencies...
Using rake (10.0.3)
Using i18n (0.6.1)
Using multi_json (1.6.1)
Using activesupport (3.2.9)
Using builder (3.0.4)
Using activemodel (3.2.9)
Using erubis (2.7.0)
Using journey (1.0.4)
Using rack (1.4.5)
Using rack-cache (1.2)
Using rack-test (0.6.2)
Using hike (1.2.1)
Using tilt (1.3.3)
Using sprockets (2.2.2)
Using actionpack (3.2.9)
Using mime-types (1.21)
Using polyglot (0.3.3)
Using treetop (1.4.12)
Using mail (2.4.4)
Using actionmailer (3.2.9)
Using arel (3.0.2)
Using tzinfo (0.3.35)
Using activerecord (3.2.9)
Using activeresource (3.2.9)
Using bundler (1.3.0)
Using highline (1.6.15)
Using net-ssh (2.6.5)
Using net-scp (1.1.0)
Using net-sftp (2.1.1)
Using net-ssh-gateway (1.2.0)
Using capistrano (2.14.2)
Using chunky_png (1.2.7)
Using coffee-script-source (1.5.0)
Using execjs (1.4.0)
Using coffee-script (2.2.0)
Using rack-ssl (1.3.3)
Using json (1.7.7)
Using rdoc (3.12.2)
Using thor (0.17.0)
Using railties (3.2.9)
Using coffee-rails (3.2.2)
Using fssm (0.2.10)
Using sass (3.2.6)
Using compass (0.12.2)
Using compass-rails (1.0.3)
Using daemon_controller (1.1.1)
Installing fastthread (1.0.7)
Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension.
/Users/ben/.rvm/rubies/ruby-2.0.0-p0/bin/ruby extconf.rb
extconf.rb:13:in `block in <main>': Use RbConfig instead of obsolete and deprecated Config.
extconf.rb:13:in `block in <main>': Use RbConfig instead of obsolete and deprecated Config.
make
Makefile:104: *** missing separator. Stop.
Gem files will remain installed in /Users/[me]/.rvm/gems/ruby-2.0.0-p0/gems/fastthread-1.0.7 for inspection.
Results logged to /Users/[me]/.rvm/gems/ruby-2.0.0-p0/gems/fastthread-1.0.7/ext/fastthread/gem_make.out
An error occurred while installing fastthread (1.0.7), and Bundler cannot
continue.
Make sure that `gem install fastthread -v '1.0.7'` succeeds before bundling.
Has anyone else ran into this?
Conents of /Users/[me]/.rvm/gems/ruby-2.0.0-p0/gems/fastthread-1.0.7/ext/fastthread/gem_mak‌​e.out
/Users/[me]/.rvm/rubies/ruby-2.0.0-p0/bin/ruby extconf.rb
extconf.rb:13:in `block in <main>': Use RbConfig instead of obsolete and deprecated Config.
extconf.rb:13:in `block in <main>': Use RbConfig instead of obsolete and deprecated Config.
make
Makefile:104: *** missing separator. Stop.
Phusion Passenger 4 has already solved this by removing the fastthread dependency. The 4.0 betas and RCs install just fine on Ruby 2.0.
If you use Passenger as your webserver you have to have this dependency. See this pull request for the fix: https://github.com/zoltankiss/fastthread/commit/a47a121990cf7d4f31147406c2d379dabc048479
The author of the gem has not yet included this fix. You can require fastthread from https://github.com/zoltankiss/fastthread if you need it. That is who submitted the pull request.

Startup redmine 1.2 fail

When I try to startup the redmine 1.2 with the server which binding with redmine itself, but it show me an error of gem, info like below:
[root#XPG redmine-1.2.0]# ruby script/server webtrick -e production
Missing the i18n 0.4.2 gem. Please `gem install -v=0.4.2 i18n`
even if I have installed the gem it said:
[root#XPG redmine-1.2.0]# gem list --local
*** LOCAL GEMS ***
aasm (2.2.0)
abstract (1.0.0)
actionmailer (2.3.5)
actionpack (2.3.5)
activerecord (2.3.5)
activeresource (2.3.5)
activesupport (2.3.5)
arel (2.0.10)
Ascii85 (1.0.1)
block_helpers (0.3.3)
builder (2.1.2)
bundler (1.0.14)
capybara (1.0.0)
childprocess (0.1.9)
cucumber (1.0.0)
cucumber-rails (1.0.2)
diff-lcs (1.1.2)
edavis10-object_daddy (0.4.3)
erubis (2.6.6)
ffi (1.0.9)
gherkin (2.4.1)
holidays (1.0.2)
i18n (0.4.2)
icalendar (1.1.6)
json (1.6.1, 1.5.3)
json_pure (1.5.3)
mail (2.2.19)
mime-types (1.16)
mocha (0.9.12)
mysql (2.8.1)
nokogiri (1.5.0)
pdf-reader (0.9.2)
polyglot (0.3.1)
prawn (0.11.1)
rack (1.2.3, 1.1.2, 1.0.1)
rack-mount (0.6.14)
rack-test (0.5.7)
rails (2.3.5)
rake (0.9.0)
rubygems-update (1.8.11, 1.8.4, 1.5.3, 1.3.7)
rubyzip (0.9.4)
selenium-webdriver (0.2.2)
shoulda (2.10.3)
sqlite3 (1.3.3)
sqlite3-ruby (1.3.3)
term-ansicolor (1.0.5)
thor (0.14.6)
treetop (1.4.9)
ttfunk (1.0.1)
tzinfo (0.3.27)
xpath (0.1.4)
But the issue is still appeared, is there any idea to fix it?
as far as I see, your command is not correct.
server's name is webrick, not "webtrick"
even using webrick, it doesn't support production environment.
seems that you are not using rails3/bundler
I suggest that you start the webserver using either mongrel or thin, both of them are faster and stabler than webrick.

Failed DataMapper Gem install on Win7

I'm learning to use Sinatra + Datamapper to build a lightweight webapp.
I ran gem install sqlite3 datamapper dm-sqlite-adapter and it seemed to have successfully installed...
I then tried to execute my .rb file which starts with:
require 'sinatra'
require 'datamapper'
and I got an error that it could not find the datamapper file.
C:/Ruby192/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require': no such file to load -- datamapper (LoadError)
I also tried with require 'data_mapper' since there is conflicting information on the internetz as to the correct spelling of that gem, but same result.
I then listed all my installed gems (see below) and realilsed that there is no such gem as datamapper or data_mapper. I read so,ewhere that it is a meta-gem, I guess that means it doesn't actually install that one gem but rather all the gems starting with dm- ?
As a last resort I tried gem install data_mapper
and I got the ill fated:
C:\Users\Manu\Sinatra>gem install data_mapper
Building native extensions. This could take a while...
ERROR: Error installing data_mapper:
ERROR: Failed to build gem native extension.
C:/Ruby192/bin/ruby.exe extconf.rb
creating Makefile
make
'make' is not recognized as an internal or external command,operable program or batch file.
Gem files will remain installed in C:/Ruby192/lib/ruby/gems/1.9.1/gems/json-1.6.4 for inspection.
Results logged to C:/Ruby192/lib/ruby/gems/1.9.1/gems/json-1.6.4/ext/json/ext/parser/gem_make.out
I searched all over and just couldn't find anything to help me troubleshoot this, so hopefully there's someone roaming this forum with a magic wand and a pointy hat!
Many thanks
PS: I'm running ruby 1.9.2p0 installed with the installer
* LOCAL GEMS *
abstract (1.0.0)
actionmailer (3.0.3)
actionpack (3.0.3)
activemodel (3.0.3)
activerecord (3.0.3)
activeresource (3.0.3)
activesupport (3.0.3)
addressable (2.2.6)
arel (2.0.6)
backports (2.3.0)
builder (2.1.2)
bundler (1.0.7)
cgi_multipart_eof_fix (2.5.0)
data_objects (0.10.7)
diff-lcs (1.1.3)
dm-aggregates (1.2.0)
dm-constraints (1.2.0)
dm-core (1.2.0)
dm-do-adapter (1.2.0)
dm-migrations (1.2.0)
dm-sqlite-adapter (1.2.0)
dm-transactions (1.2.0)
do_sqlite3 (0.10.7 x86-mingw32)
erubis (2.6.6)
fastercsv (1.5.4)
gem_plugin (0.2.3)
growl (1.0.3)
i18n (0.5.0)
json_pure (1.6.4)
mail (2.2.12)
mime-types (1.16)
minitest (1.6.0)
mongrel (1.1.5 x86-mingw32)
multi_json (1.0.4)
polyglot (0.3.1)
rack (1.4.0, 1.2.1)
rack-mount (0.6.13)
rack-protection (1.2.0)
rack-test (0.5.6)
rails (3.0.3)
railties (3.0.3)
rake (0.8.7)
rdoc (2.5.8)
rspec (2.8.0)
rspec-core (2.8.0)
rspec-expectations (2.8.0)
rspec-mocks (2.8.0)
rubygems-update (1.8.15)
sinatra (1.3.2)
sqlite3 (1.3.5 x86-mingw32)
sqlite3-ruby (1.3.3, 1.3.2 x86-mingw32)
sys-uname (0.9.0 x86-mingw32)
thor (0.14.6)
tilt (1.3.3)
treetop (1.4.9)
trollop (1.16.2)
tzinfo (0.3.23)
yard (0.7.4)
It seems the RubyInstaller Development Kit is missing:
http://rubyinstaller.org/add-ons/devkit/
The devkit installs a C-compiler (and some other stuff like make) to compile C-written parts.
Install it and try again to install the gem - perhaps with option --platform=ruby.
Details can be found at https://github.com/oneclick/rubyinstaller/wiki/Development-Kit

spork on Win XP/ruby1.8.7 not recognized gem 'win-32process'

I'm having a real hard time getting my environment ready with rspec and spork.
I am working on an application both on windows and linux environment (linux:home, windows:work)
I had a project configured using rspec and spork at home, when trying to replicate the gems needed for this project to run, I get the following error when trying to install spork.
gem install spork
Temporarily enhancing PATH to include DevKit...
Building native extensions. This could take a while...
ERROR: Error installing spork:
ERROR: Failed to build gem native extension.
C:/RailsInstaller/Ruby1.8.7/bin/ruby.exe mkrf_conf.rb
Actually, there aren't any native extensions. I'm just dynamically installing de
pendencies based off of your operating system
installing windows dependencies
Failed to install necessary dependency gem win32-process: Could not find a valid
gem 'win32-process' (~> 0.6.1) locally or in a repository
Gem files will remain installed in C:/RailsInstaller/Ruby1.8.7/lib/ruby/gems/1.8
/gems/spork-0.8.4 for inspection.
Results logged to C:/RailsInstaller/Ruby1.8.7/lib/ruby/gems/1.8/gems/spork-0.8.4
/ext/gem_make.out
I am really frustrated since I have already installed win32-process in the correct version. If I run
gem list
abstract (1.0.0)
actionmailer (3.0.5, 3.0.4)
actionpack (3.0.5, 3.0.4, 3.0.0)
activemodel (3.0.5, 3.0.4, 3.0.0)
activerecord (3.0.5, 3.0.4)
activeresource (3.0.5, 3.0.4)
activesupport (3.0.5, 3.0.4, 3.0.0)
arel (2.0.9, 2.0.8)
autotest (4.4.6)
autotest-growl (0.2.9)
autotest-rails-pure (4.1.2)
builder (2.1.2)
bundler (1.0.10)
diff-lcs (1.1.2)
erubis (2.6.6)
hoe (2.9.1)
i18n (0.5.0, 0.4.1)
json (1.5.1 x86-mingw32)
json_pure (1.5.1)
mail (2.2.15)
mime-types (1.16)
minitest (2.0.2)
nokogiri (1.4.4.1 x86-mingw32, 1.4.4
open4 (1.0.1)
pg (0.10.1)
Platform (0.4.0)
polyglot (0.3.1)
POpen4 (0.1.4)
racc (1.4.6)
rack (1.2.2, 1.2.1)
rack-mount (0.6.13)
rack-test (0.5.7, 0.5.4)
rails (3.0.5, 3.0.4)
railties (3.0.5, 3.0.4, 3.0.0)
rake (0.8.7)
rake-compiler (0.7.6)
rb-readline (0.4.0)
rexical (1.0.5)
rspec (2.5.0)
rspec-core (2.5.1)
rspec-expectations (2.5.0)
rspec-mocks (2.5.0)
rspec-rails (2.5.0)
rubyforge (2.0.4)
rubygems-update (1.6.2)
rubyzip2 (2.0.1)
sqlite3 (1.3.3 x86-mingw32)
sqlite3-ruby (1.3.3)
sys-proctable (0.9.0 x86-mswin32-60)
test-unit (2.2.0)
thor (0.14.6, 0.14.4, 0.14.0)
treetop (1.4.9)
tzinfo (0.3.25, 0.3.24, 0.3.23)
win32-api (1.4.8)
win32-open3 (0.3.2 x86-mingw32)
win32-process (0.6.1)
windows-api (0.4.0)
windows-pr (1.1.3)
ZenTest (4.5.0)
any ideas?
thanks in advance
I fixed the problem using milhouse-spork instead of spork itself
this version is, as said on the wiki page, for enabling windows machines to use spork
https://github.com/Milhouse/spork/wiki

Resources