前提・実現したいこと
レンタルサーバーのエックスサーバーにLinuxbrewをインストールしたい。
エックスサーバーにLinuxbrewのインストールを進めていたところエラーがでてインストールが完了しません。
参考サイト:https://note.com/coeeff/n/neab8acfde97e
実行コード
bash
1[【username】 ~]$ sh -c "$(curl -fsSL https://raw.githubusercontent.com/Linuxbrew/install/master/install.sh)"
途中までは問題なく進みます。
bash
1==> Checking for `sudo` access (which may request your password). 2==> Select the Homebrew installation directory 3- Enter your password to install to /home/linuxbrew/.linuxbrew (recommended) 4- Press Control-D to install to /home/【username】/.linuxbrew 5- Press Control-C to cancel installation 6Sorry, user 【username】 may not run sudo on 【userid】. 7==> This script will install: 8/home/【username】/.linuxbrew/bin/brew 9/home/【username】/.linuxbrew/share/doc/homebrew 10/home/【username】/.linuxbrew/share/man/man1/brew.1 11/home/【username】/.linuxbrew/share/zsh/site-functions/_brew 12/home/【username】/.linuxbrew/etc/bash_completion.d/brew 13/home/【username】/.linuxbrew/Homebrew 14...
発生している問題・エラーメッセージ
bash
1==> Installing curl dependency: fontconfig 2==> Patching 3==> Applying 6def66164a36eed968aae872d76acfac3173d44a.patch 4patching file src/fcatomic.h 5==> ./configure --enable-static --with-add-fonts=/System/Library/Fonts,/Lib 6==> make install RUN_FC_CACHE_TEST=false 7Last 15 lines from /home/【username】/.cache/Homebrew/Logs/fontconfig/02.make: 8mv -f fcobjshash.h.tmp fcobjshash.h || ( rm -f fcobjshash.h.tmp && false ) 9gperf: error while loading shared libraries: libstdc++.so.6: cannot open shared object file: No such file or directory 10WARNING: 'gperf' is missing on your system. 11 You might have modified some files without having the proper 12 tools for further handling them. Check the 'README' file, it 13 often tells you about the needed prerequisites for installing 14 this package. You may also peek at any GNU archive site, in 15 case some other package contains this missing 'gperf' program. 16make[1]: *** [fcobjshash.h] Error 1 17make[1]: *** Waiting for unfinished jobs.... 18config.status: executing src/fcstdint.h commands 19config.status: creating src/fcstdint.h : _FONTCONFIG_SRC_FCSTDINT_H 20config.status: src/fcstdint.h is unchanged 21make[1]: Leaving directory `/tmp/fontconfig-20210412-82514-r2hls9/fontconfig-2.13.1/src' 22make: *** [install-recursive] Error 1 23 24READ THIS: https://docs.brew.sh/Troubleshooting 25 26Error: 'curl' must be installed and in your PATH! 27Failed during: /home/【username】/.linuxbrew/bin/brew update --force --quiet
試したこと
いづれも同様の箇所で同じエラーが発生します。
- 削除後の再インストール
- 新しくレンタルサーバーを使用期間で申込みインストール
> libstdc++.so.6: cannot open shared object file: No such file or directory
「libstdc++.so.6」が無いようなので、追加する必要があるのでは?
あなたの回答
tips
プレビュー