当前位置: 首页 > news >正文

网站数字化建设seo的特点是什么

网站数字化建设,seo的特点是什么,品牌推广网站策划设计,南通专业网站建设近期MySQL发布了8.0.40版本,与之前的版本相比,部分依赖包发生了变化,因此重新编译一版,也便于大家参考。 1. 下载源码 选择对应的版本、选择源码、操作系统 如果没有登录或者没有MySQL官网账号,可以选择只下载 2. 进…

近期MySQL发布了8.0.40版本,与之前的版本相比,部分依赖包发生了变化,因此重新编译一版,也便于大家参考。

1.  下载源码

选择对应的版本、选择源码、操作系统

8874702349cd1552f7851a537270c5ea.png

如果没有登录或者没有MySQL官网账号,可以选择只下载

dbc3aa163cec3a42c4e232274e15a443.png

2.  进行编译

上传至机器,解压源码

 
tar -zxvf  mysql-boost-8.0.40.tar.gz

17ad8132e9e24e9f02b95e065e47a687.png

2.1  准备阶段

因为编译安装需要cmake、make等命令,因此需提前安装相关依赖包及命令

 
yum install cmake make gcc gcc-c++ autoconf bison automake \
openssl openssl-devel zlib* fiex* libxml* \
ncurses-devel libmcrypt* libtool-ltdl-devel* -y
yum install gcc-toolset-12-gcc gcc-toolset-12-gcc-c++ gcc-toolset-12-binu
tils gcc-toolset-12-annobin-annocheck gcc-toolset-12-annobin-plugin-gcc -y

由于MySQL从8.0.16版本开始,要求cmake的版本是cmake3以上,gcc版本为gcc 11.*以上版本,而且MySQL8.0.40的gcc需要12.*版本,因此如果使用Centos7等较低版本的操作系统,cmake及gcc  g++版本较低,需要升级后才能编译。相关包升级附在文末

创建相关目录

 
mkdir  /usr/local/mysql mkdir -p /data/mysql/mysql3306/{data,logs,tmp,etc}

2.2  编译检查阶段

开始编译

 
cmake -DINSTALL_PREFIX=/usr/local/mysql \
-DMYSQL_DATADIR=/data/mysql/mysql3306/data \
-DMYSQL_UNIX_ADDR=/data/mysql/mysql3306/tmp/mysql.sock \
-DMYSQL_TCP_PORT=3306 \
-DWITH_INNODB_STORAGE_ENGINE=1 -DWITH_EXTRA_CHARSETS=all \
-DFORCE_INSPECT=1 \
-DCONNECT_WITH_SYSTEMD=OFF \
-DDEFAULT_CHARSET=utf8mb4 \
-DDEFAULT_COLLATION=utf8mb4_unicode_ci \
-DWITH_BOOST=/usr/local/mysql-8.0.40/boost/boost_1_77_0  \
-DENABLE_DOWNLOADS=1

出现报错

 
-- Running cmake version 3.26.5
-- This is .el9. as found from 'rpm -qf /'
-- Looking for a devtoolset compiler
-- Using /opt/rh/gcc-toolset-12/root/usr/bin/gcc
-- Using /opt/rh/gcc-toolset-12/root/usr/bin/g++
-- CMAKE_MODULE_PATH is /usr/local/mysql-8.0.40/cmake
-- MySQL 8.0.40
-- The C compiler identification is GNU 12.2.1
-- The CXX compiler identification is GNU 12.2.1
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /opt/rh/gcc-toolset-12/root/usr/bin/gcc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /opt/rh/gcc-toolset-12/root/usr/bin/g++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Source directory /usr/local/mysql-8.0.40
-- Binary directory /usr/local/mysql-8.0.40
CMake Error at CMakeLists.txt:642 (MESSAGE):Please do not build in-source.  Out-of source builds are highlyrecommended: you can have multiple builds for the same source, and there isan easy way to do cleanup, simply remove the build directory (note that'make clean' or 'make distclean' does *not* work)You *can* force in-source build by invoking cmake with-DFORCE_INSOURCE_BUILD=1

