1.环境搭建
1.1.Ubuntu环境搭建
使用的物料:
-
Orcle VM VirtualBox-6.1.0-135406-Win.exe
-
ubuntu-18.04.2-desktop-amd64.iso
1.2.Ubuntu网络设置
https://www.cnblogs.com/weschen/p/7096642.html
1.3.Ubuntu全屏设置
-
方法一:https://my.oschina.net/u/2454816/blog/1788356
-
方法二:https://blog.csdn.net/fmyzc/article/details/79486111
-
在终端输入xrandr,并回车。注意要是小写英文状态下输入。
-
输入我们需要设置的分辨率,xrandr -s 1920x1440,然后回车。1920后面的是字母x。
1.4.在Ubuntu设置中文输入法
https://blog.csdn.net/nanhuaibeian/article/details/85851335
1.5.Ubuntu安装git
apt-get update -y
apt install git
查看版本:git --version
git config --global user.name "uheqiang"
git config --global user.email ["cool**123@163.com"](mailto:)
1.6.Ubuntu使用命令行安装jdk1.8
sudo apt install openjdk-8-jre-headless
sudo apt install openjdk-8-jdk-headless
等待安装好后,输入:java、javac,检验是否安装成功。
https://blog.csdn.net/hunt_er/article/details/82850509
1.7.安装idea
sudo wget [https://download.jetbrains.8686c.com/ideaIU-2019.1.3.tar.gz](https://download.jetbrains.8686c.com/ideaIU-2019.1.3.tar.gz)
设置桌面快捷方式:
[Desktop Entry]
Name=IntelliJ IDEA
Comment=IntelliJ IDEA
Exec=/home/heqiang/ideaIU/idea-IU-191.7479.19/bin/idea.sh
Icon=/home/heqiang/ideaIU/idea-IU-191.7479.19/bin/idea.png
Terminal=false
Type=Application
Categories=Developer;
修改文件权限给普通用户:chown -R heqiang idea.desktop
https://www.cnblogs.com/zaid/p/11141348.html
2.克隆代码与环境编译
2.1.No PACKAGE ‘libcrypto’** found**
sudo apt install libssl-dev
2.2.set BOOT_ROOT
sudo apt-get install libboost-all-dev
2.3.重装GMP:GMP_LIBRARY_NOTFOUND
sudo apt-get install libgmp3-dev
2.4.CMake错误No CMAKE_CXX_COMPILER could be found
sudo apt-get update
sudo apt-get install -y build-essential
https://blog.csdn.net/dddxxxx/article/details/88709549
2.5.手动复制依赖包到路径JsnarkCircuitBuilder
cp /usr/share/java/junit4.jar /home/heqiang/jsnark/JsnarkCircuitBuilder
cp /home/heqiang/bcprov-jdk15on-159.jar /home/heqiang/jsnark/JsnarkCircuitBuilder