Thursday, May 2, 2024
 Popular · Latest · Hot · Upcoming
32
rated 0 times [  32] [ 0]  / answers: 1 / hits: 47435  / 2 Years ago, sat, march 26, 2022, 8:21:59

I was installing the software environment of Armadeus experiment board APF27DEV, and when I tried the make command, it gave me the following error message:


On your system /bin/sh is a symbolic link that doesn't point to /bin/bash --> please correct that !
lrwxrwxrwx 1 root root 4 2013-08-03 20:57 /bin/sh -> dash

To resolve this error, I've tried to change all the shebangs from #!/bin/sh to #!/bin/bash, and I've also tried the following command:


ln -s /bin/bash /bin/sh

But, all that I've done didn't resolve the problem. Could anyone please help me out with this problem?


More From » bash

 Answers
4

You were almost there with your ln command, except you probably needed to include the -f flag ('force') in order to overwrite the old link. Also it's preferable to use a relative path for the target:


sudo ln -sf bash /bin/sh

When you're done with the install, you can revert to the system default with:


sudo ln -sf dash /bin/sh

There should be no need to change the script file's shebangs.


[#30086] Saturday, March 26, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
rhaeams

Total Points: 115
Total Questions: 111
Total Answers: 103

Location: Burundi
Member since Wed, Nov 25, 2020
4 Years ago
rhaeams questions
;