Skip to content
This repository was archived by the owner on Oct 24, 2019. It is now read-only.
This repository was archived by the owner on Oct 24, 2019. It is now read-only.

solution to compilation failure under ubuntu 16.04 #24

Description

@pkulijing

I failed to compile the project in an ubuntu 16.04 docker following the guideline. The following solution worked for me.

  1. apt-get install libreadline-dev && chmod 775 /root/bin/blade
  2. Edit example/threadpool/BUILD. Change
        '#pthread'
        '//src/common/:pebble_common',

to

        '//src/common/:pebble_common',
        '#pthread'
  1. There are two linkage errors with the provided protobuf libraries. Installing the official version solved the problem.
  • Download it from the official repo and install it following the guideline
  • ldconfig
  • Edit tools/compiler/pb/BUILD. Change
    deps = [
        '//src/common:pebble_common',
        '//thirdparty/protobuf:protoc',
    ]

to

    deps = [
        '#protoc',
        '#protobuf',
        '//src/common:pebble_common',
    ]

Now it compiles.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions