質問をすることでしか得られない、回答やアドバイスがある。

15分調べてもわからないことは、質問しよう!

新規登録して質問してみよう
ただいま回答率
85.48%
Windows 10

Windows 10は、マイクロソフト社がリリースしたOSです。Modern UIを標準画面にした8.1から、10では再びデスクトップ主体に戻され、UIも変更されています。PCやスマホ、タブレットなど様々なデバイスに幅広く対応していることが特徴です。

mysqli

MySQLiはPHP5より導入されているデータベース用のドライバです。MySQL 4.1.3以降の新しい機能の利点をまとめています。

PowerShell

Windows PowerShellはコマンドラインインターフェースであり、システム管理を含むWindowsタスク自動化のためのスクリプト言語です。

VirtualBox

VirtualBoxは、現在米オラクル社が開発している、 x86仮想化ソフトウェア・パッケージの一つです。

Vagrant

Vagrantは、VirtualBox上の仮想マシンを コマンドラインから作成してくれるソフトウェアです。 ビルド環境など容易に構築が可能です。

Q&A

解決済

2回答

1479閲覧

????./run.shでinstall nodejsがErrorの対処法を教えてください

退会済みユーザー

退会済みユーザー

総合スコア0

Windows 10

Windows 10は、マイクロソフト社がリリースしたOSです。Modern UIを標準画面にした8.1から、10では再びデスクトップ主体に戻され、UIも変更されています。PCやスマホ、タブレットなど様々なデバイスに幅広く対応していることが特徴です。

mysqli

MySQLiはPHP5より導入されているデータベース用のドライバです。MySQL 4.1.3以降の新しい機能の利点をまとめています。

PowerShell

Windows PowerShellはコマンドラインインターフェースであり、システム管理を含むWindowsタスク自動化のためのスクリプト言語です。

VirtualBox

VirtualBoxは、現在米オラクル社が開発している、 x86仮想化ソフトウェア・パッケージの一つです。

Vagrant

Vagrantは、VirtualBox上の仮想マシンを コマンドラインから作成してくれるソフトウェアです。 ビルド環境など容易に構築が可能です。

0グッド

0クリップ

投稿2020/03/31 02:33

編集2020/04/01 09:51

ドットインストールを見ながらローカル開発環境構築中です。

./run.shでスクリプトを実行すると、
install nodejsだけErrorになってしまいます。


<模索することとしては…>
yum clean allの実行
main.yml内の修正
yum.conf内の修正
yum.repos.dフォルダ内ファイルの修正
色々ググりましたが、
同様の症状を見つけられません。
どこかのファイルとの競合なのでしょうか。

お解かりになる方、ご教示ください。


<ローカル開発環境>
VirtualBox-6.1.4-136177-Win
PowerShell-6.2.4-win-x64
vagrant_2.2.7_x86_64
putty-64bit-0.73
Cyberduck-Installer-7.2.5.32097


<下記はドットインストール手順>
OSを最新状態にアップデート(時間かかります)
sudo yum -y update

スクリプトを入手するためのgitをインストール
sudo yum -y install git

gitを使ってアプリケーション設定用のスクリプトをダウンロード
git clone https://github.com/dotinstallres/centos6.git

centos6フォルダができるのでそちらに移動
cd centos6

スクリプトを実行(時間かかります)
./run.sh

もろもろの設定を反映
exec $SHELL -l

お解りになる方、教えてください。


下記が.run.sh実行結果です。
何故、スキップされているものがあるのかも不明です。

