8
10

More than 5 years have passed since last update.

macOS 同梱コマンドやプログラム言語のデフォルト・バージョン情報情報(High Sierra 新規インストール時)

Last updated at Posted at 2018-02-26

Mac の High Sierra に標準インストールされている各種プログラム言語やコマンドなどの「デフォルトのバージョン情報」です。

新規に OS をクリーン・インストールし、直後に全てのアップデートを終わらせた状態(OSX 10.13.5)です。(2018/07/05 現在)

「あれ? wget って Mac に標準で入っていたっけ?」みたいな時にご利用ください。右側の目次から探すと楽かも。

なお、チェック項目は GitHub で共有していますので、他に確認したいものがあれば Pull Request するか、この記事にコメントくださーい。記事を書いた動機については、ページ下部の「所感」をご覧ください。

検証環境

項目 内容 備考
マシン Mac mini Late 2012
OSイメージ なし OSX Mountain Lion -> macOS High Sierra(v10.8 -> 10.13.5)
最終検証日 2018/07/05

検証手順

  1. Option + ⌘ + R で起動&初期化(Mountain Lion)
  2. おもむろにアップデート、眠くなりながらアップデート(High Sierra)
  3. バージョンの確認

バージョン一覧

(ABC順)

B

bash (v3.2.57)

$ bash --version
GNU bash, version 3.2.57(1)-release (x86_64-apple-darwin17)
Copyright (C) 2007 Free Software Foundation, Inc.

brew (未インストール)

$ brew -v
sh: brew: command not found

C

cURL (v7.54.0)

$ curl --version
curl 7.54.0 (x86_64-apple-darwin17.0) libcurl/7.54.0 LibreSSL/2.0.20 zlib/1.2.11
nghttp2/1.24.0
Protocols: dict file ftp ftps gopher http https imap imaps ldap ldaps pop3 pop3s rtsp smb
smbs smtp smtps telnet tftp
Features: AsynchDNS IPv6 Largefile GSS-API Kerberos SPNEGO NTLM NTLM_WB SSL libz HTTP2
UnixSockets HTTPS-proxy

G

gcc (未インストール)

$ gcc -v
xcode-select: note: no developer tools were found at '/Applications/Xcode.app', requesting
install. Choose an option in the dialog to download the command line developer tools.

git (未インストール)

$ git --version
xcode-select: note: no developer tools were found at '/Applications/Xcode.app', requesting
install. Choose an option in the dialog to download the command line developer tools.

J

java (未インストール)

$ java --version
No Java runtime present, requesting install.

M

macOS (v10.13.5)

$ sw_vers
ProductName:    Mac OS X
ProductVersion:    10.13.5
BuildVersion:    17F77

make (未インストール)

$ make --version
xcode-select: note: no developer tools were found at '/Applications/Xcode.app', requesting
install. Choose an option in the dialog to download the command line developer tools.

P

perl (v5.18.2)

$ perl -v
$ perl -v
This is perl 5, version 18, subversion 2 (v5.18.2) built for darwin-thread-multi-2level
(with 2 registered patches, see perl -V for more detail)
Copyright 1987-2013, Larry Wall
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.

PHP (v7.1.16)

