If you are using pry then you may looks for better pry debugger plugins . I faced the above issue when I used to install pry-stack_explorer. The complete error you can find here :
https://www.ruby-forum.com/topic/4832612#new
In my case I am using pry-nav and pry-stack_explorer combined to debug the code. Please follow the below steps to install the above plugins.
1) install jruby-1.7.8, Export the variable JRUBY_HOME and PATH
NOTE : explicitly export this variable as we are going to use it once.
export JRUBY_OPTS=-Xcext.enabled=true
2) install ruby-1.9
NOTE : Here we need ruby-1.9 only for libraries, So you can set the --prefix at the time of
configuration and install in you specified directory.
3) create directory structure in JRUBY_HOME/lib/native/include
4) create soft link in JRUBY_HOME/lib/native/include
ln -s RUBY_HOME/include/ruby-1.9.1/ruby ruby
5) jruby -S gem install pry-nav
6) jruby -S gem install pry-stack_explorer
that's it .
Please suggests if any body have any better tricks or idea.
Thanks
-Khirod
https://www.ruby-forum.com/topic/4832612#new
In my case I am using pry-nav and pry-stack_explorer combined to debug the code. Please follow the below steps to install the above plugins.
1) install jruby-1.7.8, Export the variable JRUBY_HOME and PATH
NOTE : explicitly export this variable as we are going to use it once.
export JRUBY_OPTS=-Xcext.enabled=true
2) install ruby-1.9
NOTE : Here we need ruby-1.9 only for libraries, So you can set the --prefix at the time of
configuration and install in you specified directory.
3) create directory structure in JRUBY_HOME/lib/native/include
4) create soft link in JRUBY_HOME/lib/native/include
ln -s RUBY_HOME/include/ruby-1.9.1/ruby ruby
5) jruby -S gem install pry-nav
6) jruby -S gem install pry-stack_explorer
that's it .
Please suggests if any body have any better tricks or idea.
Thanks
-Khirod
No comments:
Post a Comment