2023年3月14日 星期二

[研究]jekyll 4.3.2 靜態網站生成器-安裝(Rocky Linux 9.1)

[研究]jekyll靜態網站生成器-安裝(Rocky Linux 9.1)

2023-03-14

********************************************************************************

若不想看失敗和不斷補安裝套件過程,請直接看這篇

[研究]jekyll靜態網站生成器-安裝(二)(Rocky Linux 9.1)
https://shaurong.blogspot.com/2023/03/jekyll-rocky-linux-91.html

********************************************************************************

jekyll 需要 ruby 和 rubygems

[研究]ruby 3.0.4和 rubygem 3.2.33安裝(Rocky Linux 9.1)
https://shaurong.blogspot.com/2023/03/ruby-304-rubygem-3233rocky-linux-91.html

然後用 gem 安裝 jekyll

[user1@localhost ~]$ gem install jekyll bundler
Fetching webrick-1.8.1.gem
Fetching unicode-display_width-2.4.2.gem
Fetching terminal-table-3.0.2.gem
Fetching rouge-4.1.0.gem
Fetching forwardable-extended-2.6.0.gem
Fetching pathutil-0.16.2.gem
Fetching safe_yaml-1.0.5.gem
Fetching mercenary-0.4.0.gem
Fetching liquid-4.0.4.gem
Fetching rexml-3.2.5.gem
Fetching kramdown-2.4.0.gem
Fetching kramdown-parser-gfm-1.1.0.gem
Fetching ffi-1.15.5.gem
Fetching rb-inotify-0.10.1.gem
Fetching rb-fsevent-0.11.2.gem
Fetching listen-3.8.0.gem
Fetching jekyll-watch-2.2.1.gem
Fetching rake-13.0.6.gem
Fetching sass-embedded-1.59.2.gem
Fetching jekyll-sass-converter-3.0.0.gem
Fetching concurrent-ruby-1.2.2.gem
Fetching i18n-1.12.0.gem
Fetching http_parser.rb-0.8.0.gem
Fetching google-protobuf-3.22.2-x86_64-linux.gem
Fetching em-websocket-0.5.3.gem
Fetching jekyll-4.3.2.gem
Fetching eventmachine-1.2.7.gem
Fetching colorator-1.1.0.gem
Fetching public_suffix-5.0.1.gem
Fetching addressable-2.8.1.gem
Successfully installed webrick-1.8.1
Successfully installed unicode-display_width-2.4.2
Successfully installed terminal-table-3.0.2
Successfully installed safe_yaml-1.0.5
Successfully installed rouge-4.1.0
Successfully installed forwardable-extended-2.6.0
Successfully installed pathutil-0.16.2
Successfully installed mercenary-0.4.0
Successfully installed liquid-4.0.4
Successfully installed rexml-3.2.5
Successfully installed kramdown-2.4.0
Successfully installed kramdown-parser-gfm-1.1.0
Building native extensions. This could take a while...
ERROR:  Error installing jekyll:
	ERROR: Failed to build gem native extension.

    current directory: /home/user1/.local/share/gem/ruby/gems/ffi-1.15.5/ext/ffi_c
/usr/bin/ruby -I /usr/share/rubygems -r ./siteconf20230314-32784-3lbnjf.rb extconf.rb
mkmf.rb can't find header files for ruby at /usr/share/include/ruby.h

You might have to install separate package for the ruby development
environment, ruby-dev or ruby-devel for example.

extconf failed, exit code 1

Gem files will remain installed in /home/user1/.local/share/gem/ruby/gems/ffi-1.15.5 for inspection.
Results logged to /home/user1/.local/share/gem/ruby/extensions/x86_64-linux/3.0.0/ffi-1.15.5/gem_make.out
Fetching bundler-2.4.8.gem
Successfully installed bundler-2.4.8
Parsing documentation for bundler-2.4.8
Installing ri documentation for bundler-2.4.8
Done installing documentation for bundler after 0 seconds
1 gem installed
[user1@localhost ~]$ 
安

安裝 ruby開發套件

[user1@localhost ~]$ yum -y install ruby-devel rubygems-devel


