Skip to content

Could not open input file: ./vendor/bin/protobuf #9

@xiaochuanyu

Description

@xiaochuanyu

I'm trying to generate php code for a particular .proto file following instructions from the README.
I did the following in an empty directory with addressbook.proto :

brew install php composer protoc
composer require "protobuf-php/protobuf-plugin
php ./vendor/bin/protobuf --include-descriptors -i . -o ./src/ ./addressbook.proto

I get error saying:

Could not open input file: ./vendor/bin/protobuf

In vendor/ there is only the following folders:

autoload.php  composer/  protobuf-php/

What am I missing?

Info:

$ protoc --version
libprotoc 3.2.0
$ composer --version
Composer version 1.3.2 2017-01-27 18:23:41
$ php --version
PHP 7.1.2 (cli) (built: Feb 17 2017 10:51:21) ( NTS )
Copyright (c) 1997-2017 The PHP Group
Zend Engine v3.1.0, Copyright (c) 1998-2017 Zend Technologies

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions