I was of the same opinion but the absence of GNU Sed from the /usr/bin directory is very strange under debian.
sed is installed under armbian 20, but the binary is in the /bin directory. it seems to me that this choice is absolutely not judicious even if a simple symlink allows to solve the problem. I have a workstation under MXLinux (debian stable) and the binary is in its usual place.
I see the same curiosity under linux raspberrypi 5.4.72, sed is installed but the /bin directory!
Damned, I thank you for your opinions, but you are wrong:
pecl is a simple script bash which ensures the local compilation of the package.
so either you modify the link /usr/bin/sed in pecl, or you just have to create a link for sed in its historical directory!!!
# sed --v
sed (GNU sed) 4.7
Packaged by Debian
Copyright (C) 2018 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <https://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
# type -a sed
sed is /bin/sed
# cd /bin
# ln -s /bin/sed /user/bin/sed (create a symlink for sed)
# cd /usr/bin
# ln -l sed
lrwxewxrwx l root ....... sed -> /bin/sed
/usr/bin# pecl install smbclient
Build process completed successfully
install ok: channel://pecl.php.net/smbclient-1.0.0
configuration option "php_ini" is not set to php.ini location
You should add "extension=smbclient.so" to php.ini
that's all folks