概要
- GMOデジロックのレンタルサーバー「コアサーバー」で使えるプログラミング言語とそのバージョンを調べる
- 2019年12月5日時点の情報
今回の環境
- 料金プラン: ビジネスプラン「CORE-B」 (30日間無料お試しトライアル期間中)
- サーバー: b1.coreserver.jp
OS
OS は CentOS Linux 7 らしい。
$ uname -a
Linux b1.coreserver.jp 4.4.0-161-generic #189-Ubuntu SMP Tue Aug 27 08:10:16 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
$ cat /etc/os-release
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"
HOME_URL="https://www.centos.org/"
BUG_REPORT_URL="https://bugs.centos.org/"
CENTOS_MANTISBT_PROJECT="CentOS-7"
CENTOS_MANTISBT_PROJECT_VERSION="7"
REDHAT_SUPPORT_PRODUCT="centos"
REDHAT_SUPPORT_PRODUCT_VERSION="7"
「コアサーバー」で使えるプログラミング言語とそのバージョン
Bash
Bash 4.2
$ which bash
/usr/bin/bash
$ bash --version
GNU bash, バージョン 4.2.46(2)-release (x86_64-redhat-linux-gnu)
C
デフォルトは GCC 4.8 になっている。
GCC 4.8
$ which cc
/usr/bin/cc
$ cc --version
cc (GCC) 4.8.5 20150623 (Red Hat 4.8.5-28)
GCC 4.4
$ which gcc44
/usr/bin/gcc44
$ gcc44 --version
gcc44 (GCC) 4.4.7 20120313 (Red Hat 4.4.7-8)
C++
デフォルトは G++ 4.8 になっている。
G++ 4.8
$ which c++
/usr/bin/c++
$ c++ --version
c++ (GCC) 4.8.5 20150623 (Red Hat 4.8.5-28)
G++ 4.4
$ which g++44
/usr/bin/g++44
$ g++44 --version
g++44 (GCC) 4.4.7 20120313 (Red Hat 4.4.7-8)
Go
Go 1.11 がインストールされている。
Go 1.11
$ which go
/usr/bin/go
$ go version
go version go1.11.5 linux/amd64
Java
OpenJDK 8 がインストールされている。
OpenJDK 8
$ which java
/usr/bin/java
$ java -version
openjdk version "1.8.0_171"
OpenJDK Runtime Environment (build 1.8.0_171-b10)
OpenJDK 64-Bit Server VM (build 25.171-b10, mixed mode)
Node.js
Node.js 6 がインストールされている。
Node.js 6
$ which node
/usr/bin/node
$ node --version
v6.17.1
Perl
デフォルトは Perl 5.16 になっている。
Perl 5.16
$ which perl
/usr/local/bin/perl
$ perl --version
This is perl 5, version 16, subversion 3 (v5.16.3) built for x86_64-linux-thread-multi
(with 33 registered patches, see perl -V for more detail)
Perl 5.8
$ which perl5.8
/usr/local/bin/perl5.8
$ perl5.8 --version
This is perl, v5.8.9 built for x86_64-linux
(with 1 registered patch, see perl -V for more detail)
PHP
デフォルトは PHP 7.1 になっている。
最も新しいバージョンは PHP 7.3 がインストールされている。
PHP 7.1
$ which php
/usr/local/bin/php
$ php --version
PHP 7.1.32 (cgi-fcgi) (built: Aug 28 2019 13:15:13)
PHP 7.3
$ which php73
/usr/local/bin/php73
$ php73 --version
PHP 7.3.9 (cgi-fcgi) (built: Sep 5 2019 04:08:56)
PHP 7.2
$ which php72
/usr/local/bin/php72
$ php72 --version
PHP 7.2.22 (cgi-fcgi) (built: Sep 5 2019 03:53:20)
PHP 7.0
$ which php70
/usr/local/bin/php70
$ php70 --version
PHP 7.0.33 (cgi-fcgi) (built: Sep 5 2019 03:37:05)
PHP 5.6
$ which php56
/usr/local/bin/php56
$ php56 --version
PHP 5.6.40 (cgi-fcgi) (built: Mar 7 2019 03:10:03)
PHP 5.5
$ which php55
/usr/local/bin/php55
$ php55 --version
PHP 5.5.38 (cgi-fcgi) (built: Feb 13 2017 17:46:46)
PHP 5.4
$ which php54
/usr/local/bin/php54
$ php54 --version
PHP 5.4.45 (cgi-fcgi) (built: Feb 13 2017 17:44:52)
PHP 5.3
$ which php53
/usr/local/bin/php53
$ php53 --version
PHP 5.3.29 (cgi-fcgi) (built: Feb 13 2017 17:43:14)
PHP 5.2
$ which php52
/usr/local/bin/php52
$ php52 --version
PHP 5.2.17 (cgi) (built: Oct 15 2017 06:38:59)
Python
デフォルトは Python 2.7 になっている。
python3 コマンドのデフォルトは 3.6 になっている。
Python 2.7
$ which python
/usr/local/bin/python
$ python --version
Python 2.7.5
Python 3.6
$ which python3
/usr/local/bin/python3
$ python3 --version
Python 3.6.8
Python 3.5
$ which python3.5
/usr/local/bin/python3.5
$ python3.5 --version
Python 3.5.1
Ruby
デフォルトは Ruby 2.3 になっている。
最も新しいバージョンは Ruby 2.6 がインストールされている。
Ruby 2.3
$ which ruby
/usr/local/rvm/rubies/ruby-2.3.0/bin/ruby
$ ruby --version
ruby 2.3.0p0 (2015-12-25 revision 53290) [x86_64-linux]
Ruby 2.6
$ which ruby2.6
/usr/local/bin/ruby2.6
$ ruby2.6 --version
ruby 2.6.3p62 (2019-04-16 revision 67580) [x86_64-linux]
Ruby 2.5
$ which ruby2.5
/usr/local/bin/ruby2.5
$ ruby2.5 --version
ruby 2.5.5p157 (2019-03-15 revision 67260) [x86_64-linux]
Ruby 2.4
$ which ruby2.4
/usr/local/bin/ruby2.4
$ ruby2.4 --version
ruby 2.4.6p354 (2019-04-01 revision 67394) [x86_64-linux]
Ruby 2.2
$ which ruby2.2
/usr/local/bin/ruby2.2
$ ruby2.2 --version
ruby 2.2.10p489 (2018-03-28 revision 63023) [x86_64-linux]
Ruby 2.1
$ which ruby2.1
/usr/local/bin/ruby2.1
$ ruby2.1 --version
ruby 2.1.10p492 (2016-04-01 revision 54464) [x86_64-linux]
Ruby 2.0
$ which ruby2.0
/usr/local/bin/ruby2.0
$ ruby2.0 --version
ruby 2.0.0p648 (2015-12-16 revision 53162) [x86_64-linux]
Ruby 1.9
$ which ruby1.9
/usr/local/bin/ruby1.9
$ ruby1.9 --version
ruby 1.9.3p551 (2014-11-13 revision 48407) [x86_64-linux]
Ruby 1.8
$ which ruby1.8
/usr/local/bin/ruby1.8
$ ruby1.8 --version
ruby 1.8.7 (2014-01-28 patchlevel 376) [x86_64-linux]