{"action":"created","issue":{"url":"https://api.github.com/repos/martanne/vis/issues/230","repository_url":"https://api.github.com/repos/martanne/vis","labels_url":"https://api.github.com/repos/martanne/vis/issues/230/labels{/name}","comments_url":"https://api.github.com/repos/martanne/vis/issues/230/comments","events_url":"https://api.github.com/repos/martanne/vis/issues/230/events","html_url":"https://github.com/martanne/vis/issues/230","id":146680219,"number":230,"title":"Build fails on OS X","user":{"login":"madmod","id":1107818,"avatar_url":"https://avatars.githubusercontent.com/u/1107818?v=3","gravatar_id":"","url":"https://api.github.com/users/madmod","html_url":"https://github.com/madmod","followers_url":"https://api.github.com/users/madmod/followers","following_url":"https://api.github.com/users/madmod/following{/other_user}","gists_url":"https://api.github.com/users/madmod/gists{/gist_id}","starred_url":"https://api.github.com/users/madmod/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/madmod/subscriptions","organizations_url":"https://api.github.com/users/madmod/orgs","repos_url":"https://api.github.com/users/madmod/repos","events_url":"https://api.github.com/users/madmod/events{/privacy}","received_events_url":"https://api.github.com/users/madmod/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-04-07T16:42:13Z","updated_at":"2016-04-07T23:37:40Z","closed_at":null,"body":"Hi I am trying to build this on OS X El Capitan (10.11.4 (15E65)). After installing `libtermkey` with `brew install libtermkey` and running `./configure` and `make` I get the following output.\r\n\r\n```bash\r\ncc        -std=c99 -D_POSIX_C_SOURCE=200809L -D_XOPEN_SOURCE=700 -DNDEBUG -DVERSION=\\\"v0.2-87-g02c6df7\\\" -DCONFIG_LUA=1 -DCONFIG_SELINUX=0 -DCONFIG_ACL=0 array.c buffer.c libutf.c main.c map.c register.c ring-buffer.c sam.c text.c text-motions.c text-objects.c text-regex.c text-util.c ui-curses.c view.c vis.c vis-lua.c vis-modes.c vis-motions.c vis-operators.c vis-prompt.c vis-text-objects.c        -lc -o vis\r\nIn file included from main.c:8:\r\nIn file included from ./ui-curses.h:5:\r\n./ui.h:6:10: fatal error: 'termkey.h' file not found\r\n#include <termkey.h>\r\n         ^\r\n1 error generated.\r\nIn file included from register.c:4:\r\nIn file included from ./vis.h:12:\r\n./ui.h:6:10: fatal error: 'termkey.h' file not found\r\n#include <termkey.h>\r\n         ^\r\n1 error generated.\r\nIn file included from sam.c:15:\r\nIn file included from ./sam.h:4:\r\nIn file included from ./vis.h:12:\r\n./ui.h:6:10: fatal error: 'termkey.h' file not found\r\n#include <termkey.h>\r\n         ^\r\n1 error generated.\r\nIn file included from ui-curses.c:15:\r\nIn file included from ./ui-curses.h:5:\r\n./ui.h:6:10: fatal error: 'termkey.h' file not found\r\n#include <termkey.h>\r\n         ^\r\n1 error generated.\r\nIn file included from view.c:8:\r\n./vis-lua.h:5:10: fatal error: 'lua.h' file not found\r\n#include <lua.h>\r\n         ^\r\n1 error generated.\r\nvis.c:22:10: fatal error: 'termkey.h' file not found\r\n#include <termkey.h>\r\n         ^\r\n1 error generated.\r\nIn file included from vis-lua.c:10:\r\n./vis-lua.h:5:10: fatal error: 'lua.h' file not found\r\n#include <lua.h>\r\n         ^\r\n1 error generated.\r\nIn file included from vis-modes.c:2:\r\nIn file included from ./vis-core.h:5:\r\nIn file included from ./vis.h:12:\r\n./ui.h:6:10: fatal error: 'termkey.h' file not found\r\n#include <termkey.h>\r\n         ^\r\n1 error generated.\r\nIn file included from vis-motions.c:4:\r\nIn file included from ./vis-core.h:5:\r\nIn file included from ./vis.h:12:\r\n./ui.h:6:10: fatal error: 'termkey.h' file not found\r\n#include <termkey.h>\r\n         ^\r\n1 error generated.\r\nIn file included from vis-operators.c:3:\r\nIn file included from ./vis-core.h:5:\r\nIn file included from ./vis.h:12:\r\n./ui.h:6:10: fatal error: 'termkey.h' file not found\r\n#include <termkey.h>\r\n         ^\r\n1 error generated.\r\nIn file included from vis-prompt.c:2:\r\nIn file included from ./vis-core.h:5:\r\nIn file included from ./vis.h:12:\r\n./ui.h:6:10: fatal error: 'termkey.h' file not found\r\n#include <termkey.h>\r\n         ^\r\n1 error generated.\r\nIn file included from vis-text-objects.c:1:\r\nIn file included from ./vis-core.h:5:\r\nIn file included from ./vis.h:12:\r\n./ui.h:6:10: fatal error: 'termkey.h' file not found\r\n#include <termkey.h>\r\n         ^\r\n1 error generated.\r\nmake: *** [vis] Error 1\r\n```\r\n\r\nI also tried adding the command line arguments `-L/usr/local/Cellar/libtermkey/0.18/include/termkey.h`, `-L/usr/local/Cellar/libtermkey/0.18/include`, `-L/usr/local/Cellar/libtermkey/0.18/`. As you can tell I'm not really familiar with makefiles so any help here would be appreciated.\r\n"},"comment":{"url":"https://api.github.com/repos/martanne/vis/issues/comments/207137915","html_url":"https://github.com/martanne/vis/issues/230#issuecomment-207137915","issue_url":"https://api.github.com/repos/martanne/vis/issues/230","id":207137915,"user":{"login":"madmod","id":1107818,"avatar_url":"https://avatars.githubusercontent.com/u/1107818?v=3","gravatar_id":"","url":"https://api.github.com/users/madmod","html_url":"https://github.com/madmod","followers_url":"https://api.github.com/users/madmod/followers","following_url":"https://api.github.com/users/madmod/following{/other_user}","gists_url":"https://api.github.com/users/madmod/gists{/gist_id}","starred_url":"https://api.github.com/users/madmod/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/madmod/subscriptions","organizations_url":"https://api.github.com/users/madmod/orgs","repos_url":"https://api.github.com/users/madmod/repos","events_url":"https://api.github.com/users/madmod/events{/privacy}","received_events_url":"https://api.github.com/users/madmod/received_events","type":"User","site_admin":false},"created_at":"2016-04-07T23:37:40Z","updated_at":"2016-04-07T23:37:40Z","body":"@martanne Thanks that worked!\r\n\r\nFor reference in creating your homebrew formula I also had to do the following.\r\n\r\n```bash\r\nbrew install lua\r\nluarocks install lpeg\r\n./configure CFLAGS=-I/usr/local/Cellar/libtermkey/0.18/include LDFLAGS=-L/usr/local/Cellar/libtermkey/0.18\r\nmake\r\n```\r\n\r\nSet `VIS_PATH` in my `.zshrc`.\r\n"}}