{"action":"created","issue":{"url":"https://api.github.com/repos/torch/torch7/issues/379","labels_url":"https://api.github.com/repos/torch/torch7/issues/379/labels{/name}","comments_url":"https://api.github.com/repos/torch/torch7/issues/379/comments","events_url":"https://api.github.com/repos/torch/torch7/issues/379/events","html_url":"https://github.com/torch/torch7/issues/379","id":108591423,"number":379,"title":"Including cutorch results in a malformed mach-o image error","user":{"login":"minqi","id":1077875,"avatar_url":"https://avatars.githubusercontent.com/u/1077875?v=3","gravatar_id":"","url":"https://api.github.com/users/minqi","html_url":"https://github.com/minqi","followers_url":"https://api.github.com/users/minqi/followers","following_url":"https://api.github.com/users/minqi/following{/other_user}","gists_url":"https://api.github.com/users/minqi/gists{/gist_id}","starred_url":"https://api.github.com/users/minqi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/minqi/subscriptions","organizations_url":"https://api.github.com/users/minqi/orgs","repos_url":"https://api.github.com/users/minqi/repos","events_url":"https://api.github.com/users/minqi/events{/privacy}","received_events_url":"https://api.github.com/users/minqi/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-09-28T05:27:32Z","updated_at":"2015-09-28T05:29:13Z","closed_at":"2015-09-28T05:29:13Z","body":"When I try including cutorch in a project, I receive this error:\r\n\r\n    luajit: error loading module 'libcutorch' from file '/Users/minqi/torch/install/lib/lua/5.1/libcutorch.so':\r\n\tdlopen(/Users/minqi/torch/install/lib/lua/5.1/libcutorch.so, 6): no suitable image found.  Did find:\r\n\t/Users/minqi/torch/install/lib/lua/5.1/libcutorch.so: malformed mach-o image: load command #19    length (0) too small in /Users/minqi/torch/install/lib/lua/5.1/libcutorch.so\r\n    stack traceback:\r\n\t    [C]: at 0x010d1a66e0\r\n\t    [C]: at 0x010d1a5d00\r\n\t    [C]: at 0x010d177780\r\n\r\nI am running OS X Yosemite 10.10.5. My CMake is the latest version, 3.3.2, and I'm using CUDA 7.5. "},"comment":{"url":"https://api.github.com/repos/torch/torch7/issues/comments/143644152","html_url":"https://github.com/torch/torch7/issues/379#issuecomment-143644152","issue_url":"https://api.github.com/repos/torch/torch7/issues/379","id":143644152,"user":{"login":"soumith","id":1310570,"avatar_url":"https://avatars.githubusercontent.com/u/1310570?v=3","gravatar_id":"","url":"https://api.github.com/users/soumith","html_url":"https://github.com/soumith","followers_url":"https://api.github.com/users/soumith/followers","following_url":"https://api.github.com/users/soumith/following{/other_user}","gists_url":"https://api.github.com/users/soumith/gists{/gist_id}","starred_url":"https://api.github.com/users/soumith/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/soumith/subscriptions","organizations_url":"https://api.github.com/users/soumith/orgs","repos_url":"https://api.github.com/users/soumith/repos","events_url":"https://api.github.com/users/soumith/events{/privacy}","received_events_url":"https://api.github.com/users/soumith/received_events","type":"User","site_admin":false},"created_at":"2015-09-28T05:29:13Z","updated_at":"2015-09-28T05:29:13Z","body":"if it's a cutorch problem, please open an issue here: https://github.com/torch/cutorch\r\nThanks."}}