PEA软件可用于实时精密卫星钟差估计,精密卫星定轨,精密单点定位,电离层建模以及DCB估计等。
Ginan开发人员推荐使用Ubuntu18.04或Ubuntu20.04搭建,本文使用Ubuntu20.04系统
PEA安装参考博客:https://blog.sciencenet.cn/blog-3486472-1337639.html
GitHub下载Ginan安装包
Ginan安装的依赖项:(官网推荐)
修改源sources.list
输入命令:sudo gedit /etc/apt/sources.list打开sources.list
在末尾加入阿里源:
deb http://mirrors.aliyun.com/ubuntu/ bionic main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ bionic-security main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ bionic-updates main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ bionic-proposed main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ bionic-backports main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-security main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-updates main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-proposed main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-backports main restricted universe multiverse
随后加入:
deb http://security.ubuntu.com/ubuntu bionic-security main (这个是用于下载libssl1.0-dev)
保存退出,输入命令:
sudo apt update
{(若出现没有公钥。。。。。。。。。)输入命令sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 3B4FE6ACC0B21F32导入公钥3B4FE6ACC0B21F32是缺少的密钥,缺少什么就下什么!
随后再次输入
sudo apt update}
(...等待)
sudo apt upgrade -y
阿里源最近好像有些不稳定,有更好的还望大家留言推荐
1、更新Ubuntu系统并安装gcc、gfortran、git、openblas等;
sudo apt install -y git gobjc gobjc++ gfortran libopenblas-dev openssl curl net-tools openssh-server cmake make libssl1.0-dev wget sudo python3 software-properties-common
2、安装libssl1.0-dev依赖库
输入命令:
sudo apt update && apt-cache policy libssl1.0-dev
sudo apt-get install libssl1.0-dev
安装完成,输入命令查看是否安装完成:dpkg -l *libssl*,下图表示安装完成。
3、安装gcc -9,g++ -9(Ginan推荐9版本)
输入命令:
sudo add-apt-repository ppa:ubuntu-toolchain-r/test -y
sudo apt update
sudo apt install -y gcc-9 g++-9
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-9 51
sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-9 51
输入命令 gcc -v和g++ -v 查看版本,gcc和g++版本均为9.5.0
4、安装openssl-devel依赖库
sudo apt-get install openssl
创建一个临时目录结构,使依赖项位于其中,它可以在安装过程完成后删除:
sudo mkdir -p /opt/tmp
5、YAML
安装YAML库,输入命令
cd /opt/tmp
sudo git clone https://github.com/jbeder/yaml-cpp.git(若下载不成功可自行在GitHub下载安装包)
如若解压:sudo unzip ./yaml-cpp.zip
cd yaml-cpp
sudo mkdir cmake-build && cd cmake-build
sudo cmake .. -DCMAKE\_INSTALL\_PREFIX=/usr/local/ -DYAML\_CPP\_BUILD\_TESTS=OFF
sudo make install yaml-cpp
cd ../..
sudo rm -fr yaml-cpp
6、Boost
cd
/opt/tmp/
sudo wget -c https://boostorg.jfrog.io/artifactory/main/release/1.73.0/source/boost_1_73_0.tar.gz
sudo tar -xf boost_1_73_0.tar.gz
cd boost_1_73_0/
sudo ./bootstrap.sh
sudo ./b2 install
(较长等待...)
cd ../..
sudo rm -rf boost_1_73_0 boost_1_73_0.tar.gz
7、Eigen3
cd
/opt/tmp/
sudo git clone https://gitlab.com/libeigen/eigen.git
cd eigen
sudo git checkout 3.4.0
sudo mkdir cmake-build
cd cmake-build
sudo cmake ..
sudo make install
cd ../..
sudo rm -rf eigen
cd /opt/tmp
sudo wget https://github.com/mongodb/mongo-c-driver/releases/download/1.17.1/mongo-c-driver-1.17.1.tar.gz(也可直接在该网站下载)
sudo tar -xf mongo-c-driver-1.17.1.tar.gz
cd mongo-c-driver-1.17.1/
sudo mkdir cmake-build
cd cmake-build/
sudo cmake -DENABLE_AUTOMATIC_INIT_AND_CLEANUP=OFF -DENABLE_EXAMPLES=OFF ../
sudo cmake --build .
sudo cmake --build . --target install
cd ../..
sudo curl -OL https://github.com/mongodb/mongo-cxx-driver/releases/download/r3.6.0/mongo-cxx-driver-r3.6.0.tar.gz
(也可直接在该网站下载)
sudo tar -xf mongo-cxx-driver-r3.6.0.tar.gz
cd mongo-cxx-driver-r3.6.0/build
sudo cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr/local -DENABLE_EXAMPLES=OFF ../
sudo cmake --build . --target EP_mnmlstc_core(需要较好的网络)
sudo cmake --build .
sudo cmake --build . --target install
cd ../..
sudo rm -rf mongo-c-driver-1.17.1 mongo-c-driver-1.17.1.tar.gz mongo-cxx-driver-r3.6.0 mongo-cxx-driver-r3.6.0.tar.gz
在安装mongocxx时,cmake --build.出现了如下错误:
该错误应该是和glibc版本有关(好像是和Ubuntu有关),当定义_SC_SIGSTKSZ_SOURCE或_GNU_SOURCE时,MINSIGSTKSZ和SIGSTKSZ在Linux上不再是常数。可以更换glibc版本或者Ubuntu版本,或者在sigStackSize
的定义之前添加以下内容:(catch.hpp)
#undef MINSIGSTKSZ
#define MINSIGSTKSZ 16384
9、netcdf4 (OTL package)
sudo apt -y install libnetcdf-dev libnetcdf-c++4-dev
10、安装Ginan-PEA
sudo cd /opt
git clone https://github.com/GeoscienceAustralia/ginan.git(或者github.com下载后拷贝到/opt)
cd ginan
sudo mkdir -p src/build
cd src/build
sudo cmake ../(或者sudo
cmake ../ -DOPTIMISATION=FALSE
)
sudo make (PEA和POD)
或者
sudo make pea
sudo make pod
检查PEA是否安装
cd ../../examples
../bin/pea --help
到此PEA已安装完成!
仅记录科研中的经历,有问题请大家批评指正,大家遇到困难欢迎大家留言。
参考:
https://blog.csdn.net/m0_46577050/article/details/122978664
https://www.saoniuhuo.com/question/detail-2133174.html
安装libssl-dev失败的另一种方法(我用这个没成功):
https://blog.csdn.net/Wang20122013/article/details/124836398?spm=1001.2101.3001.6650.10&utm_medium=distribute.pc_relevant.none-task-blog-2%7Edefault%7EBlogCommendFromBaidu%7ERate-10-124836398-blog-110366597.pc_relevant_default&depth_1-utm_source=distribute.pc_relevant.none-task-blog-2%7Edefault%7EBlogCommendFromBaidu%7ERate-10-124836398-blog-110366597.pc_relevant_default&utm_relevant_index=10
https://jingyan.baidu.com/article/8065f87f480a84233024985c.html
https://blog.csdn.net/L021216/article/details/123126368
https://www.feiniaomy.com/post/1043.html
https://www.cnblogs.com/zhtzyh2012/p/16410705.html