{"action":"created","issue":{"url":"https://api.github.com/repos/Homebrew/homebrew-core/issues/117","repository_url":"https://api.github.com/repos/Homebrew/homebrew-core","labels_url":"https://api.github.com/repos/Homebrew/homebrew-core/issues/117/labels{/name}","comments_url":"https://api.github.com/repos/Homebrew/homebrew-core/issues/117/comments","events_url":"https://api.github.com/repos/Homebrew/homebrew-core/issues/117/events","html_url":"https://github.com/Homebrew/homebrew-core/issues/117","id":146540315,"number":117,"title":"weechat 1.4 --with-ruby did not build","user":{"login":"manavortex","id":965785,"avatar_url":"https://avatars.githubusercontent.com/u/965785?v=3","gravatar_id":"","url":"https://api.github.com/users/manavortex","html_url":"https://github.com/manavortex","followers_url":"https://api.github.com/users/manavortex/followers","following_url":"https://api.github.com/users/manavortex/following{/other_user}","gists_url":"https://api.github.com/users/manavortex/gists{/gist_id}","starred_url":"https://api.github.com/users/manavortex/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/manavortex/subscriptions","organizations_url":"https://api.github.com/users/manavortex/orgs","repos_url":"https://api.github.com/users/manavortex/repos","events_url":"https://api.github.com/users/manavortex/events{/privacy}","received_events_url":"https://api.github.com/users/manavortex/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Homebrew/homebrew-core/labels/user%20configuration","name":"user configuration","color":"0b02e1"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":20,"created_at":"2016-04-07T08:03:19Z","updated_at":"2016-04-11T07:57:37Z","closed_at":null,"body":"> - [x] Ran `brew update` and retried your prior step?\r\n> - [x] Ran `brew doctor`, fixed as many issues as possible and retried your prior step?\r\n> > Your system is ready to brew.\r\n\r\n### Bug reports:\r\n\r\nWeechat with Ruby fails to build: \r\n\r\n```\r\n$ brew reinstall weechat --with-ruby\r\n==> Reinstalling weechat with --with-aspell, --with-curl, --with-python, --with-perl, --with-ruby\r\n\r\nScanning dependencies of target ruby\r\n[ 48%] Building C object src/plugins/ruby/CMakeFiles/ruby.dir/weechat-ruby.o\r\n[ 50%] Building C object src/plugins/python/CMakeFiles/python.dir/weechat-python-api.o\r\n[ 50%] Building C object src/plugins/irc/CMakeFiles/irc.dir/irc-input.o\r\n/tmp/weechat20160407-18613-1k9c3l5/weechat-1.4/src/plugins/ruby/weechat-ruby.c:25:10: fatal error: **'ruby.h' file not found**\r\n**#include <ruby.h>**\r\n         ^\r\n1 error generated.\r\nmake[2]: *** [src/plugins/ruby/CMakeFiles/ruby.dir/weechat-ruby.o] Error 1\r\nmake[1]: *** [src/plugins/ruby/CMakeFiles/ruby.dir/all] Error 2\r\nmake[1]: *** Waiting for unfinished jobs....\r\n...\r\nmake: *** [all] Error 2\r\n```\r\n\r\n### dirty solution: \r\ncd /Library/Caches/Homebrew\r\ntar -zxvf weechat-1.4.tar.gz\r\nlocate ruby.h\r\nnano weechat-1.4/src/plugins/ruby/CMakeLists.txt\r\nadded path where ruby.h lived via include_directories($path) after if(RUBY_FOUND)\r\ntar -zcvf weechat-1.4.tar.gz weechat-1.4\r\ntry reinstalling, insert \"actual\" checksum with brew edit weechat\r\ntried again reinstalling, same game for the next error...\r\nrinse and repeat until compiles\r\n\r\n\r\n### brew gist-logs weechat\r\n#1: https://gist.github.com/anonymous/5caa7b6985d674e6b398e74567b2c69f\r\n#2: https://gist.github.com/anonymous/6f0c14238ec2a3a866312c4ba51ba9ad\r\n#3 https://gist.github.com/anonymous/fe427768d84d0c95facdfe33cb48b53a\r\n#4 \r\n\r\n### Attempted solutions (chronological order):\r\n\r\n- brew reinstall aspell && brew link aspell --force\r\n- trying to recompile aspell-0.60.6.1 from source, failed due to a bunch of errors like\r\n```\r\nerror: redeclaration of 'aerror_other' with a different type: 'const\r\n      acommon::ErrorInfo *const' vs 'const struct AspellErrorInfo *const'\r\n```\r\n- http://stackoverflow.com/a/19026248 (I've always wanted emacs anyway)\r\n- brew install ncurses && brew link ncurses --force\r\n\r\n- - brew reinstall weechat -v --with-ruby (new gist: https://gist.github.com/anonymous/6f0c14238ec2a3a866312c4ba51ba9ad (aspell_version_string still not found))\r\n- brew install gperftools (to get mallinf)\r\n- brew install gperftools (to get iconv_open as suggested in https://github.com/ropensci/git2r/issues/214)\r\n\r\n- cd ~/.rbenv\r\n- find -f -name \"ruby.h\" (./versions/2.2.3/include/ruby-2.2.0/ruby/ruby.h, ./versions/2.2.3/include/ruby-2.2.0/ruby.h)\r\n- export PATH=\"/Users/manavortex/.rbenv/versions/2.2.3/include/ruby-2.2.0/ruby:$PATH\"\r\n\r\n- brew reinstall weechat -v --with-ruby (gist: https://gist.github.com/anonymous/fe427768d84d0c95facdfe33cb48b53a)\r\n- export PATH=\"/Users/manavortex/.rbenv/versions/2.2.3/include/ruby-2.2.0:$PATH\"\r\n- brew reinstall weechat -v --with-ruby (gist: https://gist.github.com/anonymous/5615dc850c8f96d0ecf58c9166f78690)\r\n\r\n\r\n### what would have worked (dirty): \r\n\r\nWhen manually compiling weechat, I've symlinked ruby.h and all its dependencies into the folder of the file that wouldn't find the dependency, and then changed include <ruby.h> to include \"ruby.h\". Unfortunately, as the temp folder gets deleted immediately, I have no idea how to get this done... yet. I might dig into this further, not sure yet.\r\n\r\n### Formula Requests:\r\n\r\nMy OCD would appreciate a fix for\r\n```\r\n**\r\nMake Warning:\r\n\r\n  Manually-specified variables were not used by the project:\r\n\r\n    CMAKE_CXX_FLAGS_RELEASE\r\n```"},"comment":{"url":"https://api.github.com/repos/Homebrew/homebrew-core/issues/comments/208213065","html_url":"https://github.com/Homebrew/homebrew-core/issues/117#issuecomment-208213065","issue_url":"https://api.github.com/repos/Homebrew/homebrew-core/issues/117","id":208213065,"user":{"login":"manavortex","id":965785,"avatar_url":"https://avatars.githubusercontent.com/u/965785?v=3","gravatar_id":"","url":"https://api.github.com/users/manavortex","html_url":"https://github.com/manavortex","followers_url":"https://api.github.com/users/manavortex/followers","following_url":"https://api.github.com/users/manavortex/following{/other_user}","gists_url":"https://api.github.com/users/manavortex/gists{/gist_id}","starred_url":"https://api.github.com/users/manavortex/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/manavortex/subscriptions","organizations_url":"https://api.github.com/users/manavortex/orgs","repos_url":"https://api.github.com/users/manavortex/repos","events_url":"https://api.github.com/users/manavortex/events{/privacy}","received_events_url":"https://api.github.com/users/manavortex/received_events","type":"User","site_admin":false},"created_at":"2016-04-11T07:57:36Z","updated_at":"2016-04-11T07:57:36Z","body":"I'm not scared when it comes to digging into source code head first, but I think this might make some of the more reluctant users quite scared. A fix would be appreciated. :)"}}