Centos paraview cofiguration(gcc,openssl,libdrm,llvm,valgrid,python...)
QQQ 科研 34
  1. cetnos inital steps
设置中文输入法和中文界面
第一步:中文界面-通过GUI操作,在设置面板中regional and language选择中文
第二步:安装ibus-libpinyin,yum install ibus-libpinyin
第三步:启用ibus-libpinyin,首先启用ibus-setup,然后会有弹窗需要将下述加入~/.bashrc:
export GTK_IM_MODULE=ibus
export XMODIFIERS=@im=ibus
export QT_IM_MODULE=ibus
然后source ~/.bashrc,再到设置面板中regional and language选择输入源选择中文中的intelligent pinyin。就大工告成!
yum -y install xorg-x11-util-macros xorg-x11-drv* llvm-devel lm_sensors-devel wayland-protocols-devel libva-devel mesa-libgbm-devel
yum -y install openssl-libs.aarch64 bzip2 numactl libffi-devel zlib-devel.aarch64 libdrm-devel.aarch64 m4.aarch64
yum -y install glx-utils freeglut-devel libva-devel.aarch64 expat-devel.aarch64 libxshmfence-devel.aarch64 libXrandr-devel elfutils-libelf-devel expat expat-devel
yum install libpciaccess-devel libxshmfence-devel
  1. gcc make install
gcc:>7 ? 8   local-machine path wrong shouldnot  containe current path  LD_LIBRARY_PATH=:/path:/path ->>>>>>->>>>> shouldnot have : in the head!!!
sudo yum install centos-release-scl
sudo yum install devtoolset-7
scl enable devtoolset-7 bash
  1. openssl make install
openssl:?1.1
wget https://www.openssl.org/source/openssl-1.1.1a.tar.gz --no-check-certificate
tar -zxvf openssl-1.1.1a.tar.gz
cd openssl-1.1.1a/
./config --prefix=/usr/local/openssl no-zlib
make -j32
make install
rm -rf /usr/bin/openssl
rm -rf /usr/include/openssl
ln -s /usr/local/openssl/include/openssl /usr/include/openssl
ln -s /usr/local/openssl/lib/libssl.so.1.1 /usr/local/lib64/libssl.so
ln -s /usr/local/openssl/bin/openssl /usr/bin/openssl
ln -s /usr/local/openssl/lib/libcrypto.so.1.1 /usr/local/lib64/libcrypto.so
echo "/usr/local/openssl/lib" >> /etc/ld.so.conf
ldconfig -v
openssl version
  1. cmake install
cmake:3.9.2
wget https://cmake.org/files/v3.9/cmake-3.9.2.tar.gz
tar zxvf cmake-3.9.2.tar.gz
cd cmake-3.9.2
./bootstrap
make -j32
make install
  1. valgrid install
valgrind:
wget https://sourceware.org/pub/valgrind/valgrind-3.19.0.tar.bz2 --no-check-certificate
tar -xvf valgrind-3.19.0.tar.bz2
cd algrind-3.19.0
./configure
make
make install 
  1. libdrm install
libdrm: >= 2.4.110
wget https://dri.freedesktop.org/libdrm/libdrm-2.4.110.tar.xz --no-check-certificate
tar -xf libdrm-2.4.110.tar.gz
cd libdrm-2.4.110
mkdir build
cd build
meson --prefix=/usr --libdir=/usr/lib64
ninja install
  1. llvm
llvm:
wget https://github.com/llvm/llvm-project/releases/download/llvmorg-11.0.0/llvm-11.0.0.src.tar.xz
wget https://github.com/llvm/llvm-project/releases/download/llvmorg-11.0.0/clang-11.0.0.src.tar.xz
wget https://github.com/llvm/llvm-project/releases/download/llvmorg-11.0.0/compiler-rt-11.0.0.src.tar.xz
tar xf llvm-11.0.0.src.tar.xz
cd llvm-11.0.0.src/tools
cp -rf ../../clang-11.0.0.src.tar.xz ./
tar xf clang-11.0.0.src.tar.xz
mv clang-11.0.0.src clang
cd ../projects
cp -rf ../../compiler-rt-11.0.0.src.tar.xz ./
tar xf compiler-rt-11.0.0.src.tar.xz
mv compiler-rt-11.0.0.src compiler-rt
cd ..
mkdir build
cd build
cmake -G 'Unix Makefiles' -DCMAKE_BUILD_TYPE=Release -DLLVM_BUILD_LLVM_DYLIB=yes -DLLVM_ENABLE_RTTI=yes --enable-optimized --enable-targets=host-only ../
cmake --build . -- -j64
make install
echo "/usr/local/lib" >> /etc/ld.so.conf
ldconfig -v
  1. Python