因此加上  -DFORCE_INSOURCE_BUILD=1 再编译一次

 
cmake -DINSTALL_PREFIX=/usr/local/mysql \
-DMYSQL_DATADIR=/data/mysql/mysql3306/data \
-DMYSQL_UNIX_ADDR=/data/mysql/mysql3306/tmp/mysql.sock \
-DMYSQL_TCP_PORT=3306 \
-DWITH_INNODB_STORAGE_ENGINE=1 -DWITH_EXTRA_CHARSETS=all \
-DFORCE_INSPECT=1 \
-DCONNECT_WITH_SYSTEMD=OFF \
-DDEFAULT_CHARSET=utf8mb4 \
-DDEFAULT_COLLATION=utf8mb4_unicode_ci \
-DWITH_BOOST=/usr/local/mysql-8.0.40/boost/boost_1_77_0  \
-DENABLE_DOWNLOADS=1  \
-DFORCE_INSOURCE_BUILD=1

出现如下新报错信息

 
CMake Error at cmake/readline.cmake:93 (MESSAGE):Curses library not found.  Please install appropriate package,remove CMakeCache.txt and rerun cmake.On Debian/Ubuntu, package name is libncurses5-dev, on Redhat and derivates it is ncurses-devel.
Call Stack (most recent call first):cmake/readline.cmake:127 (FIND_CURSES)cmake/readline.cmake:221 (MYSQL_USE_BUNDLED_EDITLINE)CMakeLists.txt:1929 (MYSQL_CHECK_EDITLINE)-- Configuring incomplete, errors occurred!

b0b69dc563cfb98302d8092602bc5f58.png缺少ncurses-devel依赖包所致,按照提示进行安装

 
yum install -y  ncurses-devel*

再次编译出现新错误

341476a7c7d1dfbb9558cc1b707e1a6b.png

缺少依赖,继续补充

 
yum install libtirpc* -y

安装后依旧报错(因为我的操作系统yum安装时没有libtirpc-devel),因此我选择查询出源码里的rpc.h文件,直接软连接到 /usr/include/ ,不建议这么操作,如果可以下载对应的安装包,建议安装依赖包

find / -name rpc.h
/usr/local/mysql-8.0.40/extra/libevent/libevent-2.1.11-stable/include/event2/rpc.h
/usr/local/mysql-8.0.40/extra/tirpc/libtirpc-1.3.5/tirpc/rpc/rpc.h
/usr/local/mysql-8.0.40/plugin/group_replication/libmysqlgcs/src/bindings/xcom/xcom/windeps/sunrpc/rpc/rpc.h
ln -s /usr/local/mysql-8.0.40/extra/tirpc/libtirpc-1.3.5/tirpc/rpc/rpc.h   /usr/include/rpc/rpc.h

badecc8265957f7dadee03f4ea9a8a88.png效果确实有效,继续进行编译,出现新问题:

 
CMake Warning at cmake/rpc.cmake:30 (MESSAGE):Cannot find rpcgen executable.  You need to install the required packages:Debian/Ubuntu:              apt install rpcsvc-protoRedHat/Fedora/Oracle Linux: yum install rpcgenSuSE:                       zypper install glibc-develCall Stack (most recent call first):plugin/group_replication/libmysqlgcs/cmake/rpcgen.cmake:113 (WARN_MISSING_RPCGEN_EXECUTABLE)plugin/group_replication/libmysqlgcs/CMakeLists.txt:51 (INCLUDE)CMake Error at plugin/group_replication/libmysqlgcs/cmake/rpcgen.cmake:114 (MESSAGE):Could not find rpcgen
Call Stack (most recent call first):plugin/group_replication/libmysqlgcs/CMakeLists.txt:51 (INCLUDE)

继续安装依赖包

 
yum install glibc-devel rpcgen -y

直至build完成

80be87a39733796434eb6ad5d24f4d7d.png

2.3  进行编译及安装

开始make进行编译,为了加快点速度,我启用2个核心进行编译

 
make -j 2

