Page 1 of 1

Error when login thru ssh in TOS 5

Posted: 15 Aug 2022, 23:16
by Cafsenra
I am getting a error after updating to TOS 5 when I login to tnas thru ssh:

Code: Select all

Welcome to Tnas!
ln: failed to create symbolic link '/usr/local/lib/lib': File exists
ln: failed to create symbolic link '/usr/local/lib64/lib64': File exists
This error seems not to affect system operation but it is annoying.

Can anyone tell me if is having this issue and how to solve it?

Re: Error when login thru ssh in TOS 5

Posted: 17 Sep 2022, 18:18
by Cafsenra
I was able to solve this issue by comment the lines in the file stated below:

Code: Select all

cat /etc/profile.d/buildtools.sh
#!/bin/bash
ROOT_PATH=$(dirname $(dirname $(dirname $(dirname $(readlink -f "${BASH_SOURCE[0]}")))))
# ln -s "$ROOT_PATH/lib" /usr/local/lib
# ln -s "$ROOT_PATH/lib64" /usr/local/lib64
export PATH=$PATH:$ROOT_PATH/bin
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/lib
I don't understand how can be a ln command be set to run always when you login to the system. Obviously, only works once.