[user1@localhost ~]$ sudo yum -y install ruby-devel rubygems-devel
[sudo] password for user1: 
Last metadata expiration check: 0:09:02 ago on Tue 14 Mar 2023 08:39:43 AM CST.
Dependencies resolved.
================================================================================
 Package                  Arch       Version                Repository     Size
================================================================================
Installing:
 ruby-devel               x86_64     3.0.4-160.el9_0        appstream     267 k
 rubygems-devel           noarch     3.2.33-160.el9_0       appstream      14 k
Installing dependencies:
 dwz                      x86_64     0.14-3.el9             appstream     127 k
 efi-srpm-macros          noarch     6-2.el9_0              appstream      22 k
 fonts-srpm-macros        noarch     1:2.0.5-7.el9.1        appstream      27 k
 ghc-srpm-macros          noarch     1.5.0-6.el9            appstream     7.8 k
 go-srpm-macros           noarch     3.0.9-9.el9            appstream      26 k
 kernel-srpm-macros       noarch     1.0-11.el9             appstream      15 k
 lua-srpm-macros          noarch     1-6.el9                appstream     8.5 k
 ocaml-srpm-macros        noarch     6-6.el9                appstream     7.8 k
 openblas-srpm-macros     noarch     2-11.el9               appstream     7.3 k
 perl-srpm-macros         noarch     1-41.el9               appstream     8.2 k
 python-srpm-macros       noarch     3.9-52.el9             appstream      22 k
 qt5-srpm-macros          noarch     5.15.3-1.el9           appstream     8.7 k
 rust-srpm-macros         noarch     17-4.el9               appstream     9.3 k
Installing weak dependencies:
 redhat-rpm-config        noarch     196-1.el9              appstream      66 k

Transaction Summary
================================================================================
Install  16 Packages

