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

Add message about ldconfig #1050

Closed
wants to merge 2 commits into from
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions docs/get-started/installing-cardano-node.md
Original file line number Diff line number Diff line change
Expand Up @@ -515,6 +515,16 @@ cp -p "$(./scripts/bin-path.sh cardano-node)" $HOME/.local/bin/
cp -p "$(./scripts/bin-path.sh cardano-cli)" $HOME/.local/bin/
```

In order to run the cardano-node as a service using systemd you need to run the following command:
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since there are heaps of Linux flavours around:

Simply running ldconfig may not be enough (neither absence of it will guarantee the error, if LD_LIBRARY_PATH already points to local lib folder).

If using ldconfig, it would be an essential step to ensure /usr/local/lib - or the path where you install the lib to - is part of /etc/ld.so.config (or mentioned in a file in /etc/ld.so.conf.d).


```bash
ldconfig
```
If this is not done, you might run into the following error:
```bash
error while loading shared libraries: libsecp256k1.so.0: cannot open shared object file: No such file or directory
```

We have to add this line below our shell profile so that the shell/terminal can recognize that `cardano-node` and `cardano-cli` are global commands. (`$HOME/.zshrc` or `$HOME/.bashrc` ***depending on the shell application you use***)

```bash
Expand Down