python:3.7
wget https://www.python.org/ftp/python/3.7.0/Python-3.7.0.tgz --no-check-certificate
tar zxvf Python-3.7.0.tgz
cd Python-3.7.0/
./configure --prefix=/usr/local/python3.7.0 --with-openssl=/usr/local/openssl
make -j64
make install
cd /usr/bin
rm -rf python
ln -s /usr/local/python3.7.0/bin/python3 /usr/bin/python
  1. Some tips
改变某些解析命令:
vi /usr/sbin/firewalld
vi /usr/bin/firewall-cmd
vi /usr/bin/yum
vi /usr/libexec/urlgrabber-ext-down
  1. pip upgrade
pip:
python -m pip install --upgrade pip
  1. _ctypes:
_ctypes:
https://www.pythonpool.com/modulenotfounderror-no-module-named-_ctypes-solved/
yum install libffi-devel -y
  1. meson,glslang,dot
#meson:
pip install meson --trusted-host pypi.tuna.tsinghua.edu.cn

#glslanng:
git clone https://github.com/KhronosGroup/glslang.git
cd glslang
git clone https://github.com/google/googletest.git External/googletest
cd External/googletest
git checkout 0c400f67fcf305869c5fb113dd296eca266c9725
cd ../..
./update_glslang_sources.py
mkdir -p build
cd build
cmake -DCMAKE_BUILD_TYPE=Release  ..
make install
#dot
dot:
yum install graphviz
pip install pydot
  1. makp.xmlto,re2c
#mako:
pip install --trusted-host pypi.org  --trusted-host files.pythonhosted.org  mako
#xmlto:
wget https://releases.pagure.org/xmlto/xmlto-0.0.28.tar.bz2 --no-check-certificate
tar -xvf xmlto-0.0.28*
cd xmlto-0.0.28
LINKS="/usr/bin/links" \
./configure --prefix=/usr 
make
make install 
#re2c;
wget https://github.com/skvadrik/re2c/releases/download/2.0.3/re2c-2.0.3.tar.xz
tar xf re2c-2.0.3.tar.xz
cd re2c-2.0.3
autoreconf -i -W all
./configure
make -j32
make install
  1. ninja,va;grid,libdrm
#ninja:
git clone git://github.com/ninja-build/ninja.git
cd ninja
./configure.py --bootstrap
cp ninja /usr/bin/
#valgrind:
wget https://sourceware.org/pub/valgrind/valgrind-3.17.0.tar.bz2 --no-check-certificate
tar xvf valgrind-3.17.0.tar.bz2
cd valgrind-3.17.0
./configure
make
make install
#libdrm:		#####https://www.linuxfromscratch.org/blfs/view/svn/x/libdrm.html
wget https://dri.freedesktop.org/libdrm/libdrm-2.4.110.tar.xz --no-check-certificate
tar -xvf libdrm-2.4.110.tar.xz
cd libdrm-2.4.110
mkdir build
cd build
meson --prefix=/usr \
      --buildtype=release   \
      -Dudev=true           \
      -Dvalgrind=true  
ninja install
  1. wayland,waylan-protcols,mesa
#wayland-scanner:>1.20  gcc>=5.0.0
wget https://wayland.freedesktop.org/releases/wayland-1.20.0.tar.xz --no-check-certificate
tar -xvf wayland-1.20.0.tar.xz
cd wayland-1.20.0
mkdir build
cd build
meson --prefix=/usr       \
      --buildtype=release \
      -Ddocumentation=false
ninja install

#waylang-proctol:>1.24 #meson with --prefix ok! /usr/local not ok?
wget https://wayland.freedesktop.org/releases/wayland-protocols-1.25.tar.xz --no-check-certificate
tar -xvf wayland-protocols-1.25*
cd wayland-protocols-1.25
mkdir build
cd build
meson  --prefix=/usr
ninja install
#mesa:
git clone https://gitlab.freedesktop.org/mesa/mesa.git
mkdir build
cd build
meson ..
ninja install
#---------------------???
wget https://archive.mesa3d.org/mesa-22.0.0.tar.xz --no-check-certificate
tar -xvf mesa-22.0.0.tar.xz
cd mesa-22.0.0
mkdir build
cd build
meson --prefix=/usr ..
ninja install
Centos paraview cofiguration(gcc,openssl,libdrm,llvm,valgrid,python...)
https://blog.427221.xyz/archives/centosparaviewcofigurationgccopenssllibdrmllvmvalgridpython
作者
qqq
发布于
更新于
许可