Total download size: 644 k
Installed size: 2.5 M
Downloading Packages:
(1/16): ghc-srpm-macros-1.5.0-6.el9.noarch.rpm   37 kB/s | 7.8 kB     00:00    
(2/16): python-srpm-macros-3.9-52.el9.noarch.rp 104 kB/s |  22 kB     00:00    
(3/16): rust-srpm-macros-17-4.el9.noarch.rpm     28 kB/s | 9.3 kB     00:00    
(4/16): efi-srpm-macros-6-2.el9_0.noarch.rpm    177 kB/s |  22 kB     00:00    
(5/16): fonts-srpm-macros-2.0.5-7.el9.1.noarch. 225 kB/s |  27 kB     00:00    
(6/16): kernel-srpm-macros-1.0-11.el9.noarch.rp 1.1 MB/s |  15 kB     00:00    
(7/16): lua-srpm-macros-1-6.el9.noarch.rpm      637 kB/s | 8.5 kB     00:00    
(8/16): go-srpm-macros-3.0.9-9.el9.noarch.rpm   1.3 MB/s |  26 kB     00:00    
(9/16): openblas-srpm-macros-2-11.el9.noarch.rp 783 kB/s | 7.3 kB     00:00    
(10/16): perl-srpm-macros-1-41.el9.noarch.rpm   581 kB/s | 8.2 kB     00:00    
(11/16): redhat-rpm-config-196-1.el9.noarch.rpm 3.6 MB/s |  66 kB     00:00    
(12/16): ocaml-srpm-macros-6-6.el9.noarch.rpm   737 kB/s | 7.8 kB     00:00    
(13/16): rubygems-devel-3.2.33-160.el9_0.noarch 827 kB/s |  14 kB     00:00    
(14/16): dwz-0.14-3.el9.x86_64.rpm              3.9 MB/s | 127 kB     00:00    
(15/16): qt5-srpm-macros-5.15.3-1.el9.noarch.rp 380 kB/s | 8.7 kB     00:00    
(16/16): ruby-devel-3.0.4-160.el9_0.x86_64.rpm  5.3 MB/s | 267 kB     00:00    
--------------------------------------------------------------------------------
Total                                           483 kB/s | 644 kB     00:01     
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
  Preparing        :                                                        1/1 
  Installing       : qt5-srpm-macros-5.15.3-1.el9.noarch                   1/16 
  Installing       : dwz-0.14-3.el9.x86_64                                 2/16 
  Installing       : ocaml-srpm-macros-6-6.el9.noarch                      3/16 
  Installing       : perl-srpm-macros-1-41.el9.noarch                      4/16 
  Installing       : openblas-srpm-macros-2-11.el9.noarch                  5/16 
  Installing       : lua-srpm-macros-1-6.el9.noarch                        6/16 
  Installing       : kernel-srpm-macros-1.0-11.el9.noarch                  7/16 
  Installing       : efi-srpm-macros-6-2.el9_0.noarch                      8/16 
  Installing       : rust-srpm-macros-17-4.el9.noarch                      9/16 
  Installing       : ghc-srpm-macros-1.5.0-6.el9.noarch                   10/16 
  Installing       : python-srpm-macros-3.9-52.el9.noarch                 11/16 
  Installing       : fonts-srpm-macros-1:2.0.5-7.el9.1.noarch             12/16 
  Installing       : go-srpm-macros-3.0.9-9.el9.noarch                    13/16 
  Installing       : redhat-rpm-config-196-1.el9.noarch                   14/16 
  Installing       : ruby-devel-3.0.4-160.el9_0.x86_64                    15/16 
  Installing       : rubygems-devel-3.2.33-160.el9_0.noarch               16/16 
  Running scriptlet: rubygems-devel-3.2.33-160.el9_0.noarch               16/16 
  Verifying        : ghc-srpm-macros-1.5.0-6.el9.noarch                    1/16 
  Verifying        : python-srpm-macros-3.9-52.el9.noarch                  2/16 
  Verifying        : rust-srpm-macros-17-4.el9.noarch                      3/16 
  Verifying        : efi-srpm-macros-6-2.el9_0.noarch                      4/16 
  Verifying        : fonts-srpm-macros-1:2.0.5-7.el9.1.noarch              5/16 
  Verifying        : go-srpm-macros-3.0.9-9.el9.noarch                     6/16 
  Verifying        : kernel-srpm-macros-1.0-11.el9.noarch                  7/16 
  Verifying        : lua-srpm-macros-1-6.el9.noarch                        8/16 
  Verifying        : openblas-srpm-macros-2-11.el9.noarch                  9/16 
  Verifying        : redhat-rpm-config-196-1.el9.noarch                   10/16 
  Verifying        : perl-srpm-macros-1-41.el9.noarch                     11/16 
  Verifying        : ocaml-srpm-macros-6-6.el9.noarch                     12/16 
  Verifying        : rubygems-devel-3.2.33-160.el9_0.noarch               13/16 
  Verifying        : dwz-0.14-3.el9.x86_64                                14/16 
  Verifying        : ruby-devel-3.0.4-160.el9_0.x86_64                    15/16 
  Verifying        : qt5-srpm-macros-5.15.3-1.el9.noarch                  16/16 

Installed:
  dwz-0.14-3.el9.x86_64                    efi-srpm-macros-6-2.el9_0.noarch    
  fonts-srpm-macros-1:2.0.5-7.el9.1.noarch ghc-srpm-macros-1.5.0-6.el9.noarch  
  go-srpm-macros-3.0.9-9.el9.noarch        kernel-srpm-macros-1.0-11.el9.noarch
  lua-srpm-macros-1-6.el9.noarch           ocaml-srpm-macros-6-6.el9.noarch    
  openblas-srpm-macros-2-11.el9.noarch     perl-srpm-macros-1-41.el9.noarch    
  python-srpm-macros-3.9-52.el9.noarch     qt5-srpm-macros-5.15.3-1.el9.noarch 
  redhat-rpm-config-196-1.el9.noarch       ruby-devel-3.0.4-160.el9_0.x86_64   
  rubygems-devel-3.2.33-160.el9_0.noarch   rust-srpm-macros-17-4.el9.noarch    

Complete!
[user1@localhost ~]$ D




[user1@localhost ~]$ gem install jekyll bundler
Building native extensions. This could take a while...
ERROR:  Error installing jekyll:
	ERROR: Failed to build gem native extension.

    current directory: /home/user1/.local/share/gem/ruby/gems/ffi-1.15.5/ext/ffi_c
/usr/bin/ruby -I /usr/share/rubygems -r ./siteconf20230314-33103-lrpbos.rb extconf.rb
checking for ffi.h... *** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of necessary
libraries and/or headers.  Check the mkmf.log file for more details.  You may
need configuration options.

