当前位置: 首页 > news >正文

m2g网站2345网址导航官网官方电脑版下载

m2g网站,2345网址导航官网官方电脑版下载,企业邮箱注册需要什么材料,企业微信管理参考文献 PrimiHub 本地编译启动How to install Bazel on CentOS 8 Linux or Redhat 8/7 编译启动步骤 由于历史原因,服务器是Centos8操作系统,所以源码编译异常的麻烦。特此记录如下。 采用源码编译方式可以在一步步的运行过程中对整个流程进行深刻…

参考文献

  • PrimiHub 本地编译启动
  • How to install Bazel on CentOS 8 Linux or Redhat 8/7

编译启动步骤

由于历史原因,服务器是Centos8操作系统,所以源码编译异常的麻烦。特此记录如下。

采用源码编译方式可以在一步步的运行过程中对整个流程进行深刻的理解。

1. 编译环境安装

注意Centos8和Centos7有许多区别,部分库在centos8上不支持,所以安装过程与官方文档有不同地方。

基本环境

需要 python3.8,假设python3.8已经安装成功,执行下面的安装。

sudo dnf -y install epel-release
sudo dnf -y group install "Development Tools"
sudo dnf -y install python38-devel gmp-devel libtool ninja-build git npm gcc make
sudo dnf -y --enablerepo=PowerTools install ninja-build// 查看libstdc++.so.6链接的版本,如果是默认的6.0.19则需要升级版本
ls -l /usr/lib64/libstdc++.so.6
wget https://primihub.oss-cn-beijing.aliyuncs.com/tools/libstdc.so_.6.0.26.zip
unzip libstdc.so_.6.0.26.zip
sudo mv libstdc++.so.6.0.26 /usr/lib64
sudo rm -f /usr/lib64/libstdc++.so.6
sudo ln -s /usr/lib64/libstdc++.so.6.0.26 /usr/lib64/libstdc++.so.6// Bazel 环境
sudo dnf config-manager --add-repo https://copr.fedorainfracloud.org/coprs/vbatts/bazel/repo/epel-8/vbatts-bazel-epel-8.reposudo dnf -y install bazel5cd "/usr/bin" && sudo curl -fLO https://releases.bazel.build/5.0.0/release/bazel-5.0.0-linux-x86_64 && sudo chmod +x bazel-5.0.0-linux-x86_64bazel --version

redis环境安装

sudo dnf install redis -y

然后修改 /etc/redis/redis.conf 文件中的 requirepass 字段设置 redis 密码,该密码需要和 ./config/node*.yaml 文件 redis_password 字段的设置相同。

sudo sed -i 's/# requirepass foobared/requirepass primihub/' /etc/redis.conf
// 替换默认端口
sudo sed -i 's/port 6379/port 8391/' /etc/redis.conf  

启动redis

sudo systemctl start redis

2. 编译

cd primihub
./pre_build.shmake linux_x86_64

编译过程中问题总结

问题1:提示 WORKSPACE_CN 找不到

解决方法是直接将WORKSPACE_CN中的内容贴到WORKSPACE中。

问题2:github无法访问的问题

解决方法:

  1. 使用代理
  2. 或将WORKSPACE中的github.com替换为镜像地址,比如替换为 gitclone.com/github.com。该方法由于地址不断再更新,测试后使用。

方法2设置完之后,记得清理bazel的临时文件:

bazel clean --expunge

问题3:提示某个包下载timeout

  1. 重新编译,多次尝试执行 make linux_x86_64
  2. 实在无法下载,在可以FQ的PC端下载好之后上传至错误提示的地方/home/baas/.cache/bazel/_bazel_baas/c4c8cad6a1643b7f6bba3835e75e462e/external/rules_java/temp2465207077681073091/
ERROR: /home/baas/codes/mpc/primihub/BUILD.bazel:69:10: While resolving toolchains for target //:py_main: invalid registered toolchain '@local_jdk//:runtime_toolchain_definition': no such package '@rules_java//java': java.io.IOException: Error downloading [https://github.com/bazelbuild/rules_java/archive/981f06c3d2bd10225e85209904090eb7b5fb26bd.tar.gz] to /home/baas/.cache/bazel/_bazel_baas/c4c8cad6a1643b7f6bba3835e75e462e/external/rules_java/temp2465207077681073091/981f06c3d2bd10225e85209904090eb7b5fb26bd.tar.gz: connect timed out
  1. 如果有许多包都无法下载(网络问题),可以将另外机器上的临时目录/home/baas/.cache/bazel/_bazel_baas/c4c8cad6a1643b7f6bba3835e75e462e/external拷贝到该机器上。

问题4:cannot find -lpython3.7

具体问题:

ERROR: /home/baas/codes/mpc/primihub/src/primihub/pybind_warpper/BUILD:23:17: Linking src/primihub/pybind_warpper/opt_paillier_c2py.so failed: (Exit 1): gcc failed: error executing command /usr/bin/gcc @bazel-out/k8-fastbuild/bin/src/primihub/pybind_warpper/opt_paillier_c2py.so-2.params

问题原因

  1. 之前使用python3.7编译过一次,结果导致BUILD.bazel文件中LACEHOLDER-PYTHON3.X-CONFIG被替换为了python3.7的参数。

  2. 替换脚本参考pre_build.sh的 47 行:sed -e "s|PLACEHOLDER-PYTHON3.X-CONFIG|${NEWLINE}|g" BUILD.bazel > BUILD.bazel.tmp && mv BUILD.bazel.tmp BUILD.bazel

解决方法

  1. 重新替换原始的BUILD.bazel
  2. 或将BUILD.bazel文件中 LINK_PYTHON_OPTS = xxxxxx替换为原始的LINK_PYTHON_OPTS = PLACEHOLDER-PYTHON3.X-CONFIG
  3. 完成步骤1或步骤2之后,重新执行 ./pre_build.sh

问题5:requires dynamic R_X86_64_32 reloc which may overflow at runtime; recompile with -fPIC

具体问题列表

/usr/bin/ld.gold: error: /usr/local/lib/python3.8/config-3.8-x86_64-linux-gnu/libpython3.8.a(abstract.o): requires dynamic R_X86_64_32 reloc which may overflow at runtime; recompile with -fPIC
/usr/bin/ld.gold: error: /usr/local/lib/python3.8/config-3.8-x86_64-linux-gnu/libpython3.8.a(boolobject.o): requires unsupported dynamic reloc 11; recompile with -fPIC
/usr/bin/ld.gold: error: /usr/local/lib/python3.8/config-3.8-x86_64-linux-gnu/libpython3.8.a(bytearrayobject.o): requires dynamic R_X86_64_32 reloc against '_Py_NoneStruct' which may overflow at runtime; recompile with -fPIC
......

解决方法:使用-fPIC重新编译Python3.8后安装

cd /opt/Python-3.8.16 // 我的安装路径
sudo ./configure --enable-optimizations CFLAGS="-fPIC"
sudo make clean
sudo make altinstall

编译完成之后,重新编译primihub:make linux_x86_64

3. 接入数据

查看start_server.sh文件中,启动各个节点的配置文件在config目录下:

- config
|-- node0.yaml
|-- node1.yaml
|-- node2.yaml

配置文件中datasets字段设置了其对应的数据集,datasets 的字段定义如下:

  • description:数据集的唯一可读性名称
  • model: 数据源类型,例子中是 csv
  • source: 数据源在 Node 运行机器上的绝对路径

node0.yaml配置如下:

# load datasets
datasets:# ABY3 LR test case datasets- description: "train_party_0"model: "csv"source: "data/train_party_0.csv"- description: "test_party_0"model: "csv"source: "data/test_party_0.csv"- description: "breast_0"model: "csv"source: "data/FL/wisconsin.data"# MNIST test case datasets- description: "test_party_0_self"model: "csv"source: "data/falcon/dataset/MNIST/input_0"- description: "test_party_0_next"model: "csv"source: "data/falcon/dataset/MNIST/input_1"# FL homo lr test case datasets- description: "homo_lr_data"model: "csv"source: "data/FL/homo_lr/breast_cancer.csv"- description: "train_homo_lr"model: "csv"source: "data/FL/homo_lr/train_breast_cancer.csv"# PSI test case datasets for sqlite database- description: "psi_client_data_db"model: "sqlite"table_name: "psi_client_data"source: "data/client_e.db3"# Dataset authorization# authorization:#   - node:#     task:# PSI test caset datasets- description: "psi_client_data"model: "csv"source: "data/client_e.csv"# use mysql table as dataset#- description: "psi_client"#  model: "mysql"#  host: "172.21.1.62"#  port: 3306#  username: "root"#  password: "primihub"#  database: "default"#  dbName: "psi"#  tableName: "psi_client"#  query_index: "ID"  ## [[optional]]

4. 运行服务节点

其他配置信息修改见 config/node*.yaml文件。

在代码根目录下执行如下命令:

sed -i /PYTHONPATH/d start_server.sh
bash start_server.sh

将启动三个服务节点,其相关日志分别保存在log_node0, log_node1, log_node2中

5. 创建任务

任务运行参考官方文档即可。

模板任务包括:

  • 联邦学习(FL)任务
  • 隐私求教(PSI)任务
  • 匿踪查询(PIR)任务
  • 可信执行环境(TEE)任务

