facebook / CacheLib

Pluggable in-process caching engine to build and scale high performance services
https://www.cachelib.org
Apache License 2.0
1.18k stars 254 forks source link

Running simple-cache-example gives an error, flag 'v' was defined more than once #309

Open YuqingXiong opened 4 months ago

YuqingXiong commented 4 months ago

Describe the bug when i run the example "simple_cache", i find an error "ERROR: flag 'v' was defined more than once"

To Reproduce Steps to reproduce the behavior:

  1. cd CacheLib/examples/simple_cache
  2. ./build.sh
  3. ./build/simple-cache-example
  4. See error

Expected behavior i want to run this example.

Screenshots image

Desktop (please complete the following information):

therealgymmy commented 4 months ago

can you share more details regarding your linux setup? Which ubuntu version is this?

guaguastandup commented 4 months ago

same question, same cachelib tag, I am using ubuntu22.04

can you share more details regarding your linux setup? Which ubuntu version is this?

YuqingXiong commented 4 months ago

same question, same cachelib tag, I am using ubuntu22.04

can you share more details regarding your linux setup? Which ubuntu version is this?

me too. I am using Ubuntu 22.04.3 LTS

YuqingXiong commented 4 months ago

In fact, I have an inelegant solution.

I just commented the error output code, like this:

image

Then, return back Cachelib directory, and remove all build files: rm -rf ./build-*

Finally, again to build, but not use git: ./contrib/build.sh -d -j -v -S

This error will not apper, but I think it might cause other bugs in the future.

YuqingXiong commented 4 months ago

can you share more details regarding your linux setup? Which ubuntu version is this?

Of course, this is my system information. I use the Ubuntu 22.04.3 LTS and g++ (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0

image

MaoZiming commented 3 months ago

Same problem