ruby-1.9.3

Rails 3.1 and Ruby 1.9.3p125: ruby-debug19 still crashes with “Symbol not found: _ruby_threadptr_data_type” [duplicate]

。_饼干妹妹 提交于 2019-11-27 05:07:51
Possible Duplicate: ruby-debug with Ruby 1.9.3? I had heard rumors that ruby 1.9.3p125 has a solution for the ruby-debug19 problem, so per instructions on the RVM site, I reinstalled 1.9.3: $ rvm reinstall 1.9.3 --patch debug --force-autoconf $ ruby -v ruby 1.9.3p125 (2012-02-16 revision 34643) [x86_64-darwin11.2.0] Then: gem install ruby-debug19 Added this entry to my Gemfile: gem 'ruby-debug19' Then: $ rails server -u => Booting WEBrick => Rails 3.1.3 application starting in development on http://0.0.0.0:3000 => Call with -d to detach => Ctrl-C to shutdown server You need to install ruby

ruby_threadptr_data_type error

∥☆過路亽.° 提交于 2019-11-27 04:40:59
问题 I'm starting up a new rails app with the latest version of rails (3.1.3). Rails crashes when I try to start up the server. First I fixed this bug, and now I'm getting this one ruby-debug-base19-0.11.25/lib/ruby_debug.so: undefined symbol: ruby_threadptr_data_type There's a discussion about this going on here, but I can't make enough sense of it to get things to work. UPDATE I updated the version of ruby-debug gem 'ruby-debug-base19x', '~> 0.11.30.pre4' and have now moved on to this error

Error on terminal start

别说谁变了你拦得住时间么 提交于 2019-11-27 03:19:10
问题 -bash: /etc/profile.d/rvm.sh: No such file or directory -bash: /Users/janekambani/.bash_profile: line 1: conditional binary operator expected -bash: /Users/janekambani/.bash_profile: line 1: syntax error near `"$HOME/.rvm/scripts/rvm"' -bash: /Users/janekambani/.bash_profile: line 1: `[[ -s "$HOME/.rvm/scripts/rvm"]] && . "$HOME/.rvm/scripts/rvm" ' I tried this: sudo rm -rf /etc/rvmrc /etc/profile.d/rvm.sh /usr/local/rvm /usr/local/bin/rvm $HOME/.rvm $HOME/.rvmrc but i still kept getting the

Confusion with Atomic Grouping - how it differs from the Grouping in regular expression of Ruby?

别来无恙 提交于 2019-11-27 03:12:34
I just gone through the docs for Atomic Grouping and rubyinfo and some quick questions came into my mind as follows: Why the name came as "Atomic grouping" ? What "atomicity" it has that general grouping doesn't have. How atomic grouping differs from the general grouping ? Why atomic groups are called non-capturing groups? I tried the below code to understand but had confusion about the output and how differently they work on the same string as well? irb(main):001:0> /a(?>bc|b)c/ =~ "abbcdabcc" => 5 irb(main):004:0> $~ => #<MatchData "abcc"> irb(main):005:0> /a(bc|b)c/ =~ "abcdabcc" => 0 irb

Ruby on Rails “invalid byte sequence in UTF-8” due to bot

橙三吉。 提交于 2019-11-27 00:16:36
问题 I have some errors triggered by a chinese bot: http://www.easou.com/search/spider.html when it scrolls my websites. Versions of my applications are all with Ruby 1.9.3 and Rails 3.2.X Here a stacktrace : An ArgumentError occurred in listings#show: invalid byte sequence in UTF-8 rack (1.4.5) lib/rack/utils.rb:104:in `normalize_params' ------------------------------- Request: ------------------------------- * URL : http://www.my-website.com * IP address: X.X.X.X * Parameters: {"action"=>"show",

ruby-debug with Ruby 1.9.3?

谁说胖子不能爱 提交于 2019-11-26 21:50:28
I just updated to Ruby 1.9.3p0 and Rails 3.1.1. Now when I try to launch the server, it complains that I should install ruby-debug , even though it's already installed. % rails server --environment=development --debug => Booting WEBrick => Rails 3.1.0 application starting in development on http://0.0.0.0:3000 => Call with -d to detach => Ctrl-C to shutdown server You need to install ruby-debug to run the server in debugging mode. With gems, use 'gem install ruby-debug' Exiting In my Gemfile I have # see: http://stackoverflow.com/questions/1083451/debugging-in-ruby-1-9 gem 'ruby-debug-base19',

Confusion with Atomic Grouping - how it differs from the Grouping in regular expression of Ruby?

依然范特西╮ 提交于 2019-11-26 10:25:38
问题 I just gone through the docs for Atomic Grouping and rubyinfo and some quick questions came into my mind as follows: Why the name came as \"Atomic grouping\" ? What \"atomicity\" it has that general grouping doesn\'t have. How atomic grouping differs from the general grouping ? Why atomic groups are called non-capturing groups? I tried the below code to understand but had confusion about the output and how differently they work on the same string as well? irb(main):001:0> /a(?>bc|b)c/ =~ \

ruby-debug with Ruby 1.9.3?

一曲冷凌霜 提交于 2019-11-26 08:03:52
问题 I just updated to Ruby 1.9.3p0 and Rails 3.1.1. Now when I try to launch the server, it complains that I should install ruby-debug , even though it\'s already installed. % rails server --environment=development --debug => Booting WEBrick => Rails 3.1.0 application starting in development on http://0.0.0.0:3000 => Call with -d to detach => Ctrl-C to shutdown server You need to install ruby-debug to run the server in debugging mode. With gems, use \'gem install ruby-debug\' Exiting In my