google / fully-homomorphic-encryption

An FHE compiler for C++
Apache License 2.0
3.52k stars 256 forks source link

Docker with jazzy Ubuntu not compiling (FIX) #33

Closed nurev-dev closed 1 year ago

nurev-dev commented 1 year ago

The Ubuntu Jazzy docker file fails to build. The reason why is that python2.x is not in the new versions of Ubuntu... only python3. This build requires python2 in addition to python3.

Here's a working fix for the docker file (TESTED):

after line 26 add: python2 \

then add this line after the end of the apt-get command (add this before install deps required section): RUN ln -s /usr/bin/python2 /usr/bin/python

j2kun commented 1 year ago

Thanks for the report! I messed up in my initial commit and forgot to add python-is-python3 to the apt-install command in that dockerfile, which does the symlinking automatically. I have an internal change ready to go and it just needs review.

j2kun commented 1 year ago

By the way, @nurev-dev if you want to paste in source code without hitting accidental markdown formatting, you can enclose it in "triple backtick" fences

See https://www.markdownguide.org/extended-syntax/#fenced-code-blocks

Example:

# Install required packages.
RUN apt-get update && apt-get install -y \
  gcc \
  git \
  libtinfo5 \
  python3 \
  python3-pip \
  python-is-python3 \
  autoconf \
  libreadline-dev \
  flex \
  bison \
  wget