Error installing linecache..can't handle 1.9 yet..

i cannot go into debug mode...I am ok with Ruby 1.9 but not 2.1.1

I tried installing all the linecach versions from the preference but did not fix.....do i need to do manually in the directory?

5:40:42 PM Error running main
           Failed to Install Gems. Following gems were not installed:
           linecache (0.46):  Error installing linecache:
           ERROR: Failed to build gem native extension.      /Users/kenmcfadden/.rvm/rubies/ruby-2.1.1/bin/ruby -r ./siteconf20140819-8201-slwux0.rb extconf.rb Can't handle 1.9.x yet *** extconf.rb failed *** Could not create Makefile due to some reason, probably lack of necessary libraries and/or headers.  Check the mkmf.log file for more details.  You may need configuration options.  Provided configuration options:     --with-opt-dir     --without-opt-dir     --with-opt-include     --without-opt-include=${opt-dir}/include     --with-opt-lib     --without-opt-lib=${opt-dir}/lib     --with-make-prog     --without-make-prog     --srcdir=.     --curdir     --ruby=/Users/kenmcfadden/.rvm/rubies/ruby-2.1.1/bin/ruby  extconf failed, exit code 1  Gem files will remain installed in /Users/kenmcfadden/.rvm/gems/ruby-2.1.1@sinatra/gems/linecache-0.46 for inspection. Results logged to /Users/kenmcfadden/.rvm/gems/ruby-2.1.1@sinatra/extensions/x86_64-darwin-12/2.1.0-static/linecache-0.46/gem_make.out
           /Applications/RubyMine.app/rb/gems/ruby-debug-base-0.10.5.rc1.gem:  Error installing ruby-debug-base-0.10.5.rc1.gem:
           ERROR: Failed to build gem native extension.      /Users/kenmcfadden/.rvm/rubies/ruby-2.1.1/bin/ruby -r ./siteconf20140819-8213-1kxal5u.rb extconf.rb Can't handle 1.9.x yet *** extconf.rb failed *** Could not create Makefile due to some reason, probably lack of necessary libraries and/or headers.  Check the mkmf.log file for more details.  You may need configuration options.  Provided configuration options:     --with-opt-dir     --without-opt-dir     --with-opt-include     --without-opt-include=${opt-dir}/include     --with-opt-lib     --without-opt-lib=${opt-dir}/lib     --with-make-prog     --without-make-prog     --srcdir=.     --curdir     --ruby=/Users/kenmcfadden/.rvm/rubies/ruby-2.1.1/bin/ruby  extconf failed, exit code 1  Gem files will remain installed in /Users/kenmcfadden/.rvm/gems/ruby-2.1.1@sinatra/gems/linecache-0.46 for inspection. Results logged to /Users/kenmcfadden/.rvm/gems/ruby-2.1.1@sinatra/extensions/x86_64-darwin-12/2.1.0-static/linecache-0.46/gem_make.out
           
5:45:31 PM Error running main
           Failed to Install Gems. Following gems were not installed:
           linecache (0.46):  Error installing linecache:
           ERROR: Failed to build gem native extension.      /Users/kenmcfadden/.rvm/rubies/ruby-2.1.1/bin/ruby -r ./siteconf20140819-8554-1wsm2y1.rb extconf.rb Can't handle 1.9.x yet *** extconf.rb failed *** Could not create Makefile due to some reason, probably lack of necessary libraries and/or headers.  Check the mkmf.log file for more details.  You may need configuration options.  Provided configuration options:     --with-opt-dir     --without-opt-dir     --with-opt-include     --without-opt-include=${opt-dir}/include     --with-opt-lib     --without-opt-lib=${opt-dir}/lib     --with-make-prog     --without-make-prog     --srcdir=.     --curdir     --ruby=/Users/kenmcfadden/.rvm/rubies/ruby-2.1.1/bin/ruby  extconf failed, exit code 1  Gem files will remain installed in /Users/kenmcfadden/.rvm/gems/ruby-2.1.1@sinatra/gems/linecache-0.46 for inspection. Results logged to /Users/kenmcfadden/.rvm/gems/ruby-2.1.1@sinatra/extensions/x86_64-darwin-12/2.1.0-static/linecache-0.46/gem_make.out
           /Applications/RubyMine.app/rb/gems/ruby-debug-base-0.10.5.rc1.gem:  Error installing ruby-debug-base-0.10.5.rc1.gem:
           ERROR: Failed to build gem native extension.      /Users/kenmcfadden/.rvm/rubies/ruby-2.1.1/bin/ruby -r ./siteconf20140819-8566-cbqai.rb extconf.rb Can't handle 1.9.x yet *** extconf.rb failed *** Could not create Makefile due to some reason, probably lack of necessary libraries and/or headers.  Check the mkmf.log file for more details.  You may need configuration options.  Provided configuration options:     --with-opt-dir     --without-opt-dir     --with-opt-include     --without-opt-include=${opt-dir}/include     --with-opt-lib     --without-opt-lib=${opt-dir}/lib     --with-make-prog     --without-make-prog     --srcdir=.     --curdir     --ruby=/Users/kenmcfadden/.rvm/rubies/ruby-2.1.1/bin/ruby  extconf failed, exit code 1  Gem files will remain installed in /Users/kenmcfadden/.rvm/gems/ruby-2.1.1@sinatra/gems/linecache-0.46 for inspection. Results logged to /Users/kenmcfadden/.rvm/gems/ruby-2.1.1@sinatra/extensions/x86_64-darwin-12/2.1.0-static/linecache-0.46/gem_make.out
           
