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

Using PHPoole CLI as non-root on Ubuntu #122

Closed
tschach opened this issue Jul 11, 2018 · 2 comments
Closed

Using PHPoole CLI as non-root on Ubuntu #122

tschach opened this issue Jul 11, 2018 · 2 comments
Labels

Comments

@tschach
Copy link

tschach commented Jul 11, 2018

Hi,

I followed the installation instructions https://github.com/PHPoole/PHPoole#installation to install the PHPoole CLI application (version 2.3.1) on my Ubuntu 16.04. As a non-root user I was not able to mv phpoole.phar /usr/local/bin/phpoole since I do not have write permissions for /usr/local/bin.
I can of course sudo mv phpoole.phar /usr/local/bin/phpoole, but then I cannot run PHPoole as a non-root user, since it again requires write permissions to /usr/local/bin and throws this error:

PHP Fatal error: Uncaught Humbug\SelfUpdate\Exception\FilesystemException: The directory is not writeable: /usr/local/bin. in phar:///usr/local/bin/phpoole/vendor/padraic/phar-updater/src/Updater.php:462

As a workaround I moved it to ~/.local/bin and added it to PATH: PATH="$HOME/.local/bin:$PATH". Maybe this could be added to the Installation guidelines? I would be glad to provide a PR, also if there is a better solution to solve this issue.

Best
Tobias

@ArnaudLigny
Copy link
Member

Hello @tschach, yes it's a known problem from The padraic/phar-updater package.

I think the best way to resolve this issue is to add your contribution to this PR: humbug/phar-updater#21.

Thank you! :-)

@tschach
Copy link
Author

tschach commented Jul 11, 2018

Thanks @Narno, will do.

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

No branches or pull requests

2 participants