[vagrant@localhost centos6]$ ./run.sh 読み込んだプラグイン:fastestmirror 更新処理の設定をしています Loading mirror speeds from cached hostfile * base: ftp.iij.ad.jp * extras: ftp.iij.ad.jp * remi-safe: ftp.riken.jp * updates: ftp.iij.ad.jp 更新と設定されたパッケージがありません。 PLAY [localhost] *************************************************************** TASK [Gathering Facts] ********************************************************* ok: [127.0.0.1] TASK [disable iptables] ******************************************************** ok: [127.0.0.1] TASK [install libselinux-python] *********************************************** ok: [127.0.0.1] TASK [Disabled SELinux] ******************************************************** ok: [127.0.0.1] TASK [remove localtime] ******************************************************** changed: [127.0.0.1] TASK [change timezone] ********************************************************* changed: [127.0.0.1] TASK [change locale] *********************************************************** ok: [127.0.0.1] TASK [install remi repository] ************************************************* [WARNING]: Consider using the yum, dnf or zypper module rather than running rpm. If you need to use command because yum, dnf or zypper is insufficient you can add warn=False to this command task or set command_warnings=False in ansible.cfg to get rid of this message. changed: [127.0.0.1] TASK [install man] ************************************************************* ok: [127.0.0.1] TASK [install apache] ********************************************************** ok: [127.0.0.1] TASK [start apache and enabled] ************************************************ ok: [127.0.0.1] TASK [change owner] ************************************************************ ok: [127.0.0.1] TASK [copy httpd.conf] ********************************************************* ok: [127.0.0.1] TASK [install gd-last] ********************************************************* ok: [127.0.0.1] TASK [install php] ************************************************************* ok: [127.0.0.1] TASK [copy php.ini.custom] ***************************************************** ok: [127.0.0.1] TASK [install mysql repository] ************************************************ changed: [127.0.0.1] TASK [install mysql] *********************************************************** ok: [127.0.0.1] TASK [copy my.cnf.custom] ****************************************************** ok: [127.0.0.1] TASK [start mysql and enabled] ************************************************* ok: [127.0.0.1] TASK [install ruby dependencies] *********************************************** ok: [127.0.0.1] TASK [check rbenv installed] *************************************************** changed: [127.0.0.1] TASK [git clone rbenv] ********************************************************* skipping: [127.0.0.1] TASK [update bash_profile] ***************************************************** ok: [127.0.0.1] TASK [check ruby-build installed] ********************************************** changed: [127.0.0.1] TASK [git clone ruby-build] **************************************************** skipping: [127.0.0.1] TASK [update rbenv] ************************************************************ changed: [127.0.0.1] TASK [update ruby-build] ******************************************************* changed: [127.0.0.1] TASK [check ruby installed] **************************************************** changed: [127.0.0.1] TASK [install ruby] ************************************************************ skipping: [127.0.0.1] TASK [check pyenv installed] *************************************************** changed: [127.0.0.1] TASK [git clone pyenv] ********************************************************* skipping: [127.0.0.1] TASK [check pyvirtual installed] *********************************************** changed: [127.0.0.1] TASK [git clone pyenv-virtual] ************************************************* skipping: [127.0.0.1] TASK [update pyenv] ************************************************************ changed: [127.0.0.1] TASK [update pyenv-virtualenv] ************************************************* changed: [127.0.0.1] TASK [check python installed] ************************************************** changed: [127.0.0.1] TASK [install python] ********************************************************** skipping: [127.0.0.1] TASK [check node js installed] ************************************************* changed: [127.0.0.1] TASK [install node script] ***************************************************** changed: [127.0.0.1] TASK [install nodejs] ********************************************************** fatal: [127.0.0.1]: FAILED! => {"changed": true, "msg": "https://rpm.nodesource.com/pub/el/6/x86_64/nodejs-0.10.46-1nodesource.el6.x86_64.rpm: [Errno -1] Package does not match intended download. Suggestion: run yum --enablerepo=nodesource clean metadata\nTrying other mirror.\n\n\nError Downloading Packages:\n nodejs-0.10.46-1nodesource.el6.x86_64: failure: nodejs-0.10.46-1nodesource.el6.x86_64.rpm from nodesource: [Errno 256] No more mirrors to try.\n\n", "rc": 1, "results": ["Loaded plugins: fastestmirror\nSetting up Install Process\nLoading mirror speeds from cached hostfile\n * base: ftp.iij.ad.jp\n * extras: ftp.iij.ad.jp\n * remi-safe: ftp.riken.jp\n * updates: ftp.iij.ad.jp\nResolving Dependencies\n--> Running transaction check\n---> Package nodejs.x86_64 0:0.10.46-1nodesource.el6 will be installed\n--> Finished Dependency Resolution\n\nDependencies Resolved\n\n================================================================================\n Package Arch Version Repository Size\n================================================================================\nInstalling:\n nodejs x86_64 0.10.46-1nodesource.el6 nodesource 5.5 M\n\nTransaction Summary\n================================================================================\nInstall 1 Package(s)\n\nTotal download size: 5.5 M\nInstalled size: 19 M\nDownloading Packages:\n"]} to retry, use: --limit @/home/vagrant/centos6/main.retry PLAY RECAP ********************************************************************* 127.0.0.1 : ok=34 changed=16 unreachable=0 failed=1

気になる質問をクリップする

クリップした質問は、後からいつでもMYページで確認できます。

またクリップした質問に回答があった際、通知やメールを受け取ることができます。

バッドをするには、ログインかつ

こちらの条件を満たす必要があります。

退会済みユーザー

退会済みユーザー

2020/03/31 02:40

ありがとうございます。 ここの使い方もこれから慣れていきます。
guest

回答2

0

ベストアンサー

TASK [install nodejs] 以降の改行文字を置換して見やすくしました。

---> Package nodejs.x86_64 0:0.10.46-1nodesource.el6 will be installed

とあるので、該当パッケージをインストールしようとしたが、インストール済みだった。ことが理由と思われます。

既にアンインストールを実施しているので原因は取り除かれているのではないでしょうか。

TASK [install nodejs] ********************************************************** fatal: [127.0.0.1]: FAILED! => {"changed": true, "msg": "https://rpm.nodesource.com/pub/el/6/x86_64/nodejs-0.10.46-1nodesource.el6.x86_64.rpm: [Errno -1] Package does not match intended download. Suggestion: run yum --enablerepo=nodesource clean metadata Trying other mirror. Error Downloading Packages: nodejs-0.10.46-1nodesource.el6.x86_64: failure: nodejs-0.10.46-1nodesource.el6.x86_64.rpm from nodesource: [Errno 256] No more mirrors to try. ", "rc": 1, "results": ["Loaded plugins: fastestmirror Setting up Install Process Loading mirror speeds from cached hostfile * base: ftp.iij.ad.jp * extras: ftp.iij.ad.jp * remi-safe: ftp.riken.jp * updates: ftp.iij.ad.jp Resolving Dependencies --> Running transaction check ---> Package nodejs.x86_64 0:0.10.46-1nodesource.el6 will be installed --> Finished Dependency Resolution Dependencies Resolved ================================================================================ Package Arch Version Repository Size ================================================================================ Installing: nodejs x86_64 0.10.46-1nodesource.el6 nodesource 5.5 M Transaction Summary ================================================================================ Install 1 Package(s) Total download size: 5.5 M Installed size: 19 M Downloading Packages: "]} to retry, use: --limit @/home/vagrant/centos6/main.retry PLAY RECAP ********************************************************************* 127.0.0.1 : ok=34 changed=16 unreachable=0 failed=1

投稿2020/04/02 09:25

yukky1201

総合スコア2751

バッドをするには、ログインかつ

こちらの条件を満たす必要があります。

退会済みユーザー

退会済みユーザー

2020/04/02 09:44

ご回答ありがとうございます。 置換もお手数掛けました。 なるほど、一見「install出来なかったよ」と言ってきているのかと思いましたが、 もしかして「もうあるよ!」だったということでしょうか? ./run.shで一発で綺麗にinstallされなくても普通ということでしょうか。 yum infoで確認してみました。 [vagrant@localhost ~]$ yum info nodejs 読み込んだプラグイン:fastestmirror Loading mirror speeds from cached hostfile * base: ftp.riken.jp * extras: ftp.riken.jp * remi-safe: ftp.riken.jp * updates: ftp.riken.jp インストール済みパッケージ 名前 : nodejs アーキテクチャ : x86_64 バージョン : 0.10.48 リリース : 3.el6 容量 : 7.1 M リポジトリー : installed 要約 : JavaScript runtime URL : http://nodejs.org/ ライセンス : MIT and ASL 2.0 and ISC and BSD 説明 : Node.js is a platform built on Chrome's JavaScript runtime : for easily building fast, scalable network applications. : Node.js uses an event-driven, non-blocking I/O model that : makes it lightweight and efficient, perfect for : data-intensive real-time applications that run across : distributed devices. [vagrant@localhost ~]$ yum info python 読み込んだプラグイン:fastestmirror Loading mirror speeds from cached hostfile * base: ftp.riken.jp * extras: ftp.riken.jp * remi-safe: ftp.riken.jp * updates: ftp.riken.jp インストール済みパッケージ 名前 : python アーキテクチャ : x86_64 バージョン : 2.6.6 リリース : 68.el6_10 容量 : 78 k リポジトリー : installed 要約 : An interpreted, interactive, object-oriented programming : language URL : http://www.python.org/ ライセンス : Python 説明 : Python is an interpreted, interactive, object-oriented : programming language often compared to Tcl, Perl, Scheme : or Java. Python includes modules, classes, exceptions, : very high level dynamic data types and dynamic typing. : Python supports interfaces to many system calls and : libraries, as well as to various windowing systems (X11, : Motif, Tk, Mac and MFC). : : Programmers can write new built-in modules for Python in C : or C++. Python can be used as an extension language for : applications that need a programmable interface. : : Note that documentation for Python is provided in the : python-docs package. : : This package provides the "python" executable; most of the : actual implementation is within the "python-libs" package. [vagrant@localhost ~]$
guest

