linecache19
- URL
- http://rubyforge.org/projects/ruby-debug19
- Author(s)
- R. Bernstein and Mark Moseley
- Summary
- Linecache is a module for reading and caching lines. This may be useful for example in a debugger where the same lines are shown many times.
Comments
linecache19
(Ubuntu 11.10)
is Working
for andriy ko (GNU/Linux, 13 days ago)
Situation:
$ rvm list
rvm rubies
=> ruby-1.8.7-p357 [ i686 ]
ruby-1.9.2-p290 [ i686 ]$ rvm use 1.9.2
Using /home/somedir/.rvm/gems/ruby-1.9.2-p290
$ sudo bundle install
ERROR: Error installing ruby-debug19:
linecache19 requires Ruby version >= 1.9.2.Solution:
step1. $ rvmsudo gem install ruby-debug19and then (i think it works without step1, main thing is - use rvmsudo instead of sudo )
step2. $ rvmsudo gem install bundler
step3. $ rvmsudo bundle install
step4. $ rails server
linecache19
is Working
for Ray (GNU/Linux, 26 days ago)
The install of linecache19 with rvm and ruby 1.9.2 worked only after following the advice Pavithra posted (also found on the rvm site).
Install open-ssl package first, then install ruby, then install linecache19 using the rvm-source directory.
linecache19
(0.5.12)
is Working
for Dave Myron (GNU/Linux, about 1 month ago)
Confirming works using Tyler Rick's method for system-wide RVM on CentOS.
linecache19
is Working
for Vincent (GNU/Linux, 2 months ago)
Works as per Justin's instructions.
Ubuntu 11.10
ruby 1.9.3
rvm 1.10.0
linecache19
is Working
for Justin (GNU/Linux, 2 months ago)
This is what worked on Ubuntu:
I had the same problems and tried so many options before I came across this:
http://beginrescueend.com/packages/openssl/$ rvm pkg install openssl
$ rvm remove 1.9.2m
$ rvm install 1.9.2 --with-openssl-dir=$rvm_path/usrThis resolves the issue with linecache19 rubydebug-19 and openssl:
*** extconf.rb failed ***
custom_require.rb:36:in `require': no such file to load -- openssl (LoadError)then you can do
gem install ruby-debug19
linecache19
(0.5.12)
is Working
for Pavithra (GNU/Linux, 3 months ago)
RVM has been installed already in my system. Successfully installed Linecache 0.5.12 by following these commands:
$ echo $rvm_path/src/$(rvm tools strings)
/usr/local/rvm/src/ruby-1.9.2-p180$ rvm @global gem install ruby-debug19 -- --with-ruby-include=$rvm_path/src/$(rvm tools strings)
linecache19
(linecache19-0.5.12 )
is Working
for Vivek (Mac OSX, 4 months ago)
At First i tried using gem install linecache
Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension.
=============== Then I tried this and it worked for me
sudo gem install ruby-debug19 -- --with-ruby-include=/src_file_path_with_vm_core.h
linecache19
(0.5.12)
is Working
for Tyler Rick (GNU/Linux, 6 months ago)
If you have rvm installed system-wide, you can use this:
$ echo $rvm_path/src/$(rvm tools strings)
/usr/local/rvm/src/ruby-1.9.2-p180$ rvm @global gem install ruby-debug19 -- --with-ruby-include=$rvm_path/src/$(rvm tools strings)
linecache19
is Working
for Ruben Achimon (GNU/Linux, 6 months ago)
Thanks! Joe:
gem install ruby-debug19 -- --with-ruby-include=$rvm_path/src/ruby-1.9.2-p180/
linecache19
(0.5.12)
is Failing
for Jan (Mac OSX, 6 months ago)
Not working on 1.9.3-preview1.
Compiles with gem install linecache19 -- --with-ruby-include=$rvm_path/src/ruby-1.9.3-preview1
but fails to load via require.
linecache19
(1.9.2-p180)
is Working
for Joe (GNU/Linux, 6 months ago)
Updated fix for RVM + Ruby 1.9.2-p180:
gem install ruby-debug19 -- --with-ruby-include=$rvm_path/src/ruby-1.9.2-p180/
linecache19
(0.5.11)
is Working
for boddhisattva (GNU/Linux, 11 months ago)
gem install ruby-debug19 -- --with-ruby-include=$rvm_path/src/ruby-1.9.2-p180/.
this command did the trick for me. I was facing an issue of ERROR: While executing gem ... (Zlib::GzipFile::Error)
not in gzip format
to deal with this I manually downloaded the gems with the relevant dependencies with the above command. It worked. Thanks @linecache19 for your solution. I had to only change the patch version of Ruby to what I was using.
linecache19
(0.5.11)
is Working
for Mike (Mac OSX, about 1 year ago)
1.9.2-p136 + RVM.
Worked when installing via ruby-debug19 which installs linecache19 as a dependency.
gem install ruby-debug19 -- --with-ruby-include=$rvm_path/src/ruby-1.9.2-p136/
linecache19
(0.5.11)
is Failing
for Chris S (GNU/Linux, about 1 year ago)
Would not install via capistrano bundle:install with rvm on Ubuntu 10.04 server. Required root privileges to install, if it needs to download the ruby source, it should try to download it to someplace you actually have permission to, /tmp perhaps.
linecache19
(0.5.11)
is Working
for Andrés Mejía (Mac OSX, about 1 year ago)
I'm using RVM and had to install it like this:
gem install ruby-debug19 -- --with-ruby-include=$rvm_path/src/ruby-1.9.2-head/
linecache19
is Failing
for Khaled alHabache (GNU/Linux, about 1 year ago)
Doesn't work with Ubuntu 10.10:
Getting:checking for vm_core.h... no
*** 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.
linecache19
(0.5.11)
is Failing
for Darren (GNU/Linux, about 1 year ago)
On Ubuntu, the native compilation step downloads the ruby 1.9.2 source and tries to unpack it into a directory that your current user *probably* does not have write access to.
The workaround, until this bug can be fixed, is to install the linecache19 gem as root. This will cause all sorts of permission problems down the line, so take care to watch what gets created/written to when doing this.
linecache19
is Working
for Kevin (GNU/Linux, about 1 year ago)
gem install ruby-debug19 -- --with-ruby-include=/src_file_path_with_vm_core.h
linecache19
(linecache19 (0.5.11))
is Working
for Benjamin Athlan (Mac OSX, about 1 year ago)
USED with gem "ruby-debug19"
linecache19
(0.5.11)
is Working
for Richard (Windows, about 1 year ago)
Seems to install fine on Windows 7 under both Ruby1.9.1p378 & Ruby1.9.1p430.
linecache19
(0.5.11)
is Working
for Rajinder Yadav (GNU/Linux, about 1 year ago)
Linux 2.6.32-24-generic #39-Ubuntu SMP Wed Jul 28 05:14:15 UTC 2010 x86_64 GNU/Linux
i had to build the openssl library which didn't get built by the ruby build process
linecache19
(ruby-1.9.2-rc2)
is Working
for Raels Koder (Mac OSX, about 1 year ago)
If using rvm, try building with this:
gem install ruby-debug19 -- --with-ruby-include=$rvm_path/src/ruby-1.9.2-rc2/
linecache19
(1.9.2-rc2)
is Failing
for Sean McCleary (Mac OSX, about 1 year ago)
have_header: checking for vm_core.h... -------------------- no
"gcc -o conftest -I/Users/sean/.rvm/rubies/ruby-1.9.2-rc2/include/ruby-1.9.1/x86_64-darwin10.4.0 -I/Users/sean/.rvm/rubies/ruby-1.9.2-rc2/include/ruby-1.9.1/ruby/backward -I/Users/sean/.rvm/rubies/ruby-1.9.2-rc2/include/ruby-1.9.1 -I. -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -O3 -ggdb -Wextra -Wno-unused-parameter -Wno-parentheses -Wpointer-arith -Wwrite-strings -Wno-missing-field-initializers -Wshorten-64-to-32 -Wno-long-long -pipe conftest.c -L. -L/Users/sean/.rvm/rubies/ruby-1.9.2-rc2/lib -L. -lruby-static -lpthread -ldl -lobjc "
checked program was:
/* begin */
1: #include "ruby.h"
2:
3: int main() {return 0;}
/* end */"gcc -E -I/Users/sean/.rvm/rubies/ruby-1.9.2-rc2/include/ruby-1.9.1/x86_64-darwin10.4.0 -I/Users/sean/.rvm/rubies/ruby-1.9.2-rc2/include/ruby-1.9.1/ruby/backward -I/Users/sean/.rvm/rubies/ruby-1.9.2-rc2/include/ruby-1.9.1 -I. -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -O3 -ggdb -Wextra -Wno-unused-parameter -Wno-parentheses -Wpointer-arith -Wwrite-strings -Wno-missing-field-initializers -Wshorten-64-to-32 -Wno-long-long -pipe conftest.c -o conftest.i"
conftest.c:3:21: error: vm_core.h: No such file or directory
checked program was:
/* begin */
1: #include "ruby.h"
2:
3: #include <vm_core.h>
/* end */--------------------
linecache19
(0.5.11)
is Working
for Antono Vasiljev (GNU/Linux, about 1 year ago)
linecache19
(1.9.2)
is Failing
for toddq (GNU/Linux, about 1 year ago)
linecache19
(0.5.11)
is Failing
for Juan Felipe Alvarez Saldarriaga (Windows, over 2 years ago)
Doesn't work on Windows 7, I already install the devkit.
C:\Windows\system32>gem install linecache19
Building native extensions. This could take a while...
ERROR: Error installing linecache19:
ERROR: Failed to build gem native extension.C:/Ruby19/bin/ruby.exe extconf.rb
checking for vm_core.h... no
checking for vm_core.h... yes
checking for version.h... yes
checking for RUBY_VERSION_MAJOR in version.h... yes
creating Makefilemake
gcc -I. -IC:/Ruby19/include/ruby-1.9.1/i386-mingw32 -I/C/Ruby19/include/ruby-1.9
.1/ruby/backward -I/C/Ruby19/include/ruby-1.9.1 -I. -DHAVE_VM_CORE_H -DHAVE_VERS
ION_H -IC:/Ruby19/include/ruby-1.9.1/ruby-1.9.1-p378 -O2 -g -Wall -Wno-parenthes
es -o trace_nums.o -c trace_nums.cThis application has requested the Runtime to terminate it in an unusual way.
Please contact the application's support team for more information.
make: *** [trace_nums.o] Error 255Gem files will remain installed in C:/Ruby19/lib/ruby/gems/1.9.1/gems/linecache1
9-0.5.11 for inspection.
Results logged to C:/Ruby19/lib/ruby/gems/1.9.1/gems/linecache19-0.5.11/ext/trac
e_nums/gem_make.out
linecache19
(0.5.11)
is Working
for Alexander S. Manenko (GNU/Linux, over 2 years ago)
Installs without problems on Arch Linux.
ruby -v =>
ruby 1.9.1p378 (2010-01-10 revision 26273) [i686-linux]
linecache19
(0.5.11)
is Failing
for Jones Lee (GNU/Linux, over 2 years ago)
Not work with ruby 1.9.2dev (2009-10-21 trunk 25426) [i686-linux]. Problem due to wrong include path specified within the gem compile flag.
have_header: checking for vm_core.h... -------------------- no

linecache19 is Failing
for Dow (GNU/Linux, 2 days ago)