5:47:35 PM Failed to load remote gems
           Interrupted
           Please check proxy settings and gem urls
9:14:18 AM Error running main
           Failed to Install Gems. Following gems were not installed:
           /Applications/RubyMine.app/rb/gems/ruby-debug-ide-0.4.17.beta14.gem: Cancelled
           linecache: No gem satisfying dependency found in remote gem repositories
           /Applications/RubyMine.app/rb/gems/ruby-debug-base-0.10.5.rc1.gem: Cancelled
           
9:15:34 AM Failed to load remote gems
           Interrupted
           Please check proxy settings and gem urls
9:18:45 AM Error running main
           Failed to Install Gems. Following gems were not installed:
           linecache (0.46):  Error installing linecache:
           ERROR: Failed to build gem native extension.      /Users/kenmcfadden/.rvm/rubies/ruby-2.1.1/bin/ruby -r ./siteconf20140820-14038-7f5ksk.rb extconf.rb Can't handle 1.9.x yet *** extconf.rb failed *** Could not create Makefile due to some reason, probably lack of necessary libraries and/or headers.  Check the mkmf.log file for more details.  You may need configuration options.  Provided configuration options:     --with-opt-dir     --without-opt-dir     --with-opt-include     --without-opt-include=${opt-dir}/include     --with-opt-lib     --without-opt-lib=${opt-dir}/lib     --with-make-prog     --without-make-prog     --srcdir=.     --curdir     --ruby=/Users/kenmcfadden/.rvm/rubies/ruby-2.1.1/bin/ruby  extconf failed, exit code 1  Gem files will remain installed in /Users/kenmcfadden/.rvm/gems/ruby-2.1.1@sinatra/gems/linecache-0.46 for inspection. Results logged to /Users/kenmcfadden/.rvm/gems/ruby-2.1.1@sinatra/extensions/x86_64-darwin-12/2.1.0-static/linecache-0.46/gem_make.out
           /Applications/RubyMine.app/rb/gems/ruby-debug-base-0.10.5.rc1.gem:  Error installing ruby-debug-base-0.10.5.rc1.gem:
           ERROR: Failed to build gem native extension.      /Users/kenmcfadden/.rvm/rubies/ruby-2.1.1/bin/ruby -r ./siteconf20140820-14050-3yky88.rb extconf.rb Can't handle 1.9.x yet *** extconf.rb failed *** Could not create Makefile due to some reason, probably lack of necessary libraries and/or headers.  Check the mkmf.log file for more details.  You may need configuration options.  Provided configuration options:     --with-opt-dir     --without-opt-dir     --with-opt-include     --without-opt-include=${opt-dir}/include     --with-opt-lib     --without-opt-lib=${opt-dir}/lib     --with-make-prog     --without-make-prog     --srcdir=.     --curdir     --ruby=/Users/kenmcfadden/.rvm/rubies/ruby-2.1.1/bin/ruby  extconf failed, exit code 1  Gem files will remain installed in /Users/kenmcfadden/.rvm/gems/ruby-2.1.1@sinatra/gems/linecache-0.46 for inspection. Results logged to /Users/kenmcfadden/.rvm/gems/ruby-2.1.1@sinatra/extensions/x86_64-darwin-12/2.1.0-static/linecache-0.46/gem_make.out
           
