You are not logged in.

#1 2018-03-31 21:26:41

prosoitos
Member
Registered: 2018-03-31
Posts: 68
Website

[SOLVED] libicui18n.so.60: cannot open shared object file

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

#2 2018-03-31 21:39:13

loqs
Member
Registered: 2014-03-06
Posts: 17,462

Re: [SOLVED] libicui18n.so.60: cannot open shared object file

Welcome to the arch linux forums prosoitos.  What is the output of `pacman -Qs icu`

Offline

#3 2018-03-31 21:55:06

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,570
Website

Re: [SOLVED] libicui18n.so.60: cannot open shared object file

Update stringi, or just `update.packages()` in R.

And can I highlight that while "emacs speaks statistics" it does so with a lisp tongue

Last edited by Trilby (2018-03-31 21:56:37)


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

#4 2018-04-01 02:31:23

prosoitos
Member
Registered: 2018-03-31
Posts: 68
Website

Re: [SOLVED] libicui18n.so.60: cannot open shared object file

loqs wrote:

Welcome to the arch linux forums prosoitos.

Thanks!

loqs wrote:

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
Trilby wrote:

`update.packages()` in R.

All my packages are up to date.

Offline

#5 2018-04-01 02:35:15

prosoitos
Member
Registered: 2018-03-31
Posts: 68
Website

Re: [SOLVED] libicui18n.so.60: cannot open shared object file

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

#6 2018-04-01 02:40:11

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,570
Website

Re: [SOLVED] libicui18n.so.60: cannot open shared object file

prosoitos wrote:

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

#7 2018-04-01 02:59:57

prosoitos
Member
Registered: 2018-03-31
Posts: 68
Website

Re: [SOLVED] libicui18n.so.60: cannot open shared object file

By "rebuild", do you mean running `install.packages("stringi")`?

I tried this and it didn't help.

Offline

#8 2018-04-01 03:04:35

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,570
Website

Re: [SOLVED] libicui18n.so.60: cannot open shared object file

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

#9 2018-04-01 03:06:36

prosoitos
Member
Registered: 2018-03-31
Posts: 68
Website

Re: [SOLVED] libicui18n.so.60: cannot open shared object file

Yes, run as root. Rebuild was successful.

Last edited by prosoitos (2018-04-01 03:07:11)

Offline

#10 2018-04-01 03:11:06

prosoitos
Member
Registered: 2018-03-31
Posts: 68
Website

Re: [SOLVED] libicui18n.so.60: cannot open shared object file

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 smile

Offline

#11 2018-04-01 03:16:21

prosoitos
Member
Registered: 2018-03-31
Posts: 68
Website

Re: [SOLVED] libicui18n.so.60: cannot open shared object file

So, after rebuilding `lintr` from CRAN, I have it working again smile (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

#12 2018-04-01 03:18:05

prosoitos
Member
Registered: 2018-03-31
Posts: 68
Website

Re: [SOLVED] libicui18n.so.60: cannot open shared object file

(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 tongue

Offline

#13 2018-04-01 03:44:00

prosoitos
Member
Registered: 2018-03-31
Posts: 68
Website

Re: [SOLVED] libicui18n.so.60: cannot open shared object file

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

#14 2018-04-01 03:51:36

prosoitos
Member
Registered: 2018-03-31
Posts: 68
Website

Re: [SOLVED] libicui18n.so.60: cannot open shared object file

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

#15 2018-04-01 10:53:25

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,570
Website

Re: [SOLVED] libicui18n.so.60: cannot open shared object file

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 tongue

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

#16 2018-04-01 23:37:44

prosoitos
Member
Registered: 2018-03-31
Posts: 68
Website

Re: [SOLVED] libicui18n.so.60: cannot open shared object file

Thanks. I didn't realize I could create it myself. Both issues solved now.

Offline

#17 2023-07-07 11:34:56

pal_bjartan
Member
Registered: 2022-11-13
Posts: 9

Re: [SOLVED] libicui18n.so.60: cannot open shared object file

prosoitos wrote:

By "rebuild", do you mean running `install.packages("stringi")`? (...)

Trilby wrote:

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

#18 2023-07-07 11:46:33

2ManyDogs
Forum Fellow
Registered: 2012-01-15
Posts: 4,645

Re: [SOLVED] libicui18n.so.60: cannot open shared object file

Please do not necrobump, especially threads marked [solved].

Closing.

Offline

Board footer

Powered by FluxBB