question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

RE2 - installation error

See original GitHub issue

Google RE2 was recently added as a dependency in https://github.com/zulip/zulip/commit/9f2df658f020acae20ea5be8a55599e1a2428317 . On AARCH 64 with Ubuntu 20.04, get a failed build with he following output:

 _re2.cc: In function ‘std::vector<int> re2_python::RE2ProgramFanoutShim(const re2::RE2&)’:
    _re2.cc:91:22: error: cannot convert ‘std::vector<int>*’ to ‘std::map<int, int>*’

similar to https://github.com/google/re2/issues/271

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
bkmgitcommented, Oct 16, 2021

The installation steps that worked for me on Oracle Cloud are:

  1. Launch an Ampere instance with 1 core and 6 GB of RAM
  2. Get the public IP address of the instance and point a domain name to it
  3. Make sure ports 22, 80 and 443 are open in the Oracle Virtual cloud network
  4. Log in to your Ampere instance by SSH
  5. ssh -i PATH_TO_SSH_KEY ubuntu@ip.address
  6. $ sudo apt-get update
  7. $ sudo apt-get install -y python3-pybind11
  8. $ cd $(mktemp -d)
  9. $ curl -fLO https://download.zulip.com/server/zulip-server-latest.tar.gz
  10. $ tar -xf zulip-server-latest.tar.gz
  11. $ sudo -s
  12. $ iptables -I INPUT -p tcp -m tcp --dport 80 -j ACCEPT
  13. $ iptables -I INPUT -p tcp -m tcp --dport 443 -j ACCEPT
  14. $ wget https://github.com/google/re2/archive/refs/tags/2021-09-01.tar.gz
  15. $ tar -xvf 2021-09-01.tar.gz
  16. $ cd re2-2021-09-01/
  17. $ make
  18. $ make test
  19. $ make install
  20. $ make testinstall
  21. $ cd …
  22. $ ./zulip-server-4.7/scripts/setup/install --certbot --email=my@email.address --hostname=chat.domain.name
0reactions
bkmgitcommented, Nov 6, 2021

Thanks for the fix.

Read more comments on GitHub >

github_iconTop Results From Across the Web

pip install re2 gives an error - python - Stack Overflow
If you are on ubuntu, sudo apt-get install libre2-dev is required prior to calling pip install re2.
Read more >
Solved: Error while installing re2 - Alteryx Community
Hi Team,. While installing re2, I'm getting below error. Building wheels for collected packages: re2 Building wheel for re2 (setup.py): ...
Read more >
Re2 installation failing in my local(no member named ...
Hi Team,. Tried installing re2 in my local. Failed because of some error. Here is the stack trace. > pip install re2.
Read more >
Fix Resident Evil 2 RE2.exe Fatal Application Exit Error
Chapters. View all · Clean Install Graphics Card Driver · Clean Install Graphics Card Driver · Clean Install Graphics Card Driver · Run...
Read more >
The google-re2 Python package fails to install when pybind11 ...
The google-re2 Python package fails to install when pybind11 is installed as a python package in virtualenv. #264.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found