Skip to content

Install issue on Linux Ubuntu #71

@IanQS

Description

@IanQS

Hi all! These are the exact commands I'm running:

Installation

Installing Openfhe-dev

git clone git@github.com:openfheorg/openfhe-development.git
cd openfhe-development
mkdir build
cd build
make -j N  # number of processors - 26 in my case
sudo make install

I then verify that it is installed by running

cd bin/examples/pke
./simple-real-numbers

Installing OpenFHE-python (within a conda env)

git clone git@github.com:openfheorg/openfhe-python.git
cd openfhe-python
mkdir build
cd build
cmake .. -DPYTHON_EXECUTABLE_PATH=$CONDA_PREFIX/bin/python
make -j 26
sudo make install

then, within build, I run

mkdir lib
mv *.so lib
conda develop lib

I have verified that Openfhe-python's SO files have been "linked"

import sys
for p in sys.path:
    print(p)

which outputs

/home/iq/anaconda3/lib/python311.zip
/home/iq/anaconda3/lib/python3.11
/home/iq/anaconda3/lib/python3.11/lib-dynload
/home/iq/anaconda3/lib/python3.11/site-packages
/home/iq/openfhe-python/build/lib

The issue

When I run something like python function-evaluation.py I see

File "/home/iq/openfhe-python/examples/pke/function-evaluation.py", line 1, in <module>
    from openfhe import *
ImportError: libOPENFHEpke.so.1: cannot open shared object file: No such file or directory

It's not clear to me what the issue is and if it is an issue on the OpenFHE-dev end. I don't think it is, just because I managed to run an example specifically a PKE example


Additional Information

Distributor ID: Ubuntu
Description:    Ubuntu 22.04.3 LTS
Release:        22.04
Codename:       jammy

Metadata

Metadata

Assignees

Labels

documentationImprovements or additions to documentation

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions