sharklinux / shark

We're building a better performance management system
http://www.sharkly.io
GNU Lesser General Public License v2.1
79 stars 13 forks source link

Loading mime.core fails when invoking flame graph sample #5

Closed pcn closed 9 years ago

pcn commented 9 years ago

Built with make BPF_DISABLE=1:

spacey@spacey-vm:~/dvcs/pcn/shark-without-bpf$ ./shark samples/sharkcloud/flamegraph_in_cloud.lua 
./deps/mime.lua:13: module 'mime.core' not found:
    no field package.preload['mime.core']
    no file './mime/core.lua'
    no file '/usr/local/share/luajit-2.0.3/mime/core.lua'
    no file '/usr/local/share/lua/5.1/mime/core.lua'
    no file '/usr/local/share/lua/5.1/mime/core/init.lua'
    no file './deps/mime/core.lua'
    no file './mime/core.so'
    no file '/usr/local/lib/lua/5.1/mime/core.so'
    no file '/usr/local/lib/lua/5.1/loadall.so'
    no file './deps/mime/core.so'
    no file './mime.so'
    no file '/usr/local/lib/lua/5.1/mime.so'
    no file '/usr/local/lib/lua/5.1/loadall.so'
    no file './deps/mime.so'
stack traceback:
    [C]: in function 'require'
    ./deps/mime.lua:13: in main chunk
    [C]: in function 'require'
    ./deps/socket/http.lua:14: in main chunk
    [C]: in function 'require'
    ./deps/sharkcloud.lua:43: in main chunk
    [C]: in function 'require'
    samples/sharkcloud/flamegraph_in_cloud.lua:2: in main chunk
pcn commented 9 years ago

This is using 15.04 and the changes to the gcc paths as I described in #2

sharklinux commented 9 years ago

I forgot add that file, fixed it. please try again.

btw, please use "sudo ./shark samples/sharkcloud/flamegraph_in_cloud.lua"

pcn commented 9 years ago

That is what I've been doing - it's just that as you see, the above failed to parse before needing privs.

pcn commented 9 years ago

Works for me with your most recent commit.