$ php -v
PHP 7.1.16 (cli) (built: Apr  1 2018 13:14:42) ( NTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.1.0, Copyright (c) 1998-2018 Zend Technologies

pip (未インストール)

$ pip --version
sh: pip: command not found

port (未インストール)

$ version
sh: version: command not found

Pydoc (v2.7)

$ pydoc modules
$ pydoc modules
/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/PyObjC/objc/_bridgesupport.py:674:
RuntimeWarning: Error parsing BridgeSupport data for AVFoundation: PyObjCRT_SkipTypeSpec:
Unhandled type '5d' ]}
  warnings.warn("Error parsing BridgeSupport data for %s: %s" % (frameworkName, e),
RuntimeWarning)
2018-07-05 15:37:28.815 Python[1036:124009] Cannot find executable for CFBundle
0x7fbc741f0650 </System/Library/Frameworks/Message.framework> (not loaded)
Please wait a moment while I gather a list of all available modules...
AVFoundation        _TE                 difflib             profile
Accounts            _Win                dircache            pstats
AddressBook         __builtin__         dis                 pty
AppKit              __future__          distutils           pwd
AppleScriptKit      _abcoll             dl                  py2app
AppleScriptObjC     _ast                doctest             py_compile
Audio_mac           _bisect             dumbdbm             pyclbr
Automator           _builtinSuites      dummy_thread        pydoc
BaseHTTPServer      _codecs             dummy_threading     pydoc_data
Bastion             _codecs_cn          easy_install        pyexpat
CFNetwork           _codecs_hk          email               pylab
CFOpenDirectory     _codecs_iso2022     encodings           pyparsing
CGIHTTPServer       _codecs_jp          ensurepip           pytz
Canvas              _codecs_kr          errno               quopri
Carbon              _codecs_tw          exceptions          random
Cocoa               _collections        fcntl               re
CodeWarrior         _csv                filecmp             readline
Collaboration       _ctypes             fileinput           repr
ColorPicker         _ctypes_test        findertools         resource
ConfigParser        _curses             fnmatch             rexec
Cookie              _curses_panel       formatter           rfc822
CoreData            _elementtree        fpformat            rlcompleter
CoreFoundation      _functools          fractions           robotparser
CoreGraphics        _hashlib            ftplib              runpy
CoreLocation        _heapq              functools           sched
CoreText            _hotshot            future_builtins     scipy
Dialog              _io                 gc                  select
DictionaryServices  _json               genericpath         sets
DocXMLRPCServer     _locale             gensuitemodule      setuptools
EasyDialogs         _lsprof             gestalt             sgmllib
EventKit            _markerlib          getopt              sha
ExceptionHandling   _multibytecodec     getpass             shelve
Explorer            _multiprocessing    gettext             shlex
FSEvents            _osx_support        glob                shutil
FileDialog          _pyio               grp                 signal
Finder              _random             gzip                site
FixTk               _scproxy            hashlib             six
Foundation          _socket             heapq               smtpd
FrameWork           _sqlite3            hmac                smtpd2
HTMLParser          _sre                hotshot             smtplib
IN                  _ssl                htmlentitydefs      sndhdr
InputMethodKit      _strptime           htmllib             socket
InstallerPlugins    _struct             httplib             sqlite3
InstantMessage      _symtable           ic                  sre
JavaScriptCore      _sysconfigdata      icglue              sre_compile
LatentSemanticMapping _testcapi           icopen              sre_constants
LaunchServices      _threading_local    idlelib             sre_parse
MacOS               _tkinter            ihooks              ssl
Message             _warnings           imageop             stat
MimeWriter          _weakref            imaplib             statvfs
MiniAEFrame         _weakrefset         imghdr              string
Nav                 abc                 imp                 stringold
Netscape            aepack              importlib           stringprep
OSATerminology      aetools             imputil             strop
OpenDirectory       aetypes             inspect             struct
OpenSSL             aifc                io                  subprocess
PixMapWrapper       altgraph            itertools           sunau
PreferencePanes     antigravity         json                sunaudio
PubSub              anydbm              keyword             symbol
PyObjCTools         applesingle         lib2to3             symtable
QTKit               appletrawmain       linecache           sys
Quartz              appletrunner        locale              sysconfig
Queue               argparse            logging             syslog
ScreenSaver         argvemulator        macerrors           tabnanny
ScriptingBridge     array               macholib            tarfile
ScrolledText        ast                 macostools          telnetlib
SearchKit           asynchat            macpath             tempfile
ServiceManagement   asyncore            macresource         terminalcommand
SimpleDialog        atexit              macurl2path         termios
SimpleHTTPServer    audiodev            mailbox             test
SimpleXMLRPCServer  audioop             mailcap             textwrap
Social              autoGIL             markupbase          this
SocketServer        base64              marshal             thread
StdSuites           bdb                 math                threading
StringIO            bdist_mpkg          matplotlib          time
SyncServices        bgenlocations       md5                 timeit
SystemConfiguration binascii            mhlib               tkColorChooser
SystemEvents        binhex              mimetools           tkCommonDialog
Tix                 bisect              mimetypes           tkFileDialog
Tkconstants         bonjour             mimify              tkFont
Tkdnd               bsddb               mmap                tkMessageBox
Tkinter             bsddb185            modulefinder        tkSimpleDialog
UserDict            buildtools          modulegraph         toaiff
UserList            bundlebuilder       multifile           token
UserString          bz2                 multiprocessing     tokenize
WebKit              cPickle             mutex               trace
_AE                 cProfile            netrc               traceback
_AH                 cStringIO           new                 ttk
_App                calendar            nis                 tty
_CF                 cfmfile             nntplib             turtle
_CG                 cgi                 ntpath              types
_CarbonEvt          cgitb               nturl2path          unicodedata
_Cm                 chunk               numbers             unittest
_Ctl                cmath               numpy               urllib
_Dlg                cmd                 objc                urllib2
_Drag               code                opcode              urlparse
_Evt                codecs              operator            user
_File               codeop              optparse            uu
_Fm                 collections         os                  uuid
_Folder             colorsys            os2emxpath          videoreader
_Help               commands            parser              warnings
_IBCarbon           compileall          pdb                 wave
_Icn                compiler            pickle              weakref
_LWPCookieJar       contextlib          pickletools         webbrowser
_Launch             cookielib           pimp                whichdb
_List               copy                pipes               wsgiref
_Menu               copy_reg            pkg_resources       xattr
_Mlte               crypt               pkgutil             xdrlib
_MozillaCookieJar   csv                 platform            xml
_OSA                ctypes              plistlib            xmllib
_Qd                 curses              popen2              xmlrpclib
_Qdoffs             datetime            poplib              xxsubtype
_Qt                 dateutil            posix               zipfile
_Res                dbhash              posixfile           zipimport
_Scrap              dbm                 posixpath           zlib
_Snd                decimal             pprint              zope
Enter any module name to get more help.  Or, type "modules spam" to search
for modules whose descriptions contain the word "spam".

