mark-moseley / linecache

GNU General Public License v2.0
29 stars 20 forks source link

linecache19 not reading ruby_core_source correctly? #5

Open merbjedi opened 14 years ago

merbjedi commented 14 years ago

http://gist.github.com/309798

When I try to install the linecache19 gem, it can't find "ruby_core_source". I specifically installed the ruby_core_source gem "0.1.4".

Please note, I'm using rvm and ruby 1.9.2-head. Thanks

merbjedi commented 14 years ago

Ok, I figured it out. Sorry for spamming the issues board with my incompetence. I'll stop now.

bitcoiners commented 14 years ago

i have the same issue. How did you solve it?

merbjedi commented 14 years ago

rvm stores its src directory in ~/.rvm/src/[ruby_version]

You just need to use the linecache19 install instructions and point it to the correct src directory, which in this case is the rvm src path.

I used these instructions http://wiki.github.com/mark-moseley/ruby-debug/installation-command-line-version

here's the line that fixed it

gem install ruby-debug19 -- --with-ruby-include=/Users/jc/.rvm/src/ruby-1.8.7-p249

All in all, this whole process is a total pain in the ass. Wish it could be streamlined in some way.

salzig commented 13 years ago

just make sure you use ruby 1.9 right now. You're also getting this error while trying to install ruby-debug19 with Ruby 1.8.7.