Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PHP messing with my PATH #136

Open
aleDsz opened this issue Sep 16, 2022 · 2 comments
Open

PHP messing with my PATH #136

aleDsz opened this issue Sep 16, 2022 · 2 comments

Comments

@aleDsz
Copy link

aleDsz commented Sep 16, 2022

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.

@brunofunnie
Copy link

brunofunnie commented Nov 26, 2022

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>

@aleDsz
Copy link
Author

aleDsz commented Dec 2, 2022

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants