dockerで構築したCentOS上にnode.jsをインストールしたい

774 views
Skip to first unread message

友之永井

unread,
Aug 5, 2014, 7:11:32 AM8/5/14
to node...@googlegroups.com
永井と申します。はじめまして

CoreOS上にdockerでcentosを起動、

yum install nodejs npm --enablerepo=epel

とnode.jsをインストールしようとしたのですが

Error: Package: 1:v8-3.14.5.10-9.el6.x86_64 (epel)
           Requires: libicui18n.so.42()(64bit)
Error: Package: 1:v8-devel-3.14.5.10-9.el6.x86_64 (epel)
           Requires: python(abi) = 2.6
           Installed: python-2.7.5-16.el7.x86_64 (@CentOS/$releasever)
               python(abi) = 2.7
               python(abi) = 2.7
Error: Package: 1:v8-3.14.5.10-9.el6.x86_64 (epel)
           Requires: libicuuc.so.42()(64bit)
Error: Package: 1:v8-3.14.5.10-9.el6.x86_64 (epel)
           Requires: libicudata.so.42()(64bit)
Error: Package: gyp-0.1-0.6.1010svn.el6.noarch (epel)
           Requires: python(abi) = 2.6
           Installed: python-2.7.5-16.el7.x86_64 (@CentOS/$releasever)
               python(abi) = 2.7
               python(abi) = 2.7

と python2.6が無いようでインストールが進みません
node.jsをインストールする方法はないでしょうか?

CoreOSとCentOSのバージョンは

NAME="CentOS Linux"
VERSION="7 (Core)"
ID="centos"
ID_LIKE="rhel fedora"
VERSION_ID="7"
PRETTY_NAME="CentOS Linux 7 (Core)"
ANSI_COLOR="0;31"
CPE_NAME="cpe:/o:centos:centos:7"
BUG_REPORT_URL="https://bugs.centos.org/"


NAME=CoreOS
ID=coreos
VERSION=394.0.0
VERSION_ID=394.0.0
BUILD_ID=
PRETTY_NAME="CoreOS 394.0.0"
ANSI_COLOR="1;32"

です。

TAKANO `takano32' Mitsuhiro

unread,
Aug 6, 2014, 3:40:40 AM8/6/14
to node...@googlegroups.com
> http://ftp.riken.jp/Linux/fedora/epel/6/x86_64/epel-release-6-8.noarch.rpm

CentOS のバージョンを 6.8 にできませんかね。

2014年8月5日 20:11 友之永井 <nagai_t...@code-freak.jp>:
> --
>
> ---
> このメールは Google グループのグループ「Node.js 日本ユーザグループ」に登録しているユーザーに送られています。
> このグループから退会し、グループからのメールの配信を停止するには nodejs_jp+...@googlegroups.com
> にメールを送信してください。
> その他のオプションについては https://groups.google.com/d/optout にアクセスしてください。

TAKANO `takano32' Mitsuhiro

unread,
Aug 6, 2014, 4:00:25 AM8/6/14
to node...@googlegroups.com
CentOS 7 でも epel の beta/7 なら入りました。

Docker Hub におきました。

https://registry.hub.docker.com/u/takano32/nodejs/

——
> docker run -i -t centos:centos7 /bin/bash
bash-4.2# rpm -ivh
http://ftp.riken.jp/Linux/fedora/epel/beta/7/x86_64/epel-release-7-0.2.noarch.rpm
Retrieving http://ftp.riken.jp/Linux/fedora/epel/beta/7/x86_64/epel-release-7-0.2.noarch.rpm
warning: /var/tmp/rpm-tmp.Tw5ydi: Header V3 RSA/SHA256 Signature, key
ID 352c64e5: NOKEY
Preparing... ################################# [100%]
Updating / installing...
1:epel-release-7-0.2 ################################# [100%]
bash-4.2# yum install nodejs npm --enablerepo=epel

(snip)

bash-4.2# node -v
v0.10.30
——


2014年8月6日 16:39 TAKANO `takano32' Mitsuhiro <taka...@gmail.com>:
Reply all
Reply to author
Forward
Message has been deleted
0 new messages