-
Notifications
You must be signed in to change notification settings - Fork 912
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
Conversation
@@ -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: |
There was a problem hiding this comment.
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).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I was also pondering this when #1050 (comment) came in: the statement is literally true for appropriate flavours of Linux, but without background information also makes it sound like this is the only circumstance where you might use ldconfig
and/or adjust LD_LIBRARY_PATH
.
You might need it the first time running cardano-node
from the command line or after adding dependent libraries. I think the addition would require a more complete explanation of why this is necessary to run cardano-node
in general and not just for systemd
while also addressing the issue of what to expect on different platforms.
@NickJorens are you finalizing this? |
I'm sorry, but I wasn't planning on following up on this. |
OK then @katomm we have to drop this, because the advice offered is only intermittently applicable & not without some explanatory context. |
Checklist
yarn build
after adding my changes without getting any errors.Updating documentation or Bugfix
I wanted to run a preview node using systemd. I followed the exact instructions, but the systemd error output showed an error. After research I found this can be remedied by simply running
ldconfig
after setup.