{"action":"created","issue":{"url":"https://api.github.com/repos/snoweye/pbdZMQ/issues/28","repository_url":"https://api.github.com/repos/snoweye/pbdZMQ","labels_url":"https://api.github.com/repos/snoweye/pbdZMQ/issues/28/labels{/name}","comments_url":"https://api.github.com/repos/snoweye/pbdZMQ/issues/28/comments","events_url":"https://api.github.com/repos/snoweye/pbdZMQ/issues/28/events","html_url":"https://github.com/snoweye/pbdZMQ/issues/28","id":155358356,"number":28,"title":"Broken Mac OS X package on CRAN?","user":{"login":"janschulz","id":890156,"avatar_url":"https://avatars.githubusercontent.com/u/890156?v=3","gravatar_id":"","url":"https://api.github.com/users/janschulz","html_url":"https://github.com/janschulz","followers_url":"https://api.github.com/users/janschulz/followers","following_url":"https://api.github.com/users/janschulz/following{/other_user}","gists_url":"https://api.github.com/users/janschulz/gists{/gist_id}","starred_url":"https://api.github.com/users/janschulz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/janschulz/subscriptions","organizations_url":"https://api.github.com/users/janschulz/orgs","repos_url":"https://api.github.com/users/janschulz/repos","events_url":"https://api.github.com/users/janschulz/events{/privacy}","received_events_url":"https://api.github.com/users/janschulz/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-05-17T20:50:17Z","updated_at":"2016-05-18T04:10:49Z","closed_at":null,"body":"This is teh result of installing irkernel on a Mac OS X R3.3 system:\r\n\r\n```\r\n* installing *source* package ‘IRkernel’ ...\r\n** R\r\n** inst\r\n** preparing package for lazy loading\r\nError : .onLoad failed in loadNamespace() for 'pbdZMQ', details:\r\n  call: dyn.load(file, DLLpath = DLLpath, ...)\r\n  error: nie można załadować współdzielonego obiektu  '/Library/Frameworks/R.framework/Versions/3.3/Resources/library/pbdZMQ/libs/pbdZMQ.so':\r\n  dlopen(/Library/Frameworks/R.framework/Versions/3.3/Resources/library/pbdZMQ/libs/pbdZMQ.so, 6): Library not loaded: /Builds/CRAN-QA-Simon/packages/mavericks-x86_64/Rlib/3.3/pbdZMQ/libs/libzmq.4.dylib\r\n  Referenced from: /Library/Frameworks/R.framework/Versions/3.3/Resources/library/pbdZMQ/libs/pbdZMQ.so\r\n  Reason: image not found\r\nERROR: lazy loading failed for package ‘IRkernel’\r\n* removing ‘/Library/Frameworks/R.framework/Versions/3.3/Resources/library/IRkernel’\r\nBŁĄD: Command failed (1)\r\n```\r\n\r\nIMO the line which tries to load the wrong libzmq.4.dylib shows that it is not finding the included libzmq.dylib.\r\n\r\nThis is https://github.com/IRkernel/IRkernel/issues/303 and https://github.com/IRkernel/IRkernel/pull/330 in the IRkernel repo..."},"comment":{"url":"https://api.github.com/repos/snoweye/pbdZMQ/issues/comments/219920521","html_url":"https://github.com/snoweye/pbdZMQ/issues/28#issuecomment-219920521","issue_url":"https://api.github.com/repos/snoweye/pbdZMQ/issues/28","id":219920521,"user":{"login":"snoweye","id":2565440,"avatar_url":"https://avatars.githubusercontent.com/u/2565440?v=3","gravatar_id":"","url":"https://api.github.com/users/snoweye","html_url":"https://github.com/snoweye","followers_url":"https://api.github.com/users/snoweye/followers","following_url":"https://api.github.com/users/snoweye/following{/other_user}","gists_url":"https://api.github.com/users/snoweye/gists{/gist_id}","starred_url":"https://api.github.com/users/snoweye/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/snoweye/subscriptions","organizations_url":"https://api.github.com/users/snoweye/orgs","repos_url":"https://api.github.com/users/snoweye/repos","events_url":"https://api.github.com/users/snoweye/events{/privacy}","received_events_url":"https://api.github.com/users/snoweye/received_events","type":"User","site_admin":false},"created_at":"2016-05-18T04:10:49Z","updated_at":"2016-05-18T04:10:49Z","body":"- I add the run-time overwriting to zzz.r.in for OS X, so it will get the internal one when it runs.\r\n- OS X use rpath(?) to manage linking of dynamic libraries. So when pbdZMQ.so is built, it has been register a rpath to libzmq.4.dylib or libzmq.a (maybe). There is nothing wrong here.\r\n- However, R prebuilds packages at some tmp directory, then install to where it should be installed. In your example, Simon (CRAN OS X maintainer?) installs it to his favor directory, then build the binary file from it.\r\n- If users don't install the binary file at the same directory, then pbdZMQ.so will not possible to find the libzmq.4.dylib.\r\n- This is why ZMQ guys want to use ldconfig or so to set the library path at run-time.\r\n- Please try the current github version. It should work as shown at `https://travis-ci.org/snoweye/pbdZMQ`. Let me know if there is any problem. If not, I will send the fixes to CRAN.\r\n"}}