0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Rocket.Chatサーバーのインストールをした

Last updated at Posted at 2018-08-06

Rocket.Chatサーバーのインストールをしたら結構大変だったのでメモを残しておく。

CentOS 7 7.2.1511
Rocket.Chat 0.68.3
NodeJS 8.11.3
gcc 4.9.4

めんどくさかったのは
 Rocket.Chat 0.68.3をインストールするにはNodeJS 8.11.3が必要
 ↓
 NojeJSをソースからビルドしようとしたらgcc 4.9.xが必要
 ↓
 gccをソースからビルド
と芋づる式に手順が増えていったこと。あとビルドにやたらと時間がかかること。

インストール手順

gcc 4.9.4をインストールする

$ yum -y install gcc gcc-c++ wget bzip2 libmpc-devel mpfr-devel gmp-devel glibc-devel.i686
$ wget ftp://ftp.mirrorservice.org/sites/sourceware.org/pub/gcc/releases/gcc-4.9.4/gcc-4.9.4.tar.bz2
$ tar xvfj gcc-4.9.4.tar.bz2
$ cd gcc-4.9.4
$ ./configure --enable-languages=c,c++ --prefix=/usr/local --disable-bootstrap --disable-multilib
$ make
$ sudo make install

NodeJS 8.11.3をインストールする

$ wget https://nodejs.org/dist/v8.11.3/node-v8.11.3.tar.gz
$ cd node-v8.11.3
$ configure --prefix=/usr
$ make

ビルド中にGLIBCXX_3.4.20' not foundっていわれてエラーになる。

$ cd ../gcc-4.9.4/x86_64-unknown-linux-gnu/libstdc++-v3/src/.libs
$ sudo cp libstdc++.so.6.0.20 /usr/lib64
$ cd /usr/lib64
$ sudo mv libstdc++.so.6 libstdc++.so.6.bak
$sudo ln -s libstdc++.so.6.0.20 libstdc++.so.6

NodeJSをまたビルドする

$ cd ~/node-v8.11.3
$ make
$ sudo make install

RocketChatサーバーをインストールする

$ sudo yum -y install epel-release
$ sudo yum install --enablerepo=epel mongodb-server mongodb GraphicsMagick
$ wget --trust-server-names https://releases.rocket.chat/latest/download
$ mv rocket.chat-0.68.3.tgz?25386d35ef263589cfb941d33c8a855a-19 rocket.chat-0.68.3.tgz
$ tar xvzf rocket.chat-0.68.3.tgz
$ mv bundle /var/rocket
$ cd /var/rocket/programs/server/
$ npm install

インストールできた。
RocketChatのセットアップについては省略。


以下のページを参照

0
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?