configure: error: Package requirements (oniguruma) were not met:
1 2 3 4 5 6
wget -c https://github.com/kkos/oniguruma/releases/download/v6.9.8/onig-6.9.8.tar.gz tar zxf onig-6.9.8.tar.gz cd onig-6.9.8 ./configure --libdir=/lib64 make && make install cd ..
error: Package requirements (libsodium >= 1.0.8) were not met:
1 2 3 4 5 6
wget -c https://github.com/jedisct1/libsodium/releases/download/1.0.18-RELEASE/libsodium-1.0.18.tar.gz tar zxf libsodium-1.0.18.tar.gz cd libsodium-1.0.18 ./configure --libdir=/lib64 make && make install cd ..
error: Package requirements (libzip >= 0.11 libzip != 1.3.1 libzip != 1.7.0) were not met:
1 2 3 4 5 6 7 8 9
wget -c https://libzip.org/download/libzip-1.9.2.tar.gz tar zxf libzip-1.9.2.tar.gz cd libzip-1.9.2 mkdir build && cd build cmake .. make && make install cd ../../ ln -sf /usr/local/lib64/libzip.so.5 /usr/local/lib/ ldconfig /usr/local/lib
Package 'libtirpc', required by 'virtual:world', not found
tar zxf nginx-1.23.1.tar.gz cd nginx-1.23.1 ./configure --user=www --group=www --prefix=/usr/local/nginx --with-http_stub_status_module --with-http_ssl_module --with-http_v2_module --with-http_gzip_static_module --with-http_sub_module --with-stream --with-stream_ssl_module --with-stream_ssl_preread_module --with-pcre --with-pcre-jit make && make install cd ../
配置 Nginx
首先以下内容保存在 /etc/systemd/system/nginx.service 文件中:
1 2 3 4 5 6 7 8 9 10 11 12 13 14
[Unit] Description=The NGINX HTTP and reverse proxy server After=network.target remote-fs.target nss-lookup.target
MySQL 5.7.5 之后版本都要安装 boost 包。这里选择的是已自带 boost 安装包的 MySQL 安装包:
1 2 3 4 5 6 7
tar zxvf mysql-boost-8.0.30.tar.gz mkdir mysql-8.0.30/build cd mysql-8.0.30/build cmake .. -DCMAKE_INSTALL_PREFIX=/usr/local/mysql -DSYSCONFDIR=/etc -DWITH_MYISAM_STORAGE_ENGINE=1 -DWITH_INNOBASE_STORAGE_ENGINE=1 -DWITH_PARTITION_STORAGE_ENGINE=1 -DWITH_FEDERATED_STORAGE_ENGINE=1 -DEXTRA_CHARSETS=all -DDEFAULT_CHARSET=utf8mb4 -DDEFAULT_COLLATION=utf8mb4_general_ci -DWITH_EMBEDDED_SERVER=1 -DENABLED_LOCAL_INFILE=1 -DWITH_BOOST=/usr/local/src -DDOWNLOAD_BOOST=1 make && make install chown -R mysql:mysql /usr/local/mysql #对mysql目录进行赋予权限 cd ../../
在国内下载 bootst 通常都会失败,比如说看我这里的安装错误日志:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
-- Downloading boost_1_77_0.tar.bz2 to /usr/local/src -- [download 0% complete] -- [download 1% complete] -- [download 2% complete] -- Download failed, error: 28;"Timeout was reached" CMake Error at cmake/boost.cmake:226 (MESSAGE): You can try downloading https://boostorg.jfrog.io/artifactory/main/release/1.77.0/source/boost_1_77_0.tar.bz2 manually using curl/wget or a similar tool, or increase the value of DOWNLOAD_BOOST_TIMEOUT (which is now 600 seconds) Call Stack (most recent call first): CMakeLists.txt:1543 (INCLUDE)
-- Configuring incomplete, errors occurred! See also "/usr/local/src/mysql-8.0.30/build/CMakeFiles/CMakeOutput.log". See also "/usr/local/src/mysql-8.0.30/build/CMakeFiles/CMakeError.log".
2022-08-13T13:04:11.920018Z 0 [ERROR] [MY-010457] [Server] --initialize specified but the data directory has files in it. Aborting. 2022-08-13T13:04:11.920038Z 0 [ERROR] [MY-013236] [Server] The designated data directory /usr/local/mysql/var/ is unusable. You can remove all files that the server added to it.
[Unit] Description=MySQL Community Server After=network.target syslog.target Documentation=http://dev.mysql.com/doc/refman/en/using-systemd.html Documentation=man:mysqld(8)
[Service] User=mysql Group=mysql
# Have mysqld write its state to the systemd notify socket Type=notify
# Disable service start and stop timeout logic of systemd for mysqld service. TimeoutSec=0
# Start main service ExecStart=/usr/local/mysql/bin/mysqld --defaults-file=/etc/my.cnf $MYSQLD_OPTS
# Use this to switch malloc implementation EnvironmentFile=-/etc/sysconfig/mysql
# Sets open_files_limit LimitNOFILE = 10000
Restart=on-failure
RestartPreventExitStatus=1
# Set environment variable MYSQLD_PARENT_PID. This is required for restart. Environment=MYSQLD_PARENT_PID=1