Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

till/cli LoadError #8

Open
csabahenk opened this issue Nov 25, 2010 · 0 comments
Open

till/cli LoadError #8

csabahenk opened this issue Nov 25, 2010 · 0 comments

Comments

@csabahenk
Copy link

Installed till 2.1 gem:

# gem install till
Successfully installed tilt-1.1
Successfully installed facets-2.9.0
Successfully installed till-2.1
3 gems installed

Then ran till, got:

$ till
/usr/lib/ruby/gems/1.9.1/gems/till-2.1/bin/till:3:in `load': no such file to load -- till/cli (LoadError)
        from /usr/lib/ruby/gems/1.9.1/gems/till-2.1/bin/till:3:in `<top (required)>'
        from /usr/bin/till:19:in `load'
        from /usr/bin/till:19:in `<main>'

Doing a bit research:

$ cat /usr/lib/ruby/gems/1.9.1/gems/till-2.1/bin/till
#!/usr/bin/env ruby

load 'till/cli'

What happens behind the scenes:

$ strace -eopen till 2>&1 1>/dev/null | grep cli
open("/usr/lib/ruby/gems/1.9.1/gems/tilt-1.1/bin/till/cli", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)
open("/usr/lib/ruby/gems/1.9.1/gems/tilt-1.1/lib/till/cli", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)
open("/usr/lib/ruby/gems/1.9.1/gems/facets-2.9.0/bin/till/cli", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)
open("/usr/lib/ruby/gems/1.9.1/gems/facets-2.9.0/lib/core/till/cli", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)
open("/usr/lib/ruby/gems/1.9.1/gems/facets-2.9.0/lib/more/till/cli", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)
open("/usr/lib/ruby/gems/1.9.1/gems/facets-2.9.0/lib/tour/till/cli", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)
open("/usr/lib/ruby/gems/1.9.1/gems/till-2.1/bin/till/cli", O_RDONLY|O_LARGEFILE) = -1 ENOTDIR (Not a directory)
open("/usr/lib/ruby/gems/1.9.1/gems/till-2.1/lib/till/cli", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)
open("/usr/lib/ruby/site_ruby/1.9.1/till/cli", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)
open("/usr/lib/ruby/site_ruby/1.9.1/i686-linux/till/cli", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)
open("/usr/lib/ruby/site_ruby/till/cli", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)
open("/usr/lib/ruby/vendor_ruby/1.9.1/till/cli", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)
open("/usr/lib/ruby/vendor_ruby/1.9.1/i686-linux/till/cli", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)
open("/usr/lib/ruby/vendor_ruby/till/cli", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)
open("/usr/lib/ruby/1.9.1/till/cli", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)
open("/usr/lib/ruby/1.9.1/i686-linux/till/cli", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)
open("till/cli", O_RDONLY|O_LARGEFILE)  = -1 ENOENT (No such file or directory)
/usr/lib/ruby/gems/1.9.1/gems/till-2.1/bin/till:3:in `load': no such file to load -- till/cli (LoadError)

So apparently the problem is that load takes its argument verbatim, while you'd need an extra .rb extension a'la require. Note I got the same error with ruby 1.8.7 + rubygems 1.8.7, too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant