Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

st-flash: error while loading shared libraries: libstlink-shared.so.1: #58

Closed
NathanielAJohnson opened this issue Jul 23, 2017 · 7 comments
Labels

Comments

@NathanielAJohnson
Copy link

NathanielAJohnson commented Jul 23, 2017

I am receiving the following error when uploading.

st-flash: error while loading shared libraries: libstlink-shared.so.1: cannot open shared object file: No such 
file or directory
*** [upload] Error 127

This is on Atom version running on Ubuntu 17.04 . I have found this link to the same error in the stlink repository.

I found where platformio stores these tools and ran them. In a system terminal they reported the same error but in the platformio spawned terminal they worked. The suggestions offered there did not work for obvious reasons. Leads me to believe the pio environment needs to cloned into that build process.

@ivankravets ivankravets changed the title stlink with Nucleo-f446re st-flash: error while loading shared libraries: libstlink-shared.so.1: Aug 18, 2017
@tobykurien
Copy link

Problem appears to be that platformio is executing tool-stlink/bin/st-flash instead of tool-stlink/st-flash

@ivankravets
Copy link
Member

Fixed. Please run pio update command.

@Slavjan
Copy link

Slavjan commented Apr 28, 2018

this may be fixed via sudo ldconfig, and nothing else.
What is a pio ? I can`t found that...

@gustawdaniel
Copy link

@ivankravets what is pio, where should i run this command?

@ivankravets
Copy link
Member

@gustawdaniel do you have this issue? What is your OS?

@gustawdaniel
Copy link

gustawdaniel commented Nov 8, 2018

Ubuntu 18.04

I fixed by sudo ldconfig executed in directory when I was compiling library.

And I found what is pio.

http://docs.platformio.org/en/latest/what-is-platformio.html

@Basilisvirus
Copy link

Basilisvirus commented Mar 13, 2020

Hello,
ld-config does not solve my problem. (i do not use pio either)

My error is:
st-info: error while loading shared libraries: libstlink.so.1: cannot open shared object file: No such file or directory

in issue #478 i also just posted the same error i get and what i tried to do to solve it.

[EDIT] I solved the issue, see #478

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

6 participants