下载:https://github.com/google/googletest/archive/release-1.8.1.tar.gz
github:https://github.com/google/googletest
tar -xzvf googletest-release-1.8.1.tar.gz
cd googletest-master
cmake .
sudo make
sudo make install
下载:https://github.com/google/glog/archive/v0.3.3.tar.gz
github:https://github.com/google/googletest
tar glog-0.3.3.tar.gz
./configure
sudo make
sudo make instalk
下载:https://github.com/gflags/gflags/archive/v2.2.2.tar.gz
github:https://github.com/gflags/gflags
tar -xzvf gflags-2.2.2.tar.gz
cmake -DCMAKE_INSTALL_PREFIX=/usr/local -DBUILD_SHARED_LIBS=ON
sudo make
sudo make install
下载:https://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html
tar -xzvf jdk-8u191-linux-x64.tar.gz
sudo mv jdk1.8.0_191 /usr/local
sudo vim /etc/profile
把以下写入文件最后
export JAVA_HOME=/usr/local/jdk1.8.0_191
export JRE_HOME=${JAVA_HOME}/jre
export CLASSPATH=.:${JAVA_HOME}/lib:${JRE_HOME}/lib:$CLASSPATH
export PATH=${JAVA_HOME}/bin:$PATH/bin:$JRE_HOME
保存退出,输入
source /etc/profile
验证,终端输入java -version
如下代表成功
java version "1.8.0_191"
Java(TM) SE Runtime Environment (build 1.8.0_191-b12)
Java HotSpot(TM) 64-Bit Server VM (build 25.191-b12, mixed mode)
下载:https://github.com/protocolbuffers/protobuf/releases/download/v2.6.1/protobuf-2.6.1.tar.gz
github::https://github.com/protocolbuffers/protobuf
tar -xzvf protobuf-2.6.1.tar.gz
cd protobuf-2.6.1
./autogen.sh
./configure --prefix=/usr/local
sudo make
sudo make install
报错:
protoc: error while loading shared libraries: libprotoc.so.9: cannot open shared object file: No such file or directory
解决办法:
export LD_LIBRARY_PATH=/usr/local/lib
输入protoc --version验证
~$ protoc --version
libprotoc 2.6.1
下载:https://dl.bintray.com/boostorg/release/1.69.0/source/boost_1_69_0.tar.gz
sudo apt install mpi-default-dev #安装mpi库
sudo apt install libicu-dev #支持正则表达式的UNICODE字符集
sudo apt install python-dev #需要python的话
sudo apt install libbz2-dev #如果编译出现错误:bzlib.h: No such file or directory
tar -xzvf boost_1_69_0.tar.gz
cd boost_1_69_0
./bootstrap.sh
sudo ./b2 install --prefix=/usr/local
安装路径为/usr/local/share
下载链接:https://github.com/apache/mesos/archive/1.3.2.tar.gz
github:https://github.com/apache/mesos
sudo apt-get install -y tar wget git
sudo apt-get install -y autoconf libtool
sudo apt-get install -y openjdk-8-jdk
sudo apt-get -y install build-essential python-dev python-six python-virtualenv libcurl4-nss-dev libsasl2-dev libsasl2-modules maven libapr1-dev libsvn-dev zlib1g-dev iputils-ping
tar -xzvf mesos-1.3.2.tar.gz
cd mesos-1.3.2
./bootstrap
mkdir build
cd build
../configure --prefix=XXXX //最好指定路径
sudo make
sudo make install
下载:https://downloads.lightbend.com/scala/2.12.8/scala-2.12.8.tgz
github:https://github.com/scala/scala
tar -xzvf scala-2.12.8.tgz
sudo mv scala-2.12.8 scala #重命名
mv /download/scalapath /usr/local/share
vim /etc/profile
#添加一行
export PATH="$PATH:/usr/local/share/scala/bin"
source /etc/profile
安装路径为/usr/local/share
,终端输入scala
使用
Welcome to Scala 2.12.8 (Java HotSpot(TM) 64-Bit Server VM, Java 1.8.0_191).
Type in expressions for evaluation. Or try :help.
scala>
下载:https://github.com/Kitware/CMake/releases/download/v3.13.2/cmake-3.13.2.tar.gz
tar -xzvf cmake-3.13.2.tar.gz
./configure --prefix=/usr/local
sudo make
sudo make install
安装路径为/usr/local/share
,输入cmake -version
验证版本
~/resource/enviorment-tool/cmake-3.13.2$ cmake -version
cmake version 3.13.2
CMake suite maintained and supported by Kitware (kitware.com/cmake).
安装的过程较慢,可以尝试更换电脑上的源提升下载速度
echo "deb https://dl.bintray.com/sbt/debian /" | sudo tee -a /etc/apt/sources.list.d/sbt.list
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 2EE0EA64E40A89B84B2DF73499E82A75642AC823
sudo apt-get update
sudo apt-get install sbt
终端输入sbt
使用