Protobuf-PHP
Protobuf-PHP copied to clipboard
protoc-gen-php: command not found
After installation
pear channel-discover pear.pollinimini.net pear install drslump/Protobuf-beta
I still can't run this generator. With output like this :
sudo protoc --plugin=protoc-gen-php --php_out=./build Bank.proto protoc-gen-php: program not found or is not executable --php_out: protoc-gen-php: Plugin failed with status code 1. $ protoc-gen-php -bash: protoc-gen-php: command not found
@alekseevpg Depends on how you installed it. I added it to a composer.json file and found it in vendor/bin
once I had run composer install
.
protoc-gen-php
is under vendor/bin folder, you should use full path of protoc-gen-php.php
When I run ./vendor/bin/protoc-gen-php.php file.proto
I get the following error:
sh: protoc: command not found
Unable to find the protoc command.
Please make sure it's installed and available in the path.
@electricBonfire try https://github.com/grpc/grpc/issues/8547