6090c793f178c2b0110d95484c3e9fe0.png编译过程中出现新问题

 
/usr/include/rpc/rpc.h:38:10: fatal error: rpc/types.h: No such file or directory38 | #include <rpc/types.h>          /* some typedefs */|          ^~~~~~~~~~~~~
compilation terminated.
make[2]: *** [plugin/group_replication/libmysqlgcs/CMakeFiles/mysqlgcs.dir/build.make:99: plugin/group_replication/libmysqlgcs/CMakeFiles/mysqlgcs.dir/src/bindings/xcom/xcom/pax_msg.cc.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:14468: plugin/group_replication/libmysqlgcs/CMakeFiles/mysqlgcs.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
[ 14%] Built target oci_common_objlib
make: *** [Makefile:166: all] Error 2

eb94f1292ec02ed9e0a286af0db7ff82.png主要是前面的rpc依赖处理所致,因此将rpc目录下所有文件都拷贝进来

cp  -rp  /usr/local/mysql-8.0.40/extra/tirpc/libtirpc-1.3.5/tirpc/rpc  /usr/include/rpc
In file included from /usr/include/rpc/rpc.h:38,from /usr/local/mysql-8.0.40/plugin/group_replication/libmysqlgcs/src/bindings/xcom/xcom/pax_msg.cc:28:
/usr/include/rpc/types.h:98:10: fatal error: netconfig.h: No such file or directory98 | #include <netconfig.h>|          ^~~~~~~~~~~~~
compilation terminated.
make[2]: *** [plugin/group_replication/libmysqlgcs/CMakeFiles/mysqlgcs.dir/build.make:99: plugin/group_replication/libmysqlgcs/CMakeFiles/mysqlgcs.dir/src/bindings/xcom/xcom/pax_msg.cc.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:14468: plugin/group_replication/libmysqlgcs/CMakeFiles/mysqlgcs.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
[ 15%] Linking CXX static library librpl_channel_credentials_lib.a
[ 15%] Built target rpl_channel_credentials_lib
make: *** [Makefile:166: all] Error 2

e4509d9efbe1a7c24dabce93dfb47132.png继续复制依赖文件

cp  -rp /usr/local/mysql-8.0.40/extra/tirpc/libtirpc-1.3.5/tirpc/netconfig.h /usr/include/

ea6373e60a24645b569be9095345ebb5.png完成后顺利进行编译。出现如下信息:

2455d44e6ad75491dadf82aa6650369f.png

继续进行make  install

 
make  install

完成后结果如下

d4b62b01b2771af75a6dfb8103817da9.png

编译后MySQL内容如下

b6ab99f9458f8e71faba57db223d20e3.png

5bfcc6c424321a1fa6929330b6787f01.png

3. 安装数据库

创建数据库相关目录及配置文件

 
mkdir -p /data/mysql/mysql3306/{data,logs,tmp,etc}

配置文件按需添加放在etc/my.cnf中

创建mysql用户并将数据库目录授权

 
useradd  mysql
chown -R mysql:mysql /data/mysql/

初始化数据库

cd /usr/local/mysql
bin/mysqld --defaults-file=/data/mysql/mysql3306/etc/my.cnf   --initialize  --user=mysql

如果无异常,则在数据库日志中可以查看初始化的root@localhost账号密码

登录数据库并修改密码

6fad27732f949973859d1901df29de57.png

4.  补充部分依赖安装问题

4.1 cmake3

centos7系统中cmake预装版本较低,而编译8.0.40时需要更cmake3版本,如果无法通过yum install安装时,需要自己下载安装包进行安装

例如我在Centos7系统上用的3.15.5版本,可以通过如下命令下载

 
wget https://down.24kplus.com/linux/cmake/cmake-3.15.5.tar.gz

再解压、编译、安装即可

 
wget https://down.24kplus.com/linux/cmake/cmake-3.15.5.tar.gztar -zxvf cmake-3.15.5.tar.gz cd cmake-3.15.5./bootstrap --prefix=/usr --datadir=share/cmake --docdir=doc/cmake && makemake install

完成后检查cmake版本

4bdd36d4178ccf47a0df06fae47d0852.png

4.2  gcc

对于gcc版本,MySQL8.0.40之前gcc11即可,8.0.40版本开始需要gcc12,如果可以yum方式直接安装比较方便,如果不能则需要临时调整到高版本yum源进行安装或下载安装包进行安装。本次使用的调整yum源的方式,步骤如下:

yum install scl-utils
yum install centos-release-scl centos-release-scl-rh

修改配置文件

 
vim /etc/yum.repos.d/CentOS-SCLo-scl.repo

添加如下内容

 
[centos-sclo-sclo]
name=CentOS-7 - SCLo sclo
baseurl=https://mirrors.aliyun.com/centos-vault/7.9.2009/sclo/$basearch/sclo/
gpgcheck=1
enabled=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-SIG-SCLo[centos-sclo-sclo-testing]
name=CentOS-7 - SCLo sclo Testing
baseurl=http://buildlogs.centos.org/centos/7/sclo/$basearch/sclo/
gpgcheck=0
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-SIG-SCLo[centos-sclo-sclo-source]
name=CentOS-7 - SCLo sclo Sources
baseurl=http://vault.centos.org/centos/7/sclo/Source/sclo/
gpgcheck=1
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-SIG-SCLo[centos-sclo-sclo-debuginfo]
name=CentOS-7 - SCLo sclo Debuginfo
baseurl=http://debuginfo.centos.org/centos/7/sclo/$basearch/
gpgcheck=1
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-SIG-SCLo

再添加repo文件

 
vim /etc/yum.repos.d/CentOS-SCLo-scl-rh.repo

添加如下内容

 
# CentOS-SCLo-rh.repo
#
# Please see http://wiki.centos.org/SpecialInterestGroup/SCLo for more
# information[centos-sclo-rh]
name=CentOS-7 - SCLo rh
baseurl=https://mirrors.aliyun.com/centos-vault/7.9.2009/sclo/$basearch/rh/
# mirrorlist=http://mirrorlist.centos.org?arch=$basearch&release=7&repo=sclo-rh
gpgcheck=1
enabled=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-SIG-SCLo[centos-sclo-rh-testing]
name=CentOS-7 - SCLo rh Testing
baseurl=http://buildlogs.centos.org/centos/7/sclo/$basearch/rh/
gpgcheck=0
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-SIG-SCLo[centos-sclo-rh-source]
name=CentOS-7 - SCLo rh Sources
baseurl=http://vault.centos.org/centos/7/sclo/Source/rh/
gpgcheck=1
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-SIG-SCLo[centos-sclo-rh-debuginfo]
name=CentOS-7 - SCLo rh Debuginfo
baseurl=http://debuginfo.centos.org/centos/7/sclo/$basearch/
gpgcheck=1
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-SIG-SCLo

重建yum元数据缓存

 
yum clean all
yum makecache

安装gcc g++

yum install devtoolset-11-gcc devtoolset-11-gcc-c++ devtoolset-11-binutils -y

4.3 libtirpc-devel

由于在Roky9上直接yum方式无libtirpc-devel包,因此手动下载安装包进行安装。需要用和libtirpc版本一致的,如果不一致,则缺少依赖。因此我直接将2个包都下载并安装

wget http://rpmfind.net/linux/centos-stream/9-stream/BaseOS/x86_64/os/Packages/libtirpc-1.3.3-9.el9.x86_64.rpm
wget https://mirrors.tuna.tsinghua.edu.cn/centos-stream/9-stream/CRB/x86_64/os/Packages/libtirpc-devel-1.3.3-6.el9.x86_64.rpm
再本地安装
 
yum  localinstall libtirpc-1.3.3-9.el9.x86_64.rpm
yum localinstall -y  libtirpc-devel-1.3.3-9.el9.x86_64.rpm

4.4 重新构建及编译

由于我在构建和编译过程中有的包不存在或版本不对应,因此进行过一次重编译,及cmake时添加fresh选项

 
cmake --fresh -DINSTALL_PREFIX=/usr/local/mysql \
-DMYSQL_DATADIR=/data/mysql/mysql3306/data \
-DMYSQL_UNIX_ADDR=/data/mysql/mysql3306/tmp/mysql.sock \
-DMYSQL_TCP_PORT=3306 \
-DWITH_INNODB_STORAGE_ENGINE=1 -DWITH_EXTRA_CHARSETS=all \
-DFORCE_INSPECT=1 \
-DCONNECT_WITH_SYSTEMD=OFF \
-DDEFAULT_CHARSET=utf8mb4 \
-DDEFAULT_COLLATION=utf8mb4_unicode_ci \
-DWITH_BOOST=/usr/local/mysql-8.0.40/boost/boost_1_77_0  \
-DENABLE_DOWNLOADS=1  \
-DFORCE_INSOURCE_BUILD=1

文章转载自:
http://resolvedly.xqwq.cn
http://sister.xqwq.cn
http://glutton.xqwq.cn
http://proboscidate.xqwq.cn
http://adae.xqwq.cn
http://otorhinolaryngology.xqwq.cn
http://juliett.xqwq.cn
http://fainty.xqwq.cn
http://rostriform.xqwq.cn
http://undeceive.xqwq.cn
http://flatette.xqwq.cn
http://engross.xqwq.cn
http://jabez.xqwq.cn
http://haemagogue.xqwq.cn
http://ecbolic.xqwq.cn
http://troutling.xqwq.cn
http://telephotogram.xqwq.cn
http://reverse.xqwq.cn
http://transracial.xqwq.cn
http://ecofreak.xqwq.cn
http://intuitionalism.xqwq.cn
http://croma.xqwq.cn
http://merely.xqwq.cn
http://easement.xqwq.cn
http://multitudinism.xqwq.cn
http://whimsicality.xqwq.cn
http://further.xqwq.cn
http://subdelirium.xqwq.cn
http://handwringing.xqwq.cn
http://gannetry.xqwq.cn
http://berseem.xqwq.cn
http://maquisard.xqwq.cn
http://hetaerae.xqwq.cn
http://cosmography.xqwq.cn
http://novio.xqwq.cn
http://german.xqwq.cn
http://bighearted.xqwq.cn
http://that.xqwq.cn
http://cafe.xqwq.cn
http://owlet.xqwq.cn
http://usaf.xqwq.cn
http://threonine.xqwq.cn
http://vasostimulant.xqwq.cn
http://encapsulate.xqwq.cn
http://discontentedness.xqwq.cn
http://pectose.xqwq.cn
http://throstle.xqwq.cn
http://buddhist.xqwq.cn
http://taffetized.xqwq.cn
http://untangle.xqwq.cn
http://polyphony.xqwq.cn
http://chronopher.xqwq.cn
http://bsaa.xqwq.cn
http://implemental.xqwq.cn
http://balneal.xqwq.cn
http://epiphyllous.xqwq.cn
http://zigzag.xqwq.cn
http://coulombic.xqwq.cn
http://flocculous.xqwq.cn
http://burton.xqwq.cn
http://protractor.xqwq.cn
http://canalise.xqwq.cn
http://outpension.xqwq.cn
http://oppilate.xqwq.cn
http://nritya.xqwq.cn
http://archfiend.xqwq.cn
http://yakitori.xqwq.cn
http://transurethral.xqwq.cn
http://iphone.xqwq.cn
http://plimsolls.xqwq.cn
http://unwalkable.xqwq.cn
http://stanchion.xqwq.cn
http://announciator.xqwq.cn
http://elysium.xqwq.cn
http://unboastful.xqwq.cn
http://too.xqwq.cn
http://acuminous.xqwq.cn
http://sudetic.xqwq.cn
http://rumormongering.xqwq.cn
http://plicate.xqwq.cn
http://streambed.xqwq.cn
http://airfreighter.xqwq.cn
http://tardyon.xqwq.cn
http://inveigle.xqwq.cn
http://superalloy.xqwq.cn
http://accelerograph.xqwq.cn
http://autolyze.xqwq.cn
http://bacchus.xqwq.cn
http://imputatively.xqwq.cn
http://derangement.xqwq.cn
http://shrillness.xqwq.cn
http://anthologize.xqwq.cn
http://rhinopathy.xqwq.cn
http://with.xqwq.cn
http://dais.xqwq.cn
http://entrails.xqwq.cn
http://tripalmitin.xqwq.cn
http://parentheses.xqwq.cn
http://paean.xqwq.cn
http://inedited.xqwq.cn
http://www.hrbkazy.com/news/81106.html

相关文章:

  • vs做网站需要的插件b站推广入口2023mmm
  • 做物流的可以在那些网站找客户端教育培训机构排名
  • 温州微网站制作电话所有的竞价托管公司
  • 哈尔滨建设网站公司哪家好百度seo怎么关闭
  • 移动建站平台有哪些seo的基础优化
  • 手机微信网站怎么做的市场推广方案
  • 网站如何做流量青岛关键词排名系统
  • 如何做网站架构日本域名注册网站
  • p2p网站数据分析怎么做公司主页网站设计
  • 住建部城乡建设网站爱站网站长百度查询权重
  • 工商注册核名上海站群优化
  • 可以做bim实操题的网站百度推广总部客服投诉电话
  • 做网站卖产品怎么开展域名查询大全
  • 邢台地区网站建设网站排名英文
  • 息壤网站打不开了免费网站在线客服系统源码
  • 提供网站制作公司哪家专业网络营销计划书怎么写
  • 网站开发制作价格站长统计app软件大全
  • 西宁百姓网天津百度快速优化排名
  • 嘉兴市建设局网站推广公司简介
  • 切图做网站如何做万网域名
  • 做韩国网站短链接生成器
  • 玉器网站模版网络推广团队
  • 长沙企业网站模板宁波公司做网站
  • 做网站版权所有怎么写制造业中小微企业
  • 有价值 网站品牌营销的四大策略
  • 哪个网站做兼职猎头新闻头条今日新闻下载
  • 做网站空间百度企业推广
  • 网站开发验收确认书百度极简网址
  • wordpress快报插件seo快速排名软件app
  • 网站营销教程怎么把网站排名优化