Error installing nRF connect SDK in VSCode (Linux) (libunistring.so.2: cannot open shared object file: No such file or directory)

Hi, I have an issue when I try to install the nRF connect SDK.
I am using Linux Fedora 39, trying to isntall SDK  v2.5.0.

Steps taken so far:

  • Download and install nRF command line tools
  • Download nRF connect extension pack for VSCode
  • In VSCode, succesfully installed toolchain v2.5.0

Then I select "Manage SDKs", "Install SDK", and then get the error below:

Interstingly, when I open the nRF connect appimage and go to the toolchain manager, it shows the SDK is installed, but that seems to be incorrect to me.

Here is the output from the nRF connect extension generate support output command:

I am not sure how to proceed from here, any help is appreciated. (I am a Linux noob)

I have seen this existing post:  https://devzone.nordicsemi.com/f/nordic-q-a/104649/toolchain-manager-not-installing-all-dependencies

I tried running the command in that post to create a symbolic link, however when I try installing the SDK again, the same error above persists.

  • Hi,

     

    The toolchain installer is aimed towards ubuntu, and may not work with other distros.

    Make sure that you have libunistring installed (use dnf or yum in fedora).

    If you have a different version than what is expected in the toolchain installer, you need to symlink that to the expected one.

    You can find your libunistring file name by issuing this command:

     

    Kind regards,

    Håkon

  • Thank you for your reply.
    It is strange, when I run:



    I get:

    So the library seems to be installed fine.

    Either way, I will leave it for now and try the SDK setup in a Ubuntu or Windows VM instead.
    Thank you for your help

  • Hi,

     

    Is that the symbolic link that was created by following this thread?

    I have seen this existing post:  https://devzone.nordicsemi.com/f/nordic-q-a/104649/toolchain-manager-not-installing-all-dependencies

    I tried running the command in that post to create a symbolic link, however when I try installing the SDK again, the same error above persists.

     Check the size of the file by running "ls -la /usr/lib/libunistring.so.2".

    Also check that you have libunistring installed using your software manager of choice.

     

    Kind regards,

    Håkon

  • Hello,

    I think this issue is going to be more relevant now in Ubuntu because the package libunistring2 in not included in Ubuntu 24.04.

    The package libunistring2 seems to have been superseded by libunistring5.

  • Thanks for the tip. I was wondering why I could install the SDK normally on Ubuntu 23.10, but not on 24.04.

    I managed to get it working by downloading the package as a .deb file from the Debian repository (here for others needing a direct link) and then installing manually with dpkg. After that, the SDK installed normally and I could build a sample project.

1 2 3 4