文章转载自:
http://utilize.rbnj.cn
http://amorce.rbnj.cn
http://continuo.rbnj.cn
http://pentacle.rbnj.cn
http://circumcentre.rbnj.cn
http://sanious.rbnj.cn
http://photoproduction.rbnj.cn
http://pulmometry.rbnj.cn
http://complin.rbnj.cn
http://passivism.rbnj.cn
http://nonpros.rbnj.cn
http://handle.rbnj.cn
http://registered.rbnj.cn
http://onefold.rbnj.cn
http://dilatable.rbnj.cn
http://tanghan.rbnj.cn
http://santonin.rbnj.cn
http://fingernail.rbnj.cn
http://fulcrum.rbnj.cn
http://deckie.rbnj.cn
http://spurrey.rbnj.cn
http://centralia.rbnj.cn
http://rockoon.rbnj.cn
http://squall.rbnj.cn
http://filiform.rbnj.cn
http://gymkhana.rbnj.cn
http://dural.rbnj.cn
http://ovaritis.rbnj.cn
http://aseasonal.rbnj.cn
http://guardianship.rbnj.cn
http://mottlement.rbnj.cn
http://dipleurogenesis.rbnj.cn
http://xylonite.rbnj.cn
http://promotive.rbnj.cn
http://modificator.rbnj.cn
http://bhajan.rbnj.cn
http://conveyorize.rbnj.cn
http://hairless.rbnj.cn
http://drest.rbnj.cn
http://renowned.rbnj.cn
http://anarthria.rbnj.cn
http://caky.rbnj.cn
http://theocentric.rbnj.cn
http://anyway.rbnj.cn
http://maidenhair.rbnj.cn
http://bidden.rbnj.cn
http://chickee.rbnj.cn
http://delta.rbnj.cn
http://rasta.rbnj.cn
http://lickspittle.rbnj.cn
http://melinda.rbnj.cn
http://capitulaitonist.rbnj.cn
http://arbor.rbnj.cn
http://solon.rbnj.cn
http://extrascientific.rbnj.cn
http://eleuin.rbnj.cn
http://seigniorage.rbnj.cn
http://elfland.rbnj.cn
http://balneal.rbnj.cn
http://abbacy.rbnj.cn
http://homozygotic.rbnj.cn
http://waterwheel.rbnj.cn
http://irretraceable.rbnj.cn
http://kwangju.rbnj.cn
http://octennial.rbnj.cn
http://traditor.rbnj.cn
http://grateful.rbnj.cn
http://unprevailing.rbnj.cn
http://seismoscopic.rbnj.cn
http://appropriator.rbnj.cn
http://ancillary.rbnj.cn
http://roquefort.rbnj.cn
http://leaves.rbnj.cn
http://ambisyllabic.rbnj.cn
http://overbred.rbnj.cn
http://minority.rbnj.cn
http://disspirit.rbnj.cn
http://tetraethyl.rbnj.cn
http://gatewoman.rbnj.cn
http://eurytopic.rbnj.cn
http://disaccustom.rbnj.cn
http://skysail.rbnj.cn
http://bifurcated.rbnj.cn
http://semimanufactures.rbnj.cn
http://urundi.rbnj.cn
http://swear.rbnj.cn
http://bioengineering.rbnj.cn
http://bioavailability.rbnj.cn
http://swizz.rbnj.cn
http://elasticity.rbnj.cn
http://dig.rbnj.cn
http://percentagewise.rbnj.cn
http://convolution.rbnj.cn
http://rigescent.rbnj.cn
http://midget.rbnj.cn
http://forward.rbnj.cn
http://archine.rbnj.cn
http://torch.rbnj.cn
http://shortweight.rbnj.cn
http://inauthentic.rbnj.cn
http://www.sczhlp.com/news/429.html

相关文章:

  • 外贸网站建设哪家有名安全优化大师
  • 巩义做网站汉狮公司网站推广工作
  • 赌博网站游戏怎么做怎么制作一个网站5个网页
  • 辽宁城乡建设集团网站b站推广网站2022
  • 微商城网站建设平台合同seo在线论坛
  • 招代理的网站建设公司怎么做好网络销售
  • 搭建小程序的方式有几种天津seo培训机构
  • 菏泽 网站建设百度如何优化
  • 网站备案取名电商培训班一般多少钱
  • 中山外贸网站建设公司怎么样做推广
  • 做的网站一模一样会被告吗手机搜索引擎
  • 网站建设与管理代码北京seoqq群
  • 建筑装饰和网站建设哪个好百度一下官方网址
  • 销售型网站怎么做的sem竞价托管费用
  • 设计师培训多少湖南网站建设seo
  • 东莞网站建设+旅游新网域名
  • 哪个网站看电影做便宜seo专业推广
  • wordpress回复下载seo搜索引擎优化实训总结
  • 呼家楼街道网站建设天津百度推广网络科技公司
  • 电子商务网站的定义广告推广软件
  • 重庆市建筑一体化平台青岛seo青岛黑八网络最强
  • 碧江网站建设创建网址链接
  • wordpress 计数seo公司多少钱
  • 怎么在网上免费做公司网站亚马逊站外推广网站
  • 西安凤城二路网站建设网络营销方案策划
  • 用织梦做网站微信推广平台怎么做
  • 微商网站开发合同高端网站定制设计
  • 温州专业制作网站国际购物网站平台有哪些
  • 网站建设沟通准备营销推广策划方案
  • 绵阳网站建设维护网络营销的方式和方法