9:48:44 AM Error running main: Failed to find free socket port for process dispatcher
5:11:02 PM Error running main: Cannot start debugger. Gem 'ruby-debug-ide' isn't installed or its executable script 'rdebug-ide' doesn't exist.
5:12:16 PM Error running main
           Failed to Install Gems. Following gems were not installed:
           linecache: Cancelled
           /Applications/RubyMine.app/rb/gems/ruby-debug-base-0.10.5.rc1.gem:  Error installing ruby-debug-base-0.10.5.rc1.gem:
           ERROR: Failed to build gem native extension.      /Users/kenmcfadden/.rvm/rubies/ruby-2.1.1/bin/ruby -r ./siteconf20140820-14995-djavss.rb extconf.rb Can't handle 1.9.x yet *** extconf.rb failed *** Could not create Makefile due to some reason, probably lack of necessary libraries and/or headers.  Check the mkmf.log file for more details.  You may need configuration options.  Provided configuration options:     --with-opt-dir     --without-opt-dir     --with-opt-include     --without-opt-include=${opt-dir}/include     --with-opt-lib     --without-opt-lib=${opt-dir}/lib     --with-make-prog     --without-make-prog     --srcdir=.     --curdir     --ruby=/Users/kenmcfadden/.rvm/rubies/ruby-2.1.1/bin/ruby  extconf failed, exit code 1  Gem files will remain installed in /Users/kenmcfadden/.rvm/gems/ruby-2.1.1@sinatra/gems/linecache-0.46 for inspection. Results logged to /Users/kenmcfadden/.rvm/gems/ruby-2.1.1@sinatra/extensions/x86_64-darwin-12/2.1.0-static/linecache-0.46/gem_make.out
           
5:23:19 PM Error running main
           Failed to Install Gems. Following gems were not installed:
           linecache (0.46):  Error installing linecache:
           ERROR: Failed to build gem native extension.      /Users/kenmcfadden/.rvm/rubies/ruby-2.1.1/bin/ruby -r ./siteconf20140820-15370-h5enht.rb extconf.rb Can't handle 1.9.x yet *** extconf.rb failed *** Could not create Makefile due to some reason, probably lack of necessary libraries and/or headers.  Check the mkmf.log file for more details.  You may need configuration options.  Provided configuration options:     --with-opt-dir     --without-opt-dir     --with-opt-include     --without-opt-include=${opt-dir}/include     --with-opt-lib     --without-opt-lib=${opt-dir}/lib     --with-make-prog     --without-make-prog     --srcdir=.     --curdir     --ruby=/Users/kenmcfadden/.rvm/rubies/ruby-2.1.1/bin/ruby  extconf failed, exit code 1  Gem files will remain installed in /Users/kenmcfadden/.rvm/gems/ruby-2.1.1@sinatra/gems/linecache-0.46 for inspection. Results logged to /Users/kenmcfadden/.rvm/gems/ruby-2.1.1@sinatra/extensions/x86_64-darwin-12/2.1.0-static/linecache-0.46/gem_make.out
           /Applications/RubyMine.app/rb/gems/ruby-debug-base-0.10.5.rc1.gem:  Error installing ruby-debug-base-0.10.5.rc1.gem:
           ERROR: Failed to build gem native extension.      /Users/kenmcfadden/.rvm/rubies/ruby-2.1.1/bin/ruby -r ./siteconf20140820-15382-lfc6vw.rb extconf.rb Can't handle 1.9.x yet *** extconf.rb failed *** Could not create Makefile due to some reason, probably lack of necessary libraries and/or headers.  Check the mkmf.log file for more details.  You may need configuration options.  Provided configuration options:     --with-opt-dir     --without-opt-dir     --with-opt-include     --without-opt-include=${opt-dir}/include     --with-opt-lib     --without-opt-lib=${opt-dir}/lib     --with-make-prog     --without-make-prog     --srcdir=.     --curdir     --ruby=/Users/kenmcfadden/.rvm/rubies/ruby-2.1.1/bin/ruby  extconf failed, exit code 1  Gem files will remain installed in /Users/kenmcfadden/.rvm/gems/ruby-2.1.1@sinatra/gems/linecache-0.46 for inspection. Results logged to /Users/kenmcfadden/.rvm/gems/ruby-2.1.1@sinatra/extensions/x86_64-darwin-12/2.1.0-static/linecache-0.46/gem_make.out

9 comments
Comment actions Permalink

You do not need to install linecache and ruby-debug-base to debugging under 2.X.
Why do you tried to instll them?

Oleg.

0
Comment actions Permalink

Ruby mine does it on its own...with I click the debug button...rubymine tries to load them.


0
Comment actions Permalink

Could you please double-check that langage level of the sdk is 2.1.

