コマンドプロンプトで色々なバージョンの確認

Windowsのコマンドプロンプトで、各種インストールしてあるバージョンを確認するコマンド。

Apache

C:\Apache2.2\bin\httpd.exe -v
C:\Apache2.2\bin\httpd.exe -V
※Cドライブ直下、ディレクトリ名Apache2.2の場合

-vの方は簡易的、-Vの方は詳細。

結果)-Vの場合
Server version: Apache/2.2.22 (Win32)
Server built:   Jan 28 2012 11:16:39
Server's Module Magic Number: 20051115:30
Server loaded:  APR 1.4.5, APR-Util 1.4.1
Compiled using: APR 1.4.5, APR-Util 1.4.1
Architecture:   32-bit
Server MPM:     WinNT
  threaded:     yes (fixed thread count)
    forked:     no
Server compiled with....
 -D APACHE_MPM_DIR="server/mpm/winnt"
 -D APR_HAS_SENDFILE
 -D APR_HAS_MMAP
 -D APR_HAS_OTHER_CHILD
 -D AP_HAVE_RELIABLE_PIPED_LOGS
 -D DYNAMIC_MODULE_LIMIT=128
 -D HTTPD_ROOT="/apache"
 -D DEFAULT_SCOREBOARD="logs/apache_runtime_status"
 -D DEFAULT_ERRORLOG="logs/error.log"
 -D AP_TYPES_CONFIG_FILE="conf/mime.types"
 -D SERVER_CONFIG_FILE="conf/httpd.conf"

PHP

php -v
php --version

どちらでも同じ結果。

結果)
PHP 5.4.24 (cli) (built: Jan  8 2014 20:26:31)
Copyright (c) 1997-2013 The PHP Group
Zend Engine v2.4.0, Copyright (c) 1998-2013 Zend Technologies

Pear

pear version

結果)
PEAR Version: 1.9.5
PHP Version: 5.4.24
Zend Engine Version: 2.4.0
Running on: Windows NT …

Perl

perl -v
perl --version

どちらでも同じ結果。

結果)
This is perl 5, version 16, subversion 3 (v5.16.3) built for MSWin32-x86-multi-t
hread
(with 1 registered patch, see perl -V for more detail)

Copyright 1987-2012, Larry Wall

Binary build 1603 [296746] provided by ActiveState http://www.ActiveState.com
Built Mar 13 2013 11:29:21

Perl may be copied only under the terms of either the Artistic License or the
GNU General Public License, which may be found in the Perl 5 source kit.

Complete documentation for Perl, including FAQ lists, should be found on
this system using "man perl" or "perldoc perl".  If you have access to the
Internet, point your browser at http://www.perl.org/, the Perl Home Page.

Ruby

ruby -v
ruby --version

どちらでも同じ結果。

結果)
ruby 2.1.5p273 (2014-11-13 revision 48405) [i386-mingw32]

Python

python -V
python --version

どちらでも同じ結果。

結果)
Python 3.4.2

ImageMagick

display -version

結果)
Version: ImageMagick 6.7.8-1 2012-07-04 Q16 http://www.imagemagick.org
Copyright: Copyright (C) 1999-2012 ImageMagick Studio LLC
Features: OpenMP

Java

java -version

結果)
java version "1.7.0_51"
Java(TM) SE Runtime Environment (build 1.7.0_51-b13)
Java HotSpot(TM) Client VM (build 24.51-b03, mixed mode, sharing)