Skip to content

cannot load such file: lib/whatweb #283

@blshkv

Description

@blshkv

I'm trying to push the latest version 0.5 to Pentoo and facing this problem.
I have installed the tool using the standard "make install" function and got the following structure:

/usr/bin/whatweb
/usr/share/whatweb/*
```
However, it fails to start with the following message:
```
/usr/lib64/ruby/site_ruby/2.4.0/rubygems/core_ext/kernel_require.rb:54:in `require': cannot load such file -- lib/whatweb (LoadError)
        from /usr/lib64/ruby/site_ruby/2.4.0/rubygems/core_ext/kernel_require.rb:54:in `require'
        from /usr/bin/whatweb:37:in `<main>'
```


FYI: the previous version used to have the following loader:
```
## set up load paths - must be before loading lib/ files
# add the directory of the file currently being executed to the load path
$LOAD_PATH.unshift(File.expand_path(File.dirname(__FILE__))) unless
    $:.include?(File.dirname(__FILE__)) || $LOAD_PATH.include?(File.expand_path(File.dirname(__FILE__)))
$LOAD_PATH << "/usr/share/whatweb/"
```

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions