{"action":"created","issue":{"url":"https://api.github.com/repos/desilinguist/swig-srilm/issues/6","repository_url":"https://api.github.com/repos/desilinguist/swig-srilm","labels_url":"https://api.github.com/repos/desilinguist/swig-srilm/issues/6/labels{/name}","comments_url":"https://api.github.com/repos/desilinguist/swig-srilm/issues/6/comments","events_url":"https://api.github.com/repos/desilinguist/swig-srilm/issues/6/events","html_url":"https://github.com/desilinguist/swig-srilm/issues/6","id":119105847,"number":6,"title":"Installing on OSX El Capitan","user":{"login":"ZeerakW","id":207574,"avatar_url":"https://avatars.githubusercontent.com/u/207574?v=3","gravatar_id":"","url":"https://api.github.com/users/ZeerakW","html_url":"https://github.com/ZeerakW","followers_url":"https://api.github.com/users/ZeerakW/followers","following_url":"https://api.github.com/users/ZeerakW/following{/other_user}","gists_url":"https://api.github.com/users/ZeerakW/gists{/gist_id}","starred_url":"https://api.github.com/users/ZeerakW/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ZeerakW/subscriptions","organizations_url":"https://api.github.com/users/ZeerakW/orgs","repos_url":"https://api.github.com/users/ZeerakW/repos","events_url":"https://api.github.com/users/ZeerakW/events{/privacy}","received_events_url":"https://api.github.com/users/ZeerakW/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":26,"created_at":"2015-11-26T22:10:08Z","updated_at":"2016-04-20T05:09:54Z","closed_at":null,"body":"I'm trying to install the wrapper but I keep getting multiple errors.\r\n\r\nI've tried with the OS X shipped GCC and GCC installed using home-brew (versions 4.9 and 5).\r\n\r\nAny other suggestions?\r\n\r\n/Users/zeerakw/Masters/Projects/Haiku_Project/System/lib/srilm/include/zio.h:105:49: error: conflicting declaration of C function 'FILE* zopen(const char*, const char*)'\r\n FILE * zopen (const char *name, const char *mode);\r\n                                                 ^\r\nIn file included from /usr/include/wchar.h:90:0,\r\n                 from /usr/local/Cellar/gcc49/4.9.3/include/c++/4.9.3/cwchar:44,\r\n                 from /usr/local/Cellar/gcc49/4.9.3/include/c++/4.9.3/bits/postypes.h:40,\r\n                 from /usr/local/Cellar/gcc49/4.9.3/include/c++/4.9.3/iosfwd:40,\r\n                 from /usr/local/Cellar/gcc49/4.9.3/include/c++/4.9.3/ios:38,\r\n                 from /usr/local/Cellar/gcc49/4.9.3/include/c++/4.9.3/ostream:38,\r\n                 from /usr/local/Cellar/gcc49/4.9.3/include/c++/4.9.3/iostream:39,\r\n                 from /Users/zeerakw/Masters/Projects/Haiku_Project/System/lib/srilm/include/Counts.h:17,\r\n                 from /Users/zeerakw/Masters/Projects/Haiku_Project/System/lib/srilm/include/Prob.h:20,\r\n                 from srilm.c:1:\r\n/usr/include/stdio.h:463:7: note: previous declaration 'FILE* zopen(const char*, const char*, int)'\r\n FILE *zopen(const char *, const char *, int);\r\n       ^\r\nsrilm.c: In function 'float getBigramProb(Ngram*, const char*)':\r\nsrilm.c:88:27: error: 'strdupa' was not declared in this scope\r\n     scp = strdupa(ngramstr);\r\n                           ^\r\nsrilm.c: In function 'float getTrigramProb(Ngram*, const char*)':\r\nsrilm.c:122:27: error: 'strdupa' was not declared in this scope\r\n     scp = strdupa(ngramstr);\r\n                           ^\r\nsrilm.c: In function 'float getNgramProb(Ngram*, const char*, unsigned int)':\r\nsrilm.c:151:27: error: 'strdupa' was not declared in this scope\r\n     scp = strdupa(ngramstr);\r\n                           ^\r\nsrilm.c: In function 'unsigned int sentenceStats(Ngram*, const char*, unsigned int, TextStats&)':\r\nsrilm.c:191:27: error: 'strdupa' was not declared in this scope\r\n     scp = strdupa(sentence);\r\n                           ^\r\nmake: *** [srilm.o] Error 1"},"comment":{"url":"https://api.github.com/repos/desilinguist/swig-srilm/issues/comments/212258574","html_url":"https://github.com/desilinguist/swig-srilm/issues/6#issuecomment-212258574","issue_url":"https://api.github.com/repos/desilinguist/swig-srilm/issues/6","id":212258574,"user":{"login":"desilinguist","id":161680,"avatar_url":"https://avatars.githubusercontent.com/u/161680?v=3","gravatar_id":"","url":"https://api.github.com/users/desilinguist","html_url":"https://github.com/desilinguist","followers_url":"https://api.github.com/users/desilinguist/followers","following_url":"https://api.github.com/users/desilinguist/following{/other_user}","gists_url":"https://api.github.com/users/desilinguist/gists{/gist_id}","starred_url":"https://api.github.com/users/desilinguist/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/desilinguist/subscriptions","organizations_url":"https://api.github.com/users/desilinguist/orgs","repos_url":"https://api.github.com/users/desilinguist/repos","events_url":"https://api.github.com/users/desilinguist/events{/privacy}","received_events_url":"https://api.github.com/users/desilinguist/received_events","type":"User","site_admin":false},"created_at":"2016-04-20T05:09:54Z","updated_at":"2016-04-20T05:09:54Z","body":"Once you do `make -f Makefile.osx` that's it. That compiles the python module by default. You should be able to run `/usr/bin/python test.py` (the test script included with `swig-srilm` after that and it should produce the output as shown in the README."}}