vtparse icon indicating copy to clipboard operation
vtparse copied to clipboard

Adjust path in require statement to work with Ruby 1.9.2 and later

Open skissane opened this issue 9 years ago • 3 comments

In Ruby 1.9.2 and later, the current directory has been removed from the LOAD_PATH, due to security reasons. This causes an error when running make. The solution is to prefix the module name with ./ to force it to be loaded from the current directory.

skissane avatar Jan 20 '16 08:01 skissane

FWIW I just ran into this issue. I worked around it with

export RUBYLIB=.

(I don't know Ruby so this took some Googling to figure out, and then I encountered this issue.)

This is a nice piece of code, I linked it here :)

https://www.reddit.com/r/ProgrammingLanguages/comments/aazbwp/habermanvtparse_a_library_to_parse_terminal/

andychu avatar Dec 30 '18 20:12 andychu