Regards, Oleg.

0
Comment actions Permalink

I set it under the rubymine preferences.  When i click debug, it says ruby mine debug base is not installed
.....do u want to install it..

then it blows up with the linecach error.

I don't know where its getting thte 1.9.

I have been able to debug ruby programs before.  This one is different in that it us using Sinatra...its more of a web app...is that the issue maybe...
:16:40 AM Error running main
           Failed to Install Gems. Following gems were not installed:
           /Applications/RubyMine.app/rb/gems/ruby-debug-base-0.10.5.rc1.gem:  Error installing ruby-debug-base-0.10.5.rc1.gem:
           ERROR: Failed to build gem native extension.      /Users/kenmcfadden/.rvm/rubies/ruby-2.1.1/bin/ruby -r ./siteconf20140904-30270-h67bh.rb extconf.rb Can't handle 1.9.x yet *** extconf.rb failed *** Could not create Makefile due to some reason, probably lack of necessary libraries and/or headers.  Check the mkmf.log file for more details.  You may need configuration options.  Provided configuration options:     --with-opt-dir     --without-opt-dir     --with-opt-include     --without-opt-include=${opt-dir}/include     --with-opt-lib     --without-opt-lib=${opt-dir}/lib     --with-make-prog     --without-make-prog     --srcdir=.     --curdir     --ruby=/Users/kenmcfadden/.rvm/rubies/ruby-2.1.1/bin/ruby  extconf failed, exit code 1  Gem files will remain installed in /Users/kenmcfadden/.rvm/gems/ruby-2.1.1@sinatra/gems/linecache-0.46 for inspection. Results logged to /Users/kenmcfadden/.rvm/gems/ruby-2.1.1@sinatra/extensions/x86_64-darwin-12/2.1.0-static/linecache-0.46/gem_make.out
           linecache (0.46):  Error installing linecache:
           ERROR: Failed to build gem native extension.      /Users/kenmcfadden/.rvm/rubies/ruby-2.1.1/bin/ruby -r ./siteconf20140904-30258-nqrspf.rb extconf.rb Can't handle 1.9.x yet *** extconf.rb failed *** Could not create Makefile due to some reason, probably lack of necessary libraries and/or headers.  Check the mkmf.log file for more details.  You may need configuration options.  Provided configuration options:     --with-opt-dir     --without-opt-dir     --with-opt-include     --without-opt-include=${opt-dir}/include     --with-opt-lib     --without-opt-lib=${opt-dir}/lib     --with-make-prog     --without-make-prog     --srcdir=.     --curdir     --ruby=/Users/kenmcfadden/.rvm/rubies/ruby-2.1.1/bin/ruby  extconf failed, exit code 1  Gem files will remain installed in /Users/kenmcfadden/.rvm/gems/ruby-2.1.1@sinatra/gems/linecache-0.46 for inspection. Results logged to /Users/kenmcfadden/.rvm/gems/ruby-2.1.1@sinatra/extensions/x86_64-darwin-12/2.1.0-static/linecache-0.46/gem_make.out

0
Comment actions Permalink

Could you please check "language level" for the sdk you are using (Settings|Ruby Sdk and Gems)  It should be 2.1.

Regards, Oleg.

0
Comment actions Permalink

Yes...language level is 2.1.1

U said earlier i don't need toi nstall debug gem. When I open my project i get the message below...rubymine wants to install it....otherwise is cannot launch the debugger...what did u mean?



The gem debase required by the debugger is not currently installed. Would you like to install it?

Error running main:
Cannot start debugger. Gem 'ruby-debug-ide' isn't      installed or its executable script 'rdebug-ide' doesn't exist.




         (show balloon)
8:17:12 AM RubyMine Gem Manager
           RubyMine has detected that
           some of the gems required for 'sinatra_rubymine'
           are not installed
           Install missing gems
           (show balloon)
8:17:51 AM Error running main: Cannot start debugger. Gem 'ruby-debug-ide' isn't installed or its executable script 'rdebug-ide' doesn't exist.

0
Comment actions Permalink

You do not need to add gems to your Gemfile or install these gems manually, but you need to allow RubyMine to intall them for you.

Regards, Oleg.

0
Comment actions Permalink

Yes..and THAT is when it fails...it fails when it tries to load...


0
Comment actions Permalink

Could you please try to install ruby-debug-ide and debase manually (do not forget to use --pre flag to get the latest beta/rc)
Let me know whether this works for you or not, and if it does try to run debugger again.

Regards, Oleg.

0

Please sign in to leave a comment.