PHP messing with my PATH
For some reason, my PATH is being messed by PHP and I didn't found anything that could causes this:
$ echo $PATH
{PATH}:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl:Warning: PHP Startup: Unable to load dynamic library 'redis.so' (tried: /home/aledsz/.asdf/installs/php/8.1.9/lib/php/extensions/no-debug-non-zts-20210902/redis.so (/home/aledsz/.asdf/installs/php/8.1.9/lib/php/extensions/no-debug-non-zts-20210902/redis.so: cannot open shared object file: No such file or directory), /home/aledsz/.asdf/installs/php/8.1.9/lib/php/extensions/no-debug-non-zts-20210902/redis.so.so (/home/aledsz/.asdf/installs/php/8.1.9/lib/php/extensions/no-debug-non-zts-20210902/redis.so.so: No such file or directory)) in Unknown on line 0
Warning: Unable to load dynamic library 'imagick.so' (tried: /home/aledsz/.asdf/installs/php/8.1.9/lib/php/extensions/no-debug-non-zts-20210902/imagick.so (/home/aledsz/.asdf/installs/php/8.1.9/lib/php/extensions/no-debug-non-zts-20210902/imagick.so: No such file or directory), /home/aledsz/.asdf/installs/php/8.1.9/lib/php/extensions/no-debug-non-zts-20210902/imagick.so.so (/home/aledsz/.asdf/installs/php/8.1.9/lib/php/extensions/no-debug-non-zts-20210902/imagick.so.so: No such file or directory)) in Unknown on line 0
/home/aledsz/.asdf/installs/php/8.1.9/.composer/vendor/bin
Currently I'm using Oh-My-Zsh and I removed the asdf plugin and it works flawlessly.
Then I digged into asdf plugin and it just checks the folder and loads the asdf.sh and competions/asdf.bash.
Since it shows PHP errors, I guess it's from asdf but I'm not so sure. I'm using PHP 8.1.9 and it's making it worse to work with PATH which I can't use it directly from other programming language and I'm trying to not uninstall PHP because I still need to use with my own stuff.
My php.ini only adds xdebug and it's configurations, I don't even have these extensions installed from pecl.
So, do anyone have idea what's going on? I'm not used to asdf code, so I'll need some help/context here.
Which option did you choose for loading asdf? Also your PHP installation seems to be broken, it would be better for you to uninstall and install again:
asdf uninstall php <version>
Which option did you choose for loading asdf?
I've use the default asdf loading, installed the php plugin and then the php 8.1.9.
Also your PHP installation seems to be broken, it would be better for you to uninstall and install again:
asdf uninstall php <version>
I did a long time ago because it was being a pain in the ass to compile other stuff