Thursday, February 22, 2024
20
rated 0 times [  20] [ 0]  / answers: 1 / hits: 131392  / 2 Years ago, wed, june 15, 2022, 3:47:35

I created a symbolic Link from a File at "/opt/bladir/bla" to "bla". So "bla" is now in "/usr/bin/bla". But if I want to call "bla" at terminal, there comes the no such file or directory error. I looked up at "/usr/bin/bla" and the file is linking correctly at "/opt/bladir/bla".



What can be the error?



P.S. here is my terminal "entry": sudo ln -s /opt/bladir/bla bla



Thanks!



€: Problem solved. According to the Feature List, 12.04 should have Multiarch support... 'should'. I got the ia32-libs from synaptic and now the program wents just fine. As it looks, my symbolic links where correct.



Thank you for all the answers!


More From » symbolic-link

 Answers
2

EDIT: the solution below does not work. It is apparent that the symbolic link is broken, because file -L cannot open the symbolic link /usr/bin/bla. In this case, do the following:



sudo ln -sf /opt/bladir/bla /usr/bin/bla


using full paths (-f is to force overwriting the previous symbolic link, if there is one).



Hm. I think that the program "bla" may be looking for things that are installed in /opt/bladir and cannot find them. For example, it can be a shell script wrapper around a Java executable, with path relative to current directory: but your current directory is /usr/bin/, and not /opt/bladir/.



If the following works



file -L /usr/bin/bla


...then it is definitely not a problem with your symbolic link.



Check whether "bla" is a shell script that you can modify, take a look inside -- maybe you will find the problem. Possibly, adding /opt/bladir to your PATH would be a better solution.


[#35285] Thursday, June 16, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
hreadsoplet

Total Points: 220
Total Questions: 108
Total Answers: 105

Location: Serbia
Member since Fri, Jun 3, 2022
2 Years ago
;