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

[doc] Linux Install from code Documentation improvement #1263

Closed
6 tasks done
ApiumJacob opened this issue Aug 17, 2022 · 3 comments
Closed
6 tasks done

[doc] Linux Install from code Documentation improvement #1263

ApiumJacob opened this issue Aug 17, 2022 · 3 comments

Comments

@ApiumJacob
Copy link

  • I made serious effort to avoid creating duplicate or nearly similar issue

In order to allow developers to isolate and target your respective issue, please take some time to select the check boxes below and fill out each of the following items appropriate to your specific request.

  • Programmer/board type: STLINK /V2
  • Operating system an version: Linux Ubuntu 20.04
  • stlink tools version and/or git commit hash: v1.7.0 (repo tag)
  • stlink commandline tool name: st-info + others
  • Target chip (and board, if applicable): STM32F446RE

While following the procedure build from source here: https://github.com/stlink-org/stlink/blob/develop/doc/compiling.md#linux I found the following error:

Commandline output:

jacob@linux:~/repos/stlink$ st-info --version
st-info: error while loading shared libraries: libstlink.so.1: cannot open shared object file: No such file or directory

Expected/description:
v1.7.0

Would it be inappropriate to add a step 4.5 to the Linux build instructions

4.5 sudo ldconfig

I was able to figure this out by searing for my error message in google which lead me to this page:

#478

This isn't this first time I've built from source and probably had this problem before and found the solution the same way. But it would save 10-15 every time I have to build (once a year or so) if this was documented right in the install instructions.

@ApiumJacob ApiumJacob changed the title [feature] Documentation inprovement [feature] Linux Install from code Documentation improvement Aug 17, 2022
@Nightwalker-87
Copy link
Member

I agree on that and will review the related instructions.
Actually this info shouldn't have vanished over time, but on the other hand I must also admit that I haven't run into this problem yet...

@gszy
Copy link
Collaborator

gszy commented Aug 22, 2022

Added in be66bbf, deleted in 8429ac0. I don’t think ldconfig is necessary in every case, but I’m not sure when exactly it is.

@ApiumJacob
Copy link
Author

I know very little about ldconfig but my computer was a fresh install of the OS that never had stlink installed previously. My theory is that since stlink had not been installed previously that the the necessary shared library was not in the cache.

@Nightwalker-87 Nightwalker-87 changed the title [feature] Linux Install from code Documentation improvement [doc] Linux Install from code Documentation improvement Aug 26, 2022
@stlink-org stlink-org locked as resolved and limited conversation to collaborators Aug 26, 2022
Nightwalker-87 added a commit that referenced this issue Aug 27, 2022
- Closes #1263.
- Updated CHANGELOG.md
- Updated list of contributors
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
No open projects
Status: Done
Development

No branches or pull requests

3 participants