バッドをするには、ログインかつ

こちらの条件を満たす必要があります。

退会済みユーザー

退会済みユーザー

2020/04/02 08:49 編集

ご回答ありがとうございます。 sudo yum remove nodejs-0.10.48-3nodesource.el6.x86_64を実行後に、 下記コマンドでインストール準備がされたように見えます。 これが正しいか検索中です。 このあと再度 ./run.sh を実行すると、install python や install nodejs は 何故かスキップされたため、また調べたいと思います。 [vagrant@localhost ~]$ sudo yum --enablerepo=epel -y install npm 読み込んだプラグイン:fastestmirror インストール処理の設定をしています Loading mirror speeds from cached hostfile * base: mirrors.cat.net * epel: ftp.riken.jp * extras: mirrors.cat.net * remi-safe: ftp.riken.jp * updates: mirrors.cat.net 依存性の解決をしています 終了していない残作業があります。それらを終了するために、まず yum-complete-transaction の実行を検討すべきかもしれません。 --> トランザクションの確認を実行しています。 ---> Package npm.noarch 0:1.3.6-5.el6 will be インストール --> 依存性の処理をしています: npm(node-gyp) < 0.11 のパッケージ: npm-1.3.6-5.el6.noarch --> 依存性の処理をしています: npm(node-gyp) >= 0.10.6 のパッケージ: npm-1.3.6-5.el6.noarch --> トランザクションの確認を実行しています。 ---> Package node-gyp.noarch 0:0.10.6-2.el6 will be インストール --> 依存性の処理をしています: gyp のパッケージ: node-gyp-0.10.6-2.el6.noarch --> 依存性の処理をしています: nodejs-devel のパッケージ: node-gyp-0.10.6-2.el6.noarch --> 依存性の処理をしています: http-parser-devel のパッケージ: node-gyp-0.10.6-2.el6.noarch --> トランザクションの確認を実行しています。 ---> Package gyp.noarch 0:0.1-0.6.1010svn.el6 will be インストール ---> Package http-parser-devel.x86_64 0:2.0-4.20121128gitcd01361.el6 will be インストール --> 依存性の処理をしています: http-parser = 2.0-4.20121128gitcd01361.el6 のパッケージ: http-parser-devel-2.0-4.20121128gitcd01361.el6.x86_64 --> 依存性の処理をしています: libhttp_parser.so.2()(64bit) のパッケージ: http-parser-devel-2.0-4.20121128gitcd01361.el6.x86_64 --> 依存性の処理をしています: libhttp_parser_strict.so.2()(64bit) のパッケージ: http-parser-devel-2.0-4.20121128gitcd01361.el6.x86_64 ---> Package nodejs-devel.x86_64 0:0.10.48-3.el6 will be インストール --> トランザクションの確認を実行しています。 ---> Package http-parser.x86_64 0:2.0-4.20121128gitcd01361.el6 will be インストール --> 依存性解決を終了しました。 依存性を解決しました ================================================================================ パッケージ アーキテクチャ バージョン リポジトリー 容量 ================================================================================ インストールしています: npm noarch 1.3.6-5.el6 epel 329 k 依存性関連でのインストールをします。: gyp noarch 0.1-0.6.1010svn.el6 epel 335 k http-parser x86_64 2.0-4.20121128gitcd01361.el6 epel 22 k http-parser-devel x86_64 2.0-4.20121128gitcd01361.el6 epel 9.2 k node-gyp noarch 0.10.6-2.el6 epel 25 k nodejs-devel x86_64 0.10.48-3.el6 epel 2.7 M トランザクションの要約 ================================================================================ インストール 6 パッケージ 合計容量: 3.4 M インストール済み容量: 12 M パッケージをダウンロードしています: rpm_check_debug を実行しています トランザクションのテストを実行しています トランザクションのテストを成功しました トランザクションを実行しています 警告: RPMDB は yum 以外で変更されました。 インストールしています : http-parser-2.0-4.20121128gitcd01361.el6.x86_ 1/6 /sbin/ldconfig: File /usr/lib64/libv8preparser.so is empty, not checked. /sbin/ldconfig: File /usr/lib64/libicuuc.so.42.1 is empty, not checked. /sbin/ldconfig: File /usr/lib64/libicuuc.so.42 is empty, not checked. /sbin/ldconfig: File /usr/lib64/libv8preparser.so.3 is empty, not checked. /sbin/ldconfig: File /usr/lib64/libiculx.so.42.1 is empty, not checked. /sbin/ldconfig: File /usr/lib64/libiculx.so.42 is empty, not checked. /sbin/ldconfig: File /usr/lib64/libicuio.so.42.1 is empty, not checked. /sbin/ldconfig: File /usr/lib64/libv8.so is empty, not checked. /sbin/ldconfig: File /usr/lib64/libicule.so.42 is empty, not checked. /sbin/ldconfig: File /usr/lib64/libv8.so.3 is empty, not checked. /sbin/ldconfig: File /usr/lib64/libicui18n.so.42.1 is empty, not checked. /sbin/ldconfig: File /usr/lib64/libicudata.so.42.1 is empty, not checked. /sbin/ldconfig: File /usr/lib64/libicui18n.so.42 is empty, not checked. /sbin/ldconfig: File /usr/lib64/libv8preparser.so.3.14.5 is empty, not checked. /sbin/ldconfig: File /usr/lib64/libicutu.so.42 is empty, not checked. /sbin/ldconfig: File /usr/lib64/libv8.so.3.14 is empty, not checked. /sbin/ldconfig: File /usr/lib64/libicudata.so.42 is empty, not checked. /sbin/ldconfig: File /usr/lib64/libicutu.so.42.1 is empty, not checked. /sbin/ldconfig: File /usr/lib64/libv8preparser.so.3.14 is empty, not checked. /sbin/ldconfig: File /usr/lib64/libv8.so.3.14.5 is empty, not checked. /sbin/ldconfig: File /usr/lib64/libicule.so.42.1 is empty, not checked. /sbin/ldconfig: File /usr/lib64/libicuio.so.42 is empty, not checked. インストールしています : http-parser-devel-2.0-4.20121128gitcd01361.el 2/6 インストールしています : nodejs-devel-0.10.48-3.el6.x86_64 3/6 インストールしています : gyp-0.1-0.6.1010svn.el6.noarch 4/6 インストールしています : node-gyp-0.10.6-2.el6.noarch 5/6 インストールしています : npm-1.3.6-5.el6.noarch 6/6 Verifying : npm-1.3.6-5.el6.noarch 1/6 Verifying : http-parser-devel-2.0-4.20121128gitcd01361.el 2/6 Verifying : gyp-0.1-0.6.1010svn.el6.noarch 3/6 Verifying : nodejs-devel-0.10.48-3.el6.x86_64 4/6 Verifying : node-gyp-0.10.6-2.el6.noarch 5/6 Verifying : http-parser-2.0-4.20121128gitcd01361.el6.x86_ 6/6 インストール: npm.noarch 0:1.3.6-5.el6 依存性関連をインストールしました: gyp.noarch 0:0.1-0.6.1010svn.el6 http-parser.x86_64 0:2.0-4.20121128gitcd01361.el6 http-parser-devel.x86_64 0:2.0-4.20121128gitcd01361.el6 node-gyp.noarch 0:0.10.6-2.el6 nodejs-devel.x86_64 0:0.10.48-3.el6 完了しました! TASK [install python] ********************************************************** skipping: [127.0.0.1] TASK [check node js installed] ************************************************* changed: [127.0.0.1] TASK [install node script] ***************************************************** skipping: [127.0.0.1] TASK [install nodejs] ********************************************************** skipping: [127.0.0.1] TASK [install npm] ************************************************************* skipping: [127.0.0.1] PLAY RECAP ********************************************************************* 127.0.0.1 : ok=33 changed=15 unreachable=0 failed=0
guest

あなたの回答

tips

太字

斜体

打ち消し線

見出し

引用テキストの挿入

コードの挿入

リンクの挿入

リストの挿入

番号リストの挿入

表の挿入

水平線の挿入

プレビュー

15分調べてもわからないことは
teratailで質問しよう!

ただいまの回答率
85.48%

質問をまとめることで
思考を整理して素早く解決

テンプレート機能で
簡単に質問をまとめる

質問する

関連した質問