{"action":"created","issue":{"url":"https://api.github.com/repos/Rexamine/stringi/issues/170","labels_url":"https://api.github.com/repos/Rexamine/stringi/issues/170/labels{/name}","comments_url":"https://api.github.com/repos/Rexamine/stringi/issues/170/comments","events_url":"https://api.github.com/repos/Rexamine/stringi/issues/170/events","html_url":"https://github.com/Rexamine/stringi/issues/170","id":90317149,"number":170,"title":"ICU init failed: U_FILE_ACCESS_ERROR","user":{"login":"jeroenooms","id":216319,"avatar_url":"https://avatars.githubusercontent.com/u/216319?v=3","gravatar_id":"","url":"https://api.github.com/users/jeroenooms","html_url":"https://github.com/jeroenooms","followers_url":"https://api.github.com/users/jeroenooms/followers","following_url":"https://api.github.com/users/jeroenooms/following{/other_user}","gists_url":"https://api.github.com/users/jeroenooms/gists{/gist_id}","starred_url":"https://api.github.com/users/jeroenooms/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jeroenooms/subscriptions","organizations_url":"https://api.github.com/users/jeroenooms/orgs","repos_url":"https://api.github.com/users/jeroenooms/repos","events_url":"https://api.github.com/users/jeroenooms/events{/privacy}","received_events_url":"https://api.github.com/users/jeroenooms/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-06-23T07:55:06Z","updated_at":"2015-06-23T11:14:46Z","closed_at":null,"body":"I'm seeing [these problems](http://pastebin.com/raw.php?i=2d7vYWf8) on some servers (e.g. opensuse):\r\n\r\n```\r\n[  142s] ** preparing package for lazy loading\r\n[  143s] ** help\r\n[  143s] *** installing help indices\r\n[  144s] ** building package indices\r\n[  145s] ** testing if installed package can be loaded\r\n[  145s] Error in dyn.load(file, DLLpath = DLLpath, ...) :\r\n[  145s]   ICU init failed: U_FILE_ACCESS_ERROR\r\n[  145s] Error: loading failed\r\n```\r\n\r\nI think the problem is that you are [overriding](https://github.com/cran/stringi/blob/master/src/stri_stringi.cpp#L260) the location of icudt even when linked against system ICU. I think you should only be calling `stri_set_icu_data_directory` when the package has been built with the bundled ICU.\r\n\r\nPerhaps something like\r\n\r\n```c\r\n#ifdef UCONFIG_USE_LOCAL\r\n   stri_set_icu_data_directory((char*)*(char**)(dll) /* dll->path */);\r\n#endif\r\n```"},"comment":{"url":"https://api.github.com/repos/Rexamine/stringi/issues/comments/114447203","html_url":"https://github.com/Rexamine/stringi/issues/170#issuecomment-114447203","issue_url":"https://api.github.com/repos/Rexamine/stringi/issues/170","id":114447203,"user":{"login":"gagolews","id":3193581,"avatar_url":"https://avatars.githubusercontent.com/u/3193581?v=3","gravatar_id":"","url":"https://api.github.com/users/gagolews","html_url":"https://github.com/gagolews","followers_url":"https://api.github.com/users/gagolews/followers","following_url":"https://api.github.com/users/gagolews/following{/other_user}","gists_url":"https://api.github.com/users/gagolews/gists{/gist_id}","starred_url":"https://api.github.com/users/gagolews/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gagolews/subscriptions","organizations_url":"https://api.github.com/users/gagolews/orgs","repos_url":"https://api.github.com/users/gagolews/repos","events_url":"https://api.github.com/users/gagolews/events{/privacy}","received_events_url":"https://api.github.com/users/gagolews/received_events","type":"User","site_admin":false},"created_at":"2015-06-23T11:14:46Z","updated_at":"2015-06-23T11:14:46Z","body":"Thanks, at least I'll have got stringi tested on many platforms. :)\r\n\r\nI need full `./configure`'s output to diagnose that.\r\n\r\nsetDataDirectory shouldn't be the case here, as according to ICU manual, if a icudt.dat file is not found, bundled icudata (libicudata) is used.\r\n\r\nI suspect that suse comes with incomplete icudata itself. Looking at [libicu53](http://software.opensuse.org/package/libicu53_1) rpm, you can see that `libicudata` is of very small size (typically it should be ca. 20 MB). So first please check your libicu's size. If it is the case, either recompile icu or build stringi with `--disable-pkg-config`.\r\n\r\nAnd now you see the price of using system icu :)\r\n"}}