提交 a665b59d 编写于 作者: L lifeng68

Doc: fix wrong dependecens on ubuntu

Signed-off-by: Nlifeng68 <lifeng68@huawei.com>
上级 d8b70e9c
...@@ -415,13 +415,17 @@ if [[ -e $CIDIR/${CONTAINER_NAME}.runflag ]]; then ...@@ -415,13 +415,17 @@ if [[ -e $CIDIR/${CONTAINER_NAME}.runflag ]]; then
for container in ${containers[@]} for container in ${containers[@]}
do do
docker rm -f $container docker rm -f $container
rm -rf /var/lib/isulad/$container
done done
rm -rf /var/lib/isulad/${CONTAINER_NAME}_cptemp
exit 0; exit 0;
else else
for container in ${containers[@]} for container in ${containers[@]}
do do
docker rm -f $container docker rm -f $container
rm -rf /var/lib/isulad/$container
done done
rm -rf /var/lib/isulad/${CONTAINER_NAME}_cptemp
echo_error "Test failed!" echo_error "Test failed!"
exit -1; exit -1;
fi fi
...@@ -13,8 +13,8 @@ echo "*****************Get iSulad GCOV data**************************" ...@@ -13,8 +13,8 @@ echo "*****************Get iSulad GCOV data**************************"
cp -r ~/build $ISULAD_COPY_PATH cp -r ~/build $ISULAD_COPY_PATH
cd $ISULAD_COPY_PATH/build/src/CMakeFiles cd $ISULAD_COPY_PATH/build/src/CMakeFiles
lcov -c -o isulad.info -d isulad.dir lcov -c -o isulad.info -d isulad.dir
lcov -c -o isula.info -d isula.dir/src lcov -c -o isula.info -d isula.dir
lcov -c -o isulad-shim.info -d isulad-shim.dir/src lcov -c -o isulad-shim.info -d isulad-shim.dir
lcov -c -o libisula.info -d libisula.dir lcov -c -o libisula.info -d libisula.dir
# Remove std files # Remove std files
......
...@@ -13,37 +13,42 @@ $ sudo yum --enablerepo='*' install -y automake autoconf libtool cmake make libc ...@@ -13,37 +13,42 @@ $ sudo yum --enablerepo='*' install -y automake autoconf libtool cmake make libc
### install basic dependencies based on Ubuntu distribution ### install basic dependencies based on Ubuntu distribution
```sh ```sh
$ sudo apt install -y libtool automake autoconf cmake make pkg-config libyajl-dev zlib1g-dev libselinux libselinux-devel libseccomp libseccomp-dev libcap-dev libsystemd-dev git libcurl4-gnutls-dev openssl libdevmapper-dev golang python3 libtar libtar-dev $ sudo apt install -y libtool automake autoconf cmake make pkg-config libyajl-dev zlib1g-dev libselinux-dev libseccomp-dev libcap-dev libsystemd-dev git libcurl4-gnutls-dev openssl libdevmapper-dev golang python3 libtar libtar-dev
``` ```
## Build and install other dependencies from source ## Build and install other dependencies from source
These dependencies may not be provided by your package manager. So you need to build them from source. These dependencies may not be provided by your package manager. So you need to build them from source.
### set ldconfig and pkgconfig
```
$ export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig:$PKG_CONFIG_PATH
$ export LD_LIBRARY_PATH=/usr/local/lib:/usr/lib:$LD_LIBRARY_PATH
$ sudo -E echo "/usr/local/lib" >> /etc/ld.so.conf
```
### build and install protobuf ### build and install protobuf
``` ```
$ git clone https://gitee.com/src-openeuler/protobuf.git $ git clone https://gitee.com/src-openeuler/protobuf.git
$ cd protobuf $ cd protobuf
$ tar -xzvf protobuf-all-3.9.0.tar.gz $ tar -xzvf protobuf-all-3.9.0.tar.gz
$ cd protobuf-3.9.0 $ cd protobuf-3.9.0
$ sudo ./autogen.sh $ sudo -E ./autogen.sh
$ sudo ./configure $ sudo -E ./configure
$ sudo make -j $(nproc) $ sudo -E make -j $(nproc)
$ sudo make install $ sudo -E make install
$ sudo ldconfig $ sudo -E ldconfig
``` ```
### build and install c-ares ### build and install c-ares
``` ```
$ sudo export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig:$PKG_CONFIG_PATH
$ git clone https://gitee.com/src-openeuler/c-ares.git $ git clone https://gitee.com/src-openeuler/c-ares.git
$ cd c-ares $ cd c-ares
$ tar -xzvf c-ares-1.15.0.tar.gz $ tar -xzvf c-ares-1.15.0.tar.gz
$ cd c-ares-1.15.0 $ cd c-ares-1.15.0
$ sudo autoreconf -if $ sudo -E autoreconf -if
$ sudo ./configure --enable-shared --disable-dependency-tracking $ sudo -E ./configure --enable-shared --disable-dependency-tracking
$ sudo make -j $(nproc) $ sudo -E make -j $(nproc)
$ sudo make install $ sudo -E make install
$ sudo ldconfig $ sudo -E ldconfig
``` ```
### build and install grpc ### build and install grpc
...@@ -52,9 +57,9 @@ $ git clone https://gitee.com/src-openeuler/grpc.git ...@@ -52,9 +57,9 @@ $ git clone https://gitee.com/src-openeuler/grpc.git
$ cd grpc $ cd grpc
$ tar -xzvf grpc-1.22.0.tar.gz $ tar -xzvf grpc-1.22.0.tar.gz
$ cd grpc-1.22.0 $ cd grpc-1.22.0
$ sudo make -j $(nproc) $ sudo -E make -j $(nproc)
$ sudo make install $ sudo -E make install
$ sudo ldconfig $ sudo -E ldconfig
``` ```
### build and install http-parser ### build and install http-parser
...@@ -63,9 +68,9 @@ $ git clone https://gitee.com/src-openeuler/http-parser.git ...@@ -63,9 +68,9 @@ $ git clone https://gitee.com/src-openeuler/http-parser.git
$ cd http-parser $ cd http-parser
$ tar -xzvf http-parser-2.9.2.tar.gz $ tar -xzvf http-parser-2.9.2.tar.gz
$ cd http-parser-2.9.2 $ cd http-parser-2.9.2
$ sudo make -j CFLAGS="-Wno-error" $ sudo -E make -j CFLAGS="-Wno-error"
$ sudo make CFLAGS="-Wno-error" install $ sudo -E make CFLAGS="-Wno-error" install
$ sudo ldconfig $ sudo -E ldconfig
``` ```
### build and install libwebsockets ### build and install libwebsockets
...@@ -77,10 +82,10 @@ $ cd libwebsockets-2.4.2 ...@@ -77,10 +82,10 @@ $ cd libwebsockets-2.4.2
$ patch -p1 -F1 -s < ../libwebsockets-fix-coredump.patch $ patch -p1 -F1 -s < ../libwebsockets-fix-coredump.patch
$ mkdir build $ mkdir build
$ cd build $ cd build
$ sudo cmake -DLWS_WITH_SSL=0 -DLWS_MAX_SMP=32 -DCMAKE_BUILD_TYPE=Debug ../ $ sudo -E cmake -DLWS_WITH_SSL=0 -DLWS_MAX_SMP=32 -DCMAKE_BUILD_TYPE=Debug ../
$ sudo make -j $(nproc) $ sudo -E make -j $(nproc)
$ sudo make install $ sudo -E make install
$ sudo ldconfig $ sudo -E ldconfig
``` ```
## Build and install specific versions dependencies from source ## Build and install specific versions dependencies from source
...@@ -93,10 +98,10 @@ $ cd lxc ...@@ -93,10 +98,10 @@ $ cd lxc
$ tar -zxf lxc-4.0.1.tar.gz $ tar -zxf lxc-4.0.1.tar.gz
$ ./apply-patches $ ./apply-patches
$ cd lxc-4.0.1 $ cd lxc-4.0.1
$ ./autogen.sh $ sudo -E ./autogen.sh
$ ./configure $ sudo -E ./configure
$ make -j $ sudo -E make -j
$ sudo make install $ sudo -E make install
``` ```
### build and install lcr ### build and install lcr
...@@ -105,9 +110,9 @@ $ git clone https://gitee.com/openeuler/lcr.git ...@@ -105,9 +110,9 @@ $ git clone https://gitee.com/openeuler/lcr.git
$ cd lcr $ cd lcr
$ mkdir build $ mkdir build
$ cd build $ cd build
$ sudo cmake .. $ sudo -E cmake ..
$ sudo make -j $ sudo -E make -j
$ sudo make install $ sudo -E make install
``` ```
### build and install clibcni ### build and install clibcni
...@@ -116,9 +121,9 @@ $ git clone https://gitee.com/openeuler/clibcni.git ...@@ -116,9 +121,9 @@ $ git clone https://gitee.com/openeuler/clibcni.git
$ cd clibcni $ cd clibcni
$ mkdir build $ mkdir build
$ cd build $ cd build
$ sudo cmake .. $ sudo -E cmake ..
$ sudo make -j $ sudo -E make -j
$ sudo make install $ sudo -E make install
``` ```
### build and install iSulad-img ### build and install iSulad-img
...@@ -126,8 +131,8 @@ $ sudo make install ...@@ -126,8 +131,8 @@ $ sudo make install
$ git clone https://gitee.com/openeuler/iSulad-img.git $ git clone https://gitee.com/openeuler/iSulad-img.git
$ cd iSulad-img $ cd iSulad-img
$ ./apply-patch $ ./apply-patch
$ make $ sudo -E make
$ sudo make install $ sudo -E make install
``` ```
### build and install iSulad ### build and install iSulad
...@@ -135,7 +140,7 @@ $ sudo make install ...@@ -135,7 +140,7 @@ $ sudo make install
$ git clone https://gitee.com/openeuler/iSulad.git $ git clone https://gitee.com/openeuler/iSulad.git
$ mkdir build $ mkdir build
$ cd build $ cd build
$ sudo cmake .. $ sudo -E cmake ..
$ sudo make $ sudo -E make
$ sudo make install $ sudo -E make install
``` ```
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册