LoginSignup
0
1

More than 5 years have passed since last update.

CentOS 6 と Software Collections で SyntaxHighlighter

Last updated at Posted at 2017-08-04

パッケージをインストールする。

$ sudo yum install centos-release-scl-rh
$ sudo yum install httpd git rh-nodejs6-npm

SyntaxHighlighter をビルドする。

$ scl enable devtoolset-6 rh-nodejs6 bash
$ git clone https://github.com/syntaxhighlighter/syntaxhighlighter.git
$ cd syntaxhighlighter; pwd
$ npm install
$ ./node_modules/gulp/bin/gulp.js setup-project
$ ./node_modules/gulp/bin/gulp.js build --brushes=all --theme=default

動作確認する。

$ cd /var/www/html; pwd
$ sudo rsync -av ~/syntaxhighlighter/dist .
$ sudo run_init /etc/init.d/httpd start

Web ブラウザーを開いて, http://<FQDN>/dist/ にアクセス,
サンプルが表示されれば OK.

どっとはらい。

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