PALISADE开源库环境安装
创始人
2024-10-22 06:08:24
0

linux系统安装

1、安装cmake3.21.3(有版本要求)

cd /tmp  wget https://github.com/Kitware/CMake/releases/download/v3.21.3/cmake-3.21.3.tar.gz  tar -zxvf cmake-3.21.3.tar.gz

添加环境变量:

export PATH=/tmp/cmake-3.21.3/bin:$PATH

继续执行

cd cmake-3.21.3  ./bootstrap  make  sudo make install

2、可能需要的安装工具

sudo yum groupinstall "Development Tools"  sudo yum install openssl-devel

3、将下载的项目移动到指定目录,这里我创建的目录如下/opt/postgraduate

或者拉取项目

​git clone PALISADE / PALISADE Release · GitLab  git submodule sync --recursive  git submodule update --init  --recursive ​

4、进入如下目录

cd /opt/postgraduate/palisade-release/

接着执行

make

执行make指令后按他的指令继续执行如下操作

mkdir build  cd build  cmake ..

继续执行

make

可能遇到问题:

继续执行

make install

5、测试运行

make testall  bin/examples/pke/simple-integers

测试成功

windows系统安装

下载安装MSYS2: MSYS2

官方教程很详细了,按如下操作即可

1.Download the installer: msys2-x86_64-20240507.exe

Optional) For more information on the installer, like command line options, or how to verify the checksum and signature of the installer, see the installer guide.

2.Run the installer. Installing MSYS2 requires 64 bit Windows 10 or newer.

3.Enter your desired Installation Folder (short ASCII-only path on a NTFS volume, no accents, no spaces, no symlinks, no subst or network drives, no FAT).

4.When done, click Finish.

5.Now MSYS2 is ready for you and a terminal for the UCRT64 environment will launch.

6.You will probably want to install some tools like the mingw-w64 GCC to start compiling projects. Run the following command:

$ pacman -S mingw-w64-ucrt-x86_64-gcc

7.Now you can call gcc to build software for Windows.

$ gcc --version gcc.exe (Rev2, Built by MSYS2 project) 13.2.0

按官方指令安装结束

点击exe文件,执行如下指令

pacman -Syu  pacman -S mingw-w64-x86_64-gcc  pacman -S mingw-w64-x86_64-cmake

添加环境变量

export PATH=/mingw64/bin:$PATH

继续执行

pacman -S autoconf  pacman -S make  pacman -S git

创建文件夹

mkdir palisade-release

进入目录

cd palisade-release/

执行如下

​ ///  git clone https://gitlab.com/palisade/palisade-development.git   mkdir build  cd build  cmake ..   git submodule update --init –recursive   cmake ..   make  /// ​

上面可能拉取错误

我这里直接把我本地拉取好的项目复制到软件中,复制目录到E:\msys2\home\liuze05

执行

mkdir build  cd build  cmake ..    make

以管理员身份打开软件

make install

测试

make testall  bin/examples/pke/simple-integers

报错

执行如下指令解决(环境变量引起的问题)

export PATH=/home/liuze05/palisade-release/build/lib:$PATH

再次执行如下指令

make testall  bin/examples/pke/simple-integers

测试成功

相关内容

热门资讯

绝活儿辅助!广西老友玩老是输怎... 绝活儿辅助!广西老友玩老是输怎么办(辅助挂)都是真的有辅助app(讲解有挂)在进入广西老友玩老是输怎...
法门辅助!福建13水插件(辅助... 法门辅助!福建13水插件(辅助挂)一贯是有辅助技巧(有挂技术)1、许多玩家不知道福建13水插件辅助怎...
办法辅助!潮友会app下载官方... 办法辅助!潮友会app下载官方辅助器(辅助挂)真是真的是有辅助app(有挂教程)该软件可以轻松地帮助...
妙招辅助!邯郸胡乐挂辅助(辅助... 妙招辅助!邯郸胡乐挂辅助(辅助挂)好像存在有辅助插件(有挂方略)1、上手简单,内置详细流程视频教学,...
教程书辅助!乐酷辅助(辅助挂)... 教程书辅助!乐酷辅助(辅助挂)其实存在有辅助脚本(有挂细节)乐酷辅助能透视中分为三种模型:乐酷辅助模...
学习辅助!决战卡五星辅助(辅助... 学习辅助!决战卡五星辅助(辅助挂)本来真的是有辅助软件(有人有挂)学习辅助!决战卡五星辅助(辅助挂)...
绝活辅助!边锋嘉兴麻将辅助器(... 绝活辅助!边锋嘉兴麻将辅助器(辅助挂)真是真的有辅助神器(新版有挂)1、边锋嘉兴麻将辅助器公共底牌简...
举措辅助!枫叶辅助器(辅助挂)... 举措辅助!枫叶辅助器(辅助挂)本来存在有辅助技巧(竟然有挂)1、下载好枫叶辅助器正确养号方法之后点击...
讲义辅助!点我达辅助(辅助挂)... 讲义辅助!点我达辅助(辅助挂)一直存在有辅助技巧(有人有挂)1、点我达辅助辅助器安装包、点我达辅助辅...
模块辅助!威信茶馆有挂的吗(辅... 模块辅助!威信茶馆有挂的吗(辅助挂)一直真的是有辅助脚本(揭秘有挂)1、玩家可以在威信茶馆有挂的吗线...