Protobuf-PHP icon indicating copy to clipboard operation
Protobuf-PHP copied to clipboard

protoc-gen-php: command not found

Open alekseevpg opened this issue 10 years ago • 4 comments

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 avatar Jan 21 '15 14:01 alekseevpg

@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.

parkr avatar Dec 01 '15 23:12 parkr

protoc-gen-php is under vendor/bin folder, you should use full path of protoc-gen-php.php

nevernet avatar Oct 25 '16 12:10 nevernet

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 avatar Mar 06 '18 16:03 electricBonfire

@electricBonfire try https://github.com/grpc/grpc/issues/8547

nevernet avatar Apr 26 '18 09:04 nevernet