byebugを入れて上記問題は解決しました。その後再度bundle installしたところ次はmysql2でエラーになりました。Gemfile.lockで0.3.11を指定しているのですがこれを消すようにすればいいのでしょうか?それともbundle updateを使うようにした方がいいのでしょうか?
[devel@CS-c014 3.3.x_version_up]$ rbenv exec bundle install
Fetching gem metadata from https://rubygems.org/..........
:
:
Installing mysql2 0.3.11 with native extensions
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
/home/devel/.rbenv/versions/2.2.3/bin/ruby -r ./siteconf20151009-7748-hhyv3.rb extconf.rb
checking for rb_thread_blocking_region()... no
checking for rb_wait_for_single_fd()... yes
checking for mysql.h... yes
checking for errmsg.h... yes
checking for mysqld_error.h... yes
creating Makefile
make "DESTDIR=" clean
make "DESTDIR="
compiling result.c
./client.h:11 から include されたファイル中,
./mysql2_ext.h:39 から,
result.c:1 から:
/home/devel/.rbenv/versions/2.2.3/include/ruby-2.2.0/ruby/backward/rubysig.h:14:2: 警告: #warning rubysig.h is obsolete
In file included from ./mysql2_ext.h:39,
from result.c:1:
./client.h:13: error: redefinition of typedef ‘rb_unblock_function_t’
/home/devel/.rbenv/versions/2.2.3/include/ruby-2.2.0/ruby/intern.h:897: note: previous declaration of ‘rb_unblock_function_t’ was here
./client.h:14: error: redefinition of typedef ‘rb_blocking_function_t’
/home/devel/.rbenv/versions/2.2.3/include/ruby-2.2.0/ruby/intern.h:898: note: previous declaration of ‘rb_blocking_function_t’ was here
./client.h: In function ‘rb_thread_blocking_region’:
./client.h:23: error: ‘TRAP_BEG’ undeclared (first use in this function)
./client.h:23: error: (Each undeclared identifier is reported only once
./client.h:23: error: for each function it appears in.)
./client.h:25: error: ‘TRAP_END’ undeclared (first use in this function)
make: *** [result.o] エラー 1
make failed, exit code 2
Gem files will remain installed in /home/devel/.rbenv/versions/2.2.3/gemsets/3.3.x_version_up/gems/mysql2-0.3.11 for inspection.
Results logged to /home/devel/.rbenv/versions/2.2.3/gemsets/3.3.x_version_up/extensions/x86_64-linux/2.2.0-static/mysql2-0.3.11/gem_make.out
An error occurred while installing mysql2 (0.3.11), and Bundler cannot continue.
Make sure that `gem install mysql2 -v '0.3.11'` succeeds before bundling.