Provided configuration options:
	--with-opt-dir
	--without-opt-dir
	--with-opt-include
	--without-opt-include=${opt-dir}/include
	--with-opt-lib
	--without-opt-lib=${opt-dir}/lib64
	--with-make-prog
	--without-make-prog
	--srcdir=.
	--curdir
	--ruby=/usr/bin/$(RUBY_BASE_NAME)
	--with-ffi_c-dir
	--without-ffi_c-dir
	--with-ffi_c-include
	--without-ffi_c-include=${ffi_c-dir}/include
	--with-ffi_c-lib
	--without-ffi_c-lib=${ffi_c-dir}/lib64
	--enable-system-libffi
	--disable-system-libffi
	--with-libffi-config
	--without-libffi-config
	--with-pkg-config
	--without-pkg-config
	--with-ffi-dir
	--without-ffi-dir
	--with-ffi-include
	--without-ffi-include=${ffi-dir}/include
	--with-ffi-lib
	--without-ffi-lib=${ffi-dir}/lib64
/usr/share/ruby/mkmf.rb:471:in `try_do': The compiler failed to generate an executable file. (RuntimeError)
You have to install development tools first.
	from /usr/share/ruby/mkmf.rb:613:in `try_cpp'
	from /usr/share/ruby/mkmf.rb:1124:in `block in have_header'
	from /usr/share/ruby/mkmf.rb:971:in `block in checking_for'
	from /usr/share/ruby/mkmf.rb:361:in `block (2 levels) in postpone'
	from /usr/share/ruby/mkmf.rb:331:in `open'
	from /usr/share/ruby/mkmf.rb:361:in `block in postpone'
	from /usr/share/ruby/mkmf.rb:331:in `open'
	from /usr/share/ruby/mkmf.rb:357:in `postpone'
	from /usr/share/ruby/mkmf.rb:970:in `checking_for'
	from /usr/share/ruby/mkmf.rb:1123:in `have_header'
	from extconf.rb:10:in `system_libffi_usable?'
	from extconf.rb:42:in `<main>'

To see why this extension failed to compile, please check the mkmf.log which can be found here:

  /home/user1/.local/share/gem/ruby/extensions/x86_64-linux/3.0.0/ffi-1.15.5/mkmf.log

extconf failed, exit code 1

Gem files will remain installed in /home/user1/.local/share/gem/ruby/gems/ffi-1.15.5 for inspection.
Results logged to /home/user1/.local/share/gem/ruby/extensions/x86_64-linux/3.0.0/ffi-1.15.5/gem_make.out
Successfully installed bundler-2.4.8
Parsing documentation for bundler-2.4.8
Done installing documentation for bundler after 0 seconds
1 gem installed
[user1@localhost ~]$ 
安

安裝 build 相關編譯工具 (gcc, make , cmake )

[user1@localhost ~]$ yum -y install gcc cmake make 
Error: This command has to be run with superuser privileges (under the root user on most systems).
[user1@localhost ~]$ sudo yum -y install gcc cmake make 
[sudo] password for user1: 
Last metadata expiration check: 0:15:19 ago on Tue 14 Mar 2023 08:39:43 AM CST.
Dependencies resolved.
================================================================================
 Package                Arch      Version                    Repository    Size
================================================================================
Installing:
 cmake                  x86_64    3.20.2-7.el9               appstream    6.7 M
 gcc                    x86_64    11.3.1-2.1.el9             appstream     32 M
 make                   x86_64    1:4.3-7.el9                baseos       530 k
Upgrading:
 glibc                  x86_64    2.34-40.el9_1.1            baseos       1.9 M
 glibc-all-langpacks    x86_64    2.34-40.el9_1.1            baseos        18 M
 glibc-common           x86_64    2.34-40.el9_1.1            baseos       300 k
 glibc-gconv-extra      x86_64    2.34-40.el9_1.1            baseos       1.5 M
 glibc-langpack-en      x86_64    2.34-40.el9_1.1            baseos       559 k
 glibc-langpack-zh      x86_64    2.34-40.el9_1.1            baseos       2.2 M
Installing dependencies:
 annobin                x86_64    10.73-3.el9                appstream    959 k
 cmake-data             noarch    3.20.2-7.el9               appstream    1.5 M
 cmake-filesystem       x86_64    3.20.2-7.el9               appstream     16 k
 cmake-rpm-macros       noarch    3.20.2-7.el9               appstream     15 k
 gcc-plugin-annobin     x86_64    11.3.1-2.1.el9             appstream     68 k
 glibc-devel            x86_64    2.34-40.el9_1.1            appstream     41 k
 glibc-headers          x86_64    2.34-40.el9_1.1            appstream    440 k
 kernel-headers         x86_64    5.14.0-162.18.1.el9_1      appstream    3.2 M
 libxcrypt-devel        x86_64    4.4.18-3.el9               appstream     28 k

Transaction Summary
================================================================================
Install  12 Packages
Upgrade   6 Packages

Total download size: 70 M
Downloading Packages:
(1/18): cmake-rpm-macros-3.20.2-7.el9.noarch.rp  78 kB/s |  15 kB     00:00    
(2/18): cmake-filesystem-3.20.2-7.el9.x86_64.rp  78 kB/s |  16 kB     00:00    
(3/18): make-4.3-7.el9.x86_64.rpm               1.2 MB/s | 530 kB     00:00    
(4/18): cmake-data-3.20.2-7.el9.noarch.rpm      3.2 MB/s | 1.5 MB     00:00    
(5/18): libxcrypt-devel-4.4.18-3.el9.x86_64.rpm 543 kB/s |  28 kB     00:00    
(6/18): annobin-10.73-3.el9.x86_64.rpm          2.5 MB/s | 959 kB     00:00    
(7/18): gcc-plugin-annobin-11.3.1-2.1.el9.x86_6 966 kB/s |  68 kB     00:00    
(8/18): kernel-headers-5.14.0-162.18.1.el9_1.x8 1.7 MB/s | 3.2 MB     00:01    
(9/18): glibc-headers-2.34-40.el9_1.1.x86_64.rp 2.3 MB/s | 440 kB     00:00    
(10/18): glibc-devel-2.34-40.el9_1.1.x86_64.rpm 863 kB/s |  41 kB     00:00    
(11/18): cmake-3.20.2-7.el9.x86_64.rpm          1.6 MB/s | 6.7 MB     00:04    
(12/18): glibc-langpack-en-2.34-40.el9_1.1.x86_ 2.0 MB/s | 559 kB     00:00    
(13/18): glibc-langpack-zh-2.34-40.el9_1.1.x86_ 1.2 MB/s | 2.2 MB     00:01    
(14/18): glibc-common-2.34-40.el9_1.1.x86_64.rp 1.7 MB/s | 300 kB     00:00    
(15/18): glibc-gconv-extra-2.34-40.el9_1.1.x86_ 2.4 MB/s | 1.5 MB     00:00    
(16/18): glibc-2.34-40.el9_1.1.x86_64.rpm       1.0 MB/s | 1.9 MB     00:01    
(17/18): glibc-all-langpacks-2.34-40.el9_1.1.x8 1.8 MB/s |  18 MB     00:09    
(18/18): gcc-11.3.1-2.1.el9.x86_64.rpm          2.2 MB/s |  32 MB     00:14    
--------------------------------------------------------------------------------
Total                                           4.2 MB/s |  70 MB     00:16     
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
  Preparing        :                                                        1/1 
  Installing       : cmake-filesystem-3.20.2-7.el9.x86_64                  1/24 
  Installing       : cmake-rpm-macros-3.20.2-7.el9.noarch                  2/24 
  Upgrading        : glibc-langpack-en-2.34-40.el9_1.1.x86_64              3/24 
  Upgrading        : glibc-gconv-extra-2.34-40.el9_1.1.x86_64              4/24 
  Running scriptlet: glibc-gconv-extra-2.34-40.el9_1.1.x86_64              4/24 
  Upgrading        : glibc-common-2.34-40.el9_1.1.x86_64                   5/24 
  Running scriptlet: glibc-2.34-40.el9_1.1.x86_64                          6/24 
  Upgrading        : glibc-2.34-40.el9_1.1.x86_64                          6/24 
  Running scriptlet: glibc-2.34-40.el9_1.1.x86_64                          6/24 
  Upgrading        : glibc-langpack-zh-2.34-40.el9_1.1.x86_64              7/24 
  Installing       : make-1:4.3-7.el9.x86_64                               8/24 
  Installing       : cmake-data-3.20.2-7.el9.noarch                        9/24 
  Installing       : cmake-3.20.2-7.el9.x86_64                            10/24 
  Installing       : glibc-headers-2.34-40.el9_1.1.x86_64                 11/24 
  Installing       : kernel-headers-5.14.0-162.18.1.el9_1.x86_64          12/24 
  Installing       : glibc-devel-2.34-40.el9_1.1.x86_64                   13/24 
  Installing       : libxcrypt-devel-4.4.18-3.el9.x86_64                  14/24 
  Installing       : gcc-11.3.1-2.1.el9.x86_64                            15/24 
  Installing       : annobin-10.73-3.el9.x86_64                           16/24 
  Running scriptlet: annobin-10.73-3.el9.x86_64                           16/24 
  Installing       : gcc-plugin-annobin-11.3.1-2.1.el9.x86_64             17/24 
  Running scriptlet: gcc-plugin-annobin-11.3.1-2.1.el9.x86_64             17/24 
  Upgrading        : glibc-all-langpacks-2.34-40.el9_1.1.x86_64           18/24 
  Cleanup          : glibc-all-langpacks-2.34-40.el9.x86_64               19/24 
  Cleanup          : glibc-langpack-en-2.34-40.el9.x86_64                 20/24 
  Cleanup          : glibc-gconv-extra-2.34-40.el9.x86_64                 21/24 
  Running scriptlet: glibc-gconv-extra-2.34-40.el9.x86_64                 21/24 
  Cleanup          : glibc-2.34-40.el9.x86_64                             22/24 
  Cleanup          : glibc-langpack-zh-2.34-40.el9.x86_64                 23/24 
  Cleanup          : glibc-common-2.34-40.el9.x86_64                      24/24 
  Running scriptlet: glibc-all-langpacks-2.34-40.el9_1.1.x86_64           24/24 
  Running scriptlet: glibc-common-2.34-40.el9.x86_64                      24/24 
  Verifying        : make-1:4.3-7.el9.x86_64                               1/24 
  Verifying        : cmake-rpm-macros-3.20.2-7.el9.noarch                  2/24 
  Verifying        : cmake-filesystem-3.20.2-7.el9.x86_64                  3/24 
  Verifying        : cmake-data-3.20.2-7.el9.noarch                        4/24 
  Verifying        : cmake-3.20.2-7.el9.x86_64                             5/24 
  Verifying        : annobin-10.73-3.el9.x86_64                            6/24 
  Verifying        : libxcrypt-devel-4.4.18-3.el9.x86_64                   7/24 
  Verifying        : kernel-headers-5.14.0-162.18.1.el9_1.x86_64           8/24 
  Verifying        : gcc-plugin-annobin-11.3.1-2.1.el9.x86_64              9/24 
  Verifying        : gcc-11.3.1-2.1.el9.x86_64                            10/24 
  Verifying        : glibc-headers-2.34-40.el9_1.1.x86_64                 11/24 
  Verifying        : glibc-devel-2.34-40.el9_1.1.x86_64                   12/24 
  Verifying        : glibc-langpack-zh-2.34-40.el9_1.1.x86_64             13/24 
  Verifying        : glibc-langpack-zh-2.34-40.el9.x86_64                 14/24 
  Verifying        : glibc-langpack-en-2.34-40.el9_1.1.x86_64             15/24 
  Verifying        : glibc-langpack-en-2.34-40.el9.x86_64                 16/24 
  Verifying        : glibc-gconv-extra-2.34-40.el9_1.1.x86_64             17/24 
  Verifying        : glibc-gconv-extra-2.34-40.el9.x86_64                 18/24 
  Verifying        : glibc-common-2.34-40.el9_1.1.x86_64                  19/24 
  Verifying        : glibc-common-2.34-40.el9.x86_64                      20/24 
  Verifying        : glibc-all-langpacks-2.34-40.el9_1.1.x86_64           21/24 
  Verifying        : glibc-all-langpacks-2.34-40.el9.x86_64               22/24 
  Verifying        : glibc-2.34-40.el9_1.1.x86_64                         23/24 
  Verifying        : glibc-2.34-40.el9.x86_64                             24/24 

Upgraded:
  glibc-2.34-40.el9_1.1.x86_64                                                  
  glibc-all-langpacks-2.34-40.el9_1.1.x86_64                                    
  glibc-common-2.34-40.el9_1.1.x86_64                                           
  glibc-gconv-extra-2.34-40.el9_1.1.x86_64                                      
  glibc-langpack-en-2.34-40.el9_1.1.x86_64                                      
  glibc-langpack-zh-2.34-40.el9_1.1.x86_64                                      
Installed:
  annobin-10.73-3.el9.x86_64                                                    
  cmake-3.20.2-7.el9.x86_64                                                     
  cmake-data-3.20.2-7.el9.noarch                                                
  cmake-filesystem-3.20.2-7.el9.x86_64                                          
  cmake-rpm-macros-3.20.2-7.el9.noarch                                          
  gcc-11.3.1-2.1.el9.x86_64                                                     
  gcc-plugin-annobin-11.3.1-2.1.el9.x86_64                                      
  glibc-devel-2.34-40.el9_1.1.x86_64                                            
  glibc-headers-2.34-40.el9_1.1.x86_64                                          
  kernel-headers-5.14.0-162.18.1.el9_1.x86_64                                   
  libxcrypt-devel-4.4.18-3.el9.x86_64                                           
  make-1:4.3-7.el9.x86_64                                                       

Complete!
[user1@localhost ~]$ 


[user1@localhost ~]$ gem install jekyll bundler
Building native extensions. This could take a while...
Successfully installed ffi-1.15.5
Successfully installed rb-inotify-0.10.1
Successfully installed rb-fsevent-0.11.2
Successfully installed listen-3.8.0
Successfully installed jekyll-watch-2.2.1
Successfully installed rake-13.0.6
Successfully installed google-protobuf-3.22.2-x86_64-linux
Building native extensions. This could take a while...
Successfully installed sass-embedded-1.59.2
Successfully installed jekyll-sass-converter-3.0.0
Successfully installed concurrent-ruby-1.2.2
Successfully installed i18n-1.12.0
Building native extensions. This could take a while...
Successfully installed http_parser.rb-0.8.0
Building native extensions. This could take a while...
ERROR:  Error installing jekyll:
	ERROR: Failed to build gem native extension.

    current directory: /home/user1/.local/share/gem/ruby/gems/eventmachine-1.2.7/ext
/usr/bin/ruby -I /usr/share/rubygems -r ./siteconf20230314-33670-aiftgq.rb extconf.rb
checking for -lcrypto... no
checking for openssl/ssl.h... no
checking for rb_trap_immediate in ruby.h,rubysig.h... no
checking for rb_thread_blocking_region()... no
checking for rb_thread_call_without_gvl() in ruby/thread.h... yes
checking for rb_thread_fd_select()... yes
checking for rb_fdset_t in ruby/intern.h... yes
checking for rb_wait_for_single_fd()... yes
checking for rb_enable_interrupt()... no
checking for rb_time_new()... yes
checking for inotify_init() in sys/inotify.h... yes
checking for writev() in sys/uio.h... yes
checking for pipe2() in unistd.h... yes
checking for accept4() in sys/socket.h... yes
checking for SOCK_CLOEXEC in sys/socket.h... yes
checking for sys/event.h... no
checking for epoll_create() in sys/epoll.h... yes
checking for clock_gettime()... yes
checking for CLOCK_MONOTONIC_RAW in time.h... yes
checking for CLOCK_MONOTONIC in time.h... yes
CXXFLAGS=-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection
creating Makefile

current directory: /home/user1/.local/share/gem/ruby/gems/eventmachine-1.2.7/ext
make DESTDIR\= clean
rm -f 
rm -f rubyeventmachine.so  *.o  *.bak mkmf.log .*.time

current directory: /home/user1/.local/share/gem/ruby/gems/eventmachine-1.2.7/ext
make DESTDIR\=
g++ -I. -I/usr/include -I/usr/include/ruby/backward -I/usr/include -I. -DBUILD_FOR_RUBY -DHAVE_RB_THREAD_CALL_WITHOUT_GVL -DHAVE_RB_THREAD_FD_SELECT -DHAVE_TYPE_RB_FDSET_T -DHAVE_RB_WAIT_FOR_SINGLE_FD -DHAVE_RB_TIME_NEW -DHAVE_INOTIFY_INIT -DHAVE_INOTIFY -DHAVE_WRITEV -DHAVE_PIPE2 -DHAVE_ACCEPT4 -DHAVE_CONST_SOCK_CLOEXEC -DOS_UNIX -DHAVE_EPOLL_CREATE -DHAVE_EPOLL -DHAVE_CLOCK_GETTIME -DHAVE_CONST_CLOCK_MONOTONIC_RAW -DHAVE_CONST_CLOCK_MONOTONIC    -fPIC -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -m64 -o binder.o -c binder.cpp
make: g++: No such file or directory
make: *** [Makefile:238: binder.o] Error 127

make failed, exit code 2

Gem files will remain installed in /home/user1/.local/share/gem/ruby/gems/eventmachine-1.2.7 for inspection.
Results logged to /home/user1/.local/share/gem/ruby/extensions/x86_64-linux/3.0.0/eventmachine-1.2.7/gem_make.out
Successfully installed bundler-2.4.8
Parsing documentation for bundler-2.4.8
Done installing documentation for bundler after 0 seconds
1 gem installed
[user1@localhost ~]$ 


[user1@localhost ~]$ sudo yum -y install g++
Last metadata expiration check: 0:19:27 ago on Tue 14 Mar 2023 08:39:43 AM CST.
Dependencies resolved.
================================================================================
 Package               Architecture Version               Repository       Size
================================================================================
Installing:
 gcc-c++               x86_64       11.3.1-2.1.el9        appstream        13 M
Installing dependencies:
 libstdc++-devel       x86_64       11.3.1-2.1.el9        appstream       2.2 M

Transaction Summary
================================================================================
Install  2 Packages

Total download size: 15 M
Installed size: 45 M
Downloading Packages:
(1/2): libstdc++-devel-11.3.1-2.1.el9.x86_64.rp 3.1 MB/s | 2.2 MB     00:00    
(2/2): gcc-c++-11.3.1-2.1.el9.x86_64.rpm        6.9 MB/s |  13 MB     00:01    
--------------------------------------------------------------------------------
Total                                           5.6 MB/s |  15 MB     00:02     
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
  Preparing        :                                                        1/1 
  Installing       : libstdc++-devel-11.3.1-2.1.el9.x86_64                  1/2 
  Installing       : gcc-c++-11.3.1-2.1.el9.x86_64                          2/2 
  Running scriptlet: gcc-c++-11.3.1-2.1.el9.x86_64                          2/2 
  Verifying        : libstdc++-devel-11.3.1-2.1.el9.x86_64                  1/2 
  Verifying        : gcc-c++-11.3.1-2.1.el9.x86_64                          2/2 

Installed:
  gcc-c++-11.3.1-2.1.el9.x86_64      libstdc++-devel-11.3.1-2.1.el9.x86_64     

Complete!
[user1@localhost ~]$ 


[user1@localhost ~]$ gem install jekyll bundler
Building native extensions. This could take a while...
Successfully installed eventmachine-1.2.7
Successfully installed em-websocket-0.5.3
Successfully installed colorator-1.1.0
Successfully installed public_suffix-5.0.1
Successfully installed addressable-2.8.1
Successfully installed jekyll-4.3.2
Parsing documentation for eventmachine-1.2.7
Installing ri documentation for eventmachine-1.2.7
Parsing documentation for em-websocket-0.5.3
Installing ri documentation for em-websocket-0.5.3
Parsing documentation for colorator-1.1.0
Installing ri documentation for colorator-1.1.0
Parsing documentation for public_suffix-5.0.1
Installing ri documentation for public_suffix-5.0.1
Parsing documentation for addressable-2.8.1
Installing ri documentation for addressable-2.8.1
Parsing documentation for jekyll-4.3.2
Installing ri documentation for jekyll-4.3.2
Done installing documentation for eventmachine, em-websocket, colorator, public_suffix, addressable, jekyll after 3 seconds
Successfully installed bundler-2.4.8
Parsing documentation for bundler-2.4.8
Done installing documentation for bundler after 0 seconds
7 gems installed
[user1@localhost ~]$ 


(完)

沒有留言:

張貼留言