Python (v2.7.10)

$ python --version
Python 2.7.10

Python2 (未インストール)

$ python2 --version
sh: python2: command not found

Python3 (未インストール)

$ python3 --version
sh: python3: command not found

T

tidy (v15.18.1)

$ tidy -v
HTML Tidy for Mac OS X released on 31 October 2006 - Apple Inc. build 15.18.1

V

vi/vim (v8.0)

$ vi --version
$ vi --version
VIM - Vi IMproved 8.0 (2016 Sep 12, compiled Nov 29 2017 18:37:46)
Included patches: 1-503, 505-680, 682-1283
Compiled by root@apple.com
Normal version without GUI.  Features included (+) or not (-):
+acl             +file_in_path    -mouse_sgr       +tag_old_static
-arabic          +find_in_path    -mouse_sysmouse  -tag_any_white
+autocmd         +float           -mouse_urxvt     -tcl
-balloon_eval    +folding         +mouse_xterm     -termguicolors
-browse          -footer          +multi_byte      -terminal
+builtin_terms   +fork()          +multi_lang      +terminfo
+byte_offset     -gettext         -mzscheme        +termresponse
+channel         -hangul_input    +netbeans_intg   +textobjects
+cindent         +iconv           +num64           +timers
-clientserver    +insert_expand   +packages        +title
-clipboard       +job             +path_extra      -toolbar
+cmdline_compl   +jumplist        -perl            +user_commands
+cmdline_hist    -keymap          +persistent_undo +vertsplit
+cmdline_info    +lambda          +postscript      +virtualedit
+comments        -langmap         +printer         +visual
-conceal         +libcall         -profile         +visualextra
+cryptv          +linebreak       +python/dyn      +viminfo
+cscope          +lispindent      -python3         +vreplace
+cursorbind      +listcmds        +quickfix        +wildignore
+cursorshape     +localmap        +reltime         +wildmenu
+dialog_con      -lua             -rightleft       +windows
+diff            +menu            +ruby/dyn        +writebackup
+digraphs        +mksession       +scrollbind      -X11
-dnd             +modify_fname    +signs           -xfontset
-ebcdic          +mouse           +smartindent     -xim
-emacs_tags      -mouseshape      +startuptime     -xpm
+eval            -mouse_dec       +statusline      -xsmp
+ex_extra        -mouse_gpm       -sun_workshop    -xterm_clipboard
+extra_search    -mouse_jsbterm   +syntax          -xterm_save
-farsi           -mouse_netterm   +tag_binary
   system vimrc file: "$VIM/vimrc"
     user vimrc file: "$HOME/.vimrc"
 2nd user vimrc file: "~/.vim/vimrc"
      user exrc file: "$HOME/.exrc"
       defaults file: "$VIMRUNTIME/defaults.vim"
  fall-back for $VIM: "/usr/share/vim"
Compilation: gcc -c -I. -Iproto -DHAVE_CONFIG_H   -DMACOS_X_UNIX  -g -O2 -U_FORTIFY_SOURCE
-D_FORTIFY_SOURCE=1
Linking: gcc   -L/usr/local/lib -o vim        -lm -lncurses  -liconv -framework Cocoa

W

wget (未インストール)

$ wget --version
sh: wget: command not found

所感

最近、満を持して mac の OS を macOS High Sierra にしたところ、以前作成した PHP の CLI アプリが微妙に動かなくなってしまいました。いや、動くのですがワーニングなどのエラーを吐き出すようになって、いささか文句を多く言うようになったのです。

PHP のバージョンを確認すると、入れた記憶のない PHP 7.1.7 になっていました。他にも wine でラッピングした Windows アプリが動かなかったり・・・例の OS アップグレードに憑きモノというやつです。

また、新規 OS インストールの場合 wget などは標準で入っていないのですが、Qiita 記事を読んでサラりと「wgetしてね。うふ」といった記載で「あれ?動かない(→入ってないから)」と擦った揉んだで、いつの間にやらインストールしたのかといったものが増えたりしました。

そのため、自身のドキュメントを作成したりする際にも「あれ?これって別途インストールするんだっけ?」とか、「ちょっと、あんたのドキュメント通りやっても動かないんっすけど!ヾ(`Д´)ノ゙」と言われる事が増えて来ました。

そこで、別ドライブに新規に OS をインストールして取り急ぎ現状必要なバージョンをピックアップしてみました。brew(homebrew)など、気付き次第なにかあれば、適宜追加して行きたいと思います。

8
10
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
8
10