View previous topic :: View next topic |
Author |
Message |
ranran Tux's lil' helper
Joined: 11 Jul 2018 Posts: 75
|
Posted: Sun Jul 29, 2018 10:25 am Post subject: busybox - missing static links ? |
|
|
Hello,
I am trying to use busybox commands, but it seems that there are missing static links from commands to busybox binary:
For example, on trying tunctl, I get "command not found error".
Doing the same with "busybox tunctl" is OK.
How should I fix this issue?
Thanks,
ranran |
|
Back to top |
|
|
mike155 Advocate
Joined: 17 Sep 2010 Posts: 4438 Location: Frankfurt, Germany
|
Posted: Sun Jul 29, 2018 12:32 pm Post subject: |
|
|
Did you emerge busybox with USE flag 'make-symlinks'? |
|
Back to top |
|
|
khayyam Watchman
Joined: 07 Jun 2012 Posts: 6227 Location: Room 101
|
Posted: Sun Jul 29, 2018 1:02 pm Post subject: Re: busybox - missing static links ? |
|
|
ranran wrote: | I am trying to use busybox commands, but it seems that there are missing static links from commands to busybox binary: For example, on trying tunctl, I get "command not found error".
Doing the same with "busybox tunctl" is OK. How should I fix this issue? |
ranran ... I don't think you actually want to "fix" this, if you create symlinks (ie, via USE="make-symlinks", or by running 'busybox --install') then you will overwrite package installed binaries (all those listed in 'busybox --list'). If you do this then somethings will break, ie, see this thread.
best ... khay |
|
Back to top |
|
|
ranran Tux's lil' helper
Joined: 11 Jul 2018 Posts: 75
|
Posted: Sun Jul 29, 2018 1:37 pm Post subject: |
|
|
Thanks for the comments !
So if I understand correctly, the advise it to continue using "bysbox <command> ..." syntax ?
The issue is that I have scripts which try to call the commands directly (without the busybox prefix)
Thanks,
ranran |
|
Back to top |
|
|
mike155 Advocate
Joined: 17 Sep 2010 Posts: 4438 Location: Frankfurt, Germany
|
Posted: Sun Jul 29, 2018 2:10 pm Post subject: |
|
|
Quote: | The issue is that I have scripts which try to call the commands directly (without the busybox prefix) |
Try:
or, in short:
You can run your script with:
Code: | bb <name of script> |
Another way would be to change the first line of your script to:
If you do that, you will be able to start your script from a bash shell prompt or via click or double-click from a file manager - and it will use bb to execute the commands in your script. |
|
Back to top |
|
|
Hu Moderator
Joined: 06 Mar 2007 Posts: 21627
|
Posted: Sun Jul 29, 2018 3:42 pm Post subject: |
|
|
In what context are these scripts executed? Why are you trying to use the busybox builtin commands instead of the full-featured counterparts provided through their respective packages? |
|
Back to top |
|
|
ranran Tux's lil' helper
Joined: 11 Jul 2018 Posts: 75
|
Posted: Sun Jul 29, 2018 6:26 pm Post subject: |
|
|
Hu wrote: | In what context are these scripts executed? Why are you trying to use the busybox builtin commands instead of the full-featured counterparts provided through their respective packages? |
Hi,
I haven't find a package for tunctl, is there one ?
Thanks |
|
Back to top |
|
|
mike155 Advocate
Joined: 17 Sep 2010 Posts: 4438 Location: Frankfurt, Germany
|
Posted: Sun Jul 29, 2018 6:38 pm Post subject: |
|
|
Code: | sys-apps/usermode-utilities |
|
|
Back to top |
|
|
ranran Tux's lil' helper
Joined: 11 Jul 2018 Posts: 75
|
Posted: Sun Jul 29, 2018 6:41 pm Post subject: |
|
|
mike155 wrote: | Code: | sys-apps/usermode-utilities |
|
Great
by the way, wow did you know that this package contain the tunctl command ?
Thanks,
ranran |
|
Back to top |
|
|
mike155 Advocate
Joined: 17 Sep 2010 Posts: 4438 Location: Frankfurt, Germany
|
Posted: Sun Jul 29, 2018 6:57 pm Post subject: |
|
|
Quote: | by the way, wow did you know that this package contain the tunctl command ? |
tunctl is installed on one of my machines - so I executed 'qfile tunctl' to get the package.
But the answer you probably wanted to get is this page: http://www.portagefilelist.de/site/query/file/?do#result. Just enter 'tunctl' (or any other filename) and it will show you the package.
ranran, this thread is a perfect example of the X-Y problem. You asked several questions, but you didn't tell us the problem you really wanted to solve. Next time, please try to tell us X - not Y. This will make it much easier to help you and you will receive an answer more quickly. |
|
Back to top |
|
|
ranran Tux's lil' helper
Joined: 11 Jul 2018 Posts: 75
|
Posted: Wed Aug 01, 2018 7:32 am Post subject: |
|
|
mike155 wrote: | Quote: | by the way, wow did you know that this package contain the tunctl command ? |
tunctl is installed on one of my machines - so I executed 'qfile tunctl' to get the package.
But the answer you probably wanted to get is this page: http://www.portagefilelist.de/site/query/file/?do#result. Just enter 'tunctl' (or any other filename) and it will show you the package.
ranran, this thread is a perfect example of the X-Y problem. You asked several questions, but you didn't tell us the problem you really wanted to solve. Next time, please try to tell us X - not Y. This will make it much easier to help you and you will receive an answer more quickly. |
mike,
Thanks !
ranran |
|
Back to top |
|
|
|