{"action":"closed","issue":{"url":"https://api.github.com/repos/iovisor/bcc/issues/816","repository_url":"https://api.github.com/repos/iovisor/bcc","labels_url":"https://api.github.com/repos/iovisor/bcc/issues/816/labels{/name}","comments_url":"https://api.github.com/repos/iovisor/bcc/issues/816/comments","events_url":"https://api.github.com/repos/iovisor/bcc/issues/816/events","html_url":"https://github.com/iovisor/bcc/issues/816","id":191198596,"number":816,"title":"Unable to run hello world on ubuntu 14.04","user":{"login":"brycefisher","id":220106,"avatar_url":"https://avatars.githubusercontent.com/u/220106?v=3","gravatar_id":"","url":"https://api.github.com/users/brycefisher","html_url":"https://github.com/brycefisher","followers_url":"https://api.github.com/users/brycefisher/followers","following_url":"https://api.github.com/users/brycefisher/following{/other_user}","gists_url":"https://api.github.com/users/brycefisher/gists{/gist_id}","starred_url":"https://api.github.com/users/brycefisher/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brycefisher/subscriptions","organizations_url":"https://api.github.com/users/brycefisher/orgs","repos_url":"https://api.github.com/users/brycefisher/repos","events_url":"https://api.github.com/users/brycefisher/events{/privacy}","received_events_url":"https://api.github.com/users/brycefisher/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2016-11-23T06:42:22Z","updated_at":"2016-11-29T05:14:40Z","closed_at":"2016-11-29T05:14:40Z","body":"I've tried to follow the instructions for binary installation of bcc on ubuntu 14.04 from INSTALL.md. However, I'm seeing errors when running the hello world:\r\n\r\n```bash\r\n# python /usr/share/bcc/examples/tracing/task_switch.py\r\nTraceback (most recent call last):\r\n  File \"/usr/share/bcc/examples/tracing/task_switch.py\", line 5, in <module>\r\n    from bcc import BPF\r\n  File \"/usr/lib/python2.7/dist-packages/bcc/__init__.py\", line 28, in <module>\r\n    from .libbcc import lib, _CB_TYPE, bcc_symbol, _SYM_CB_TYPE\r\n  File \"/usr/lib/python2.7/dist-packages/bcc/libbcc.py\", line 116, in <module>\r\n    lib.bpf_attach_perf_event.restype = ct.c_int;\r\n  File \"/usr/lib/python2.7/ctypes/__init__.py\", line 378, in __getattr__\r\n    func = self.__getitem__(name)\r\n  File \"/usr/lib/python2.7/ctypes/__init__.py\", line 383, in __getitem__\r\n    func = self._FuncPtr((name_or_ordinal, self))\r\nAttributeError: /usr/lib/x86_64-linux-gnu/libbcc.so.0: undefined symbol: bpf_attach_perf_event\r\n```\r\n\r\nThis error looks to me as though the debug symbols in my system libc are not available, thus python ctypes is unable to do FFI into BPF.\r\n\r\nHere's my uname -a: `Linux [...] 4.5.1-040501-generic #201604121331 SMP Tue Apr 12 17:33:29 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux`\r\n\r\nI found these similar threads, but they didn't seem quite the same:\r\n\r\n * https://github.com/iovisor/bcc/issues/311 -- for fedora, whereas I'm on ubuntu\r\n * https://github.com/iovisor/bcc/issues/549 -- wrong system python version, whereas:\r\n\r\n```bash\r\n$ python --version\r\nPython 2.7.6\r\n```"}}
{"actor":{"display_login":"brycefisher"}}