Well... I already checked that. Running a strace on top shows:
stat64("//.terminfo", 0xbea2b158) = -1 ENOENT (No such file or directory)
stat64("/opt/share/terminfo", 0xbea2b158) = -1 ENOENT (No such file or directory)
write(2, "'xterm': unknown terminal type.\n", 32'xterm': unknown terminal type.
) = 32
exit_group(1) = ?
But then the soft-link exists
root@lacie:/ # ls -la /opt/share/terminfo
lrwxrwxrwx 1 root root 24 2015-01-26 17:02 /opt/share/terminfo -> ../../usr/share/terminfo
I could access that directory, but as the "../../" part doesn't look good, I removed the soft-link and re-created it again:
root@lacie:/ # ls -la /opt/share/terminfo
lrwxrwxrwx 1 root root 24 2015-01-26 17:02 /opt/share/terminfo -> ../../usr/share/terminfo
root@lacie:/ # rm /opt/share/terminfo
root@lacie:/ # ln -s /usr/share/terminfo /opt/share/terminfo
root@lacie:/ # top
top - 11:32:24 up 1 day, 15:18, 1 user, load average: 0.81, 0.80, 0.87
Tasks: 82 total, 1 running, 81 sleeping, 0 stopped, 0 zombie
Cpu(s): 20.6%us, 2.7%sy, 0.4%ni, 70.8%id, 5.2%wa, 0.0%hi, 0.2%si, 0.0%st
Mem: 250404k total, 147584k used, 102820k free, 2828k buffers
Swap: 524284k total, 106692k used, 417592k free, 11908k cached
Now it works!
I think that soft-link is wrong, and it should be fixed in future versions. Any reason why it should stay a relative path instead of an absolute path?