You are not logged in.
Pages: 1
Topic closed
Hi,
I am running into some issues with one emacs package. Detailed information about my problem can be found here.
The error message I am getting is:
Error in dyn.load(file, DLLpath = DLLpath, ...) :
unable to load shared object '/usr/lib/R/library/stringi/libs/stringi.so':
libicui18n.so.60: cannot open shared object file: No such file or directory
I did some googling, but without any luck and I would really appreciate some help on this one.
Thank you!
Last edited by prosoitos (2018-04-01 23:40:00)
Offline
Welcome to the arch linux forums prosoitos. What is the output of `pacman -Qs icu`
Offline
Update stringi, or just `update.packages()` in R.
And can I highlight that while "emacs speaks statistics" it does so with a lisp
Last edited by Trilby (2018-03-31 21:56:37)
"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" - Richard Stallman
Offline
Welcome to the arch linux forums prosoitos.
Thanks!
What is the output of `pacman -Qs icu`
Here is the output:
local/harfbuzz-icu 1.7.6-2
OpenType text shaping engine (ICU integration)
local/icu 61.1-1
International Components for Unicode library
`update.packages()` in R.
All my packages are up to date.
Offline
local/icu 61.1-1
Does this mean that I should downgrade to 60 or wait for stringi to catch up with my ICU?
Offline
Does this mean that I should downgrade to 60 or wait for stringi to catch up with my ICU?
It will never "catch up" on it's own. Rebuild it.
This was covered in several other threads, reabuilding stringi is the solution.
Last edited by Trilby (2018-04-01 02:41:02)
"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" - Richard Stallman
Offline
By "rebuild", do you mean running `install.packages("stringi")`?
I tried this and it didn't help.
Offline
Yes, that should do it - was that run in a root session? Were there any errors or did it build successfully?
"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" - Richard Stallman
Offline
Yes, run as root. Rebuild was successful.
Last edited by prosoitos (2018-04-01 03:07:11)
Offline
Oh wait... that did change the error message I am getting with `R --slave --restore --no-save -e library\(lintr\)\;try\(lint\(commandArgs\(TRUE\)\,\ cache\=TRUE\,\ with_defaults\(commented_code_linter\ \=\ NULL\,\ spaces_left_parentheses_linter\ \=\ NULL\,\ trailing_whitespace_linter\ \=\ NULL\,\ trailing_blank_lines_linter\ \=\ NULL\)\)\) --args /home/data/geek/r/test_file.R` though. I will rebuild `lintr` now and I might be good
Offline
So, after rebuilding `lintr` from CRAN, I have it working again (thanks Trilby!).
However, I still cannot use the development version of lintr. With this one, if I run
R --slave --restore --no-save -e library\(lintr\)\;try\(lint\(commandArgs\(TRUE\)\,\ cache\=TRUE\,\ with_defaults\(commented_code_linter\ \=\ NULL\,\ spaces_left_parentheses_linter\ \=\ NULL\,\ trailing_whitespace_linter\ \=\ NULL\,\ trailing_blank_lines_linter\ \=\ NULL\)\)\) --args /home/data/geek/r/test_file.R
instead of getting the error message I was getting previously about `stringi`, I now get the error:
Error in gzfile(file, "wb") : cannot open the connection
In addition: Warning messages:
1: In dir.create(path) :
cannot create dir '/home/marie/.R/lintr_cache', reason 'No such file or directory'
2: In gzfile(file, "wb") :
cannot open compressed file '/home/marie/.R/lintr_cache/d24099e85bc2a18cc26157c7be9dbabbd1282b86', probable reason 'No such file or directory'
Offline
(and `lintr` does not detect any error).
Since the development version includes a PR I submitted, I would be happy to be able to use it
Offline
I updated my issue on GitHub and hopefully, I will find some help there. Thanks for getting me started!!! If I find the solution, I will update here (and if you have any additional advice, thanks for letting me know!).
Offline
Or maybe I should mark this as `solved` since my `stringi` problem got solved by Trilby and I now have a different issue with the same command?
Offline
Please use the edit button to add new information if no one else has commented instead of having a long series of posts talking to yourself
As for your new issue, that is a separate issue, but do not create a new thread until you have made an effort to solve it. The error is quite clear. Either create the '/home/marie/.R/lintr_cache' directory or set the lintr cache_directory to where you want it to be.
"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" - Richard Stallman
Offline
Thanks. I didn't realize I could create it myself. Both issues solved now.
Offline
By "rebuild", do you mean running `install.packages("stringi")`? (...)
Yes, that should do it - was that run in a root session? Were there any errors or did it build successfully?
Had the same issue. Can confirm installing `stringi` as root solves the issue. (As a side note, I got the same error message when running radian as root. However, builds successfully when running "vanilla" R in root session.)
Offline
Please do not necrobump, especially threads marked [solved].
Closing.
Offline
Pages: 1
Topic closed