OSX

OS X 10.10 Yosemite シェルや言語のバージョン

More than 3 years have passed since last update.


2015/04/11

Xcode 6.3, Command Line Tools 6.3 インストール後の結果を追記


先日App Store経由で


  • Xcode 6.2

  • Command Line Tools (OS X 10.10) 6.2

をインストールした。各種バージョンがどう変わったかを淡々と確認したメモ:


凡例

$ (バージョン確認コマンド)

- [6.n]
Command Line Tools (OS X 10.10) 6.n, Xcode 6.n 環境での出力


xcode

$ xcode-select --version

- [6.3], [6.2]
xcode-select version 2339.
- [6.1]
xcode-select version (確認忘れ、2339よりは古かった)


シェル

$ bash --version

- [6.3], [6.2]
GNU bash, version 3.2.57(1)-release (x86_64-apple-darwin14)
Copyright (C) 2007 Free Software Foundation, Inc.
- [6.1]
GNU bash, version 3.2.53(1)-release (x86_64-apple-darwin14)
Copyright (C) 2007 Free Software Foundation, Inc.

$ tcsh --version

- [6.3], [6.2], [6.1]
tcsh 6.17.00 (Astron) 2009-07-10 (x86_64-apple-darwin) options wide,nls,dl,al,kan,sm,rh,color,filec

$ zsh --version

- [6.3], [6.2], [6.1]
zsh 5.0.5 (x86_64-apple-darwin14.0)


プログラミング言語


Python

$ python -V

- [6.3], [6.2], [6.1]
Python 2.7.6


Ruby

$ ruby --version

- [6.3], [6.2], [6.1]
ruby 2.0.0p481 (2014-05-08 revision 45883) [universal.x86_64-darwin14]


Swift

$ swift --version

- [6.3]
Apple Swift version 1.2 (swiftlang-602.0.49.3 clang-clang-602.0.49)
Target: x86_64-apple-darwin14.3.0
- [6.2]
Swift version 1.1 (swift-600.0.57.4)
Target: x86_64-apple-darwin14.1.0
- [6.1]
Swift version 1.0 (swift-600.0.51.4)
Target: x86_64-apple-darwin14.0.0


Perl

$ perl -v

- [6.3], [6.2], [6.1]
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.


Java

$ java --version

- [6.3], [6.2], [6.1]
No Java runtime present, requesting install.

いずれの場合も、(未インストールであれば)インストールを求めるウィンドウが表示される。Xcodeインストールとは独立している。[詳しい情報]クリックで以下が開く:

Java SE - Downloads | Oracle Technology Network | Oracle


バージョン管理


git

$ git --version

- [6.3]
git version 2.3.2 (Apple Git-55)
- [6.2]
git version 1.9.5 (Apple Git-50.3)
- [6.1]
(確認忘れ)


subversion

$ svn --version

- [6.3]
svn, version 1.7.19 (r1643991)
compiled Mar 10 2015, 12:33:03

Copyright (C) 2014 The Apache Software Foundation.
This software consists of contributions made by many people; see the NOTICE
file for more information.
Subversion is open source software, see http://subversion.apache.org/

The following repository access (RA) modules are available:

* ra_neon : Module for accessing a repository via WebDAV protocol using Neon.
- handles 'http' scheme
- handles 'https' scheme
* ra_svn : Module for accessing a repository using the svn network protocol.
- handles 'svn' scheme
* ra_local : Module for accessing a repository on local disk.
- handles 'file' scheme
* ra_serf : Module for accessing a repository via WebDAV protocol using serf.
- handles 'http' scheme
- handles 'https' scheme

- [6.2]
svn, version 1.7.19 (r1643991)
compiled Feb 24 2015, 19:10:03
(以下同上)

- [6.1]
(確認忘れ)


その他


SSH

$ ssh -v

- [6.3], [6.2], [6.1]
OpenSSH_6.2p2, OSSLShim 0.9.8r 8 Dec 2011


clang, gcc, g++

$ clang -v

- [6.3]
Apple LLVM version 6.1.0 (clang-602.0.49) (based on LLVM 3.6.0svn)
Target: x86_64-apple-darwin14.3.0
Thread model: posix
- [6.2]
Apple LLVM version 6.0 (clang-600.0.57) (based on LLVM 3.5svn)
Target: x86_64-apple-darwin14.1.0
Thread model: posix
- [6.1]
Apple LLVM version 6.0 (clang-600.0.51) (based on LLVM 3.5svn)
Target: x86_64-apple-darwin14.0.0
Thread model: posix

$ gcc -v

- [6.3]
Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/usr/include/c++/4.2.1
Apple LLVM version 6.1.0 (clang-602.0.49) (based on LLVM 3.6.0svn)
Target: x86_64-apple-darwin14.3.0
Thread model: posix
- [6.2]
Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/usr/include/c++/4.2.1
Apple LLVM version 6.0 (clang-600.0.57) (based on LLVM 3.5svn)
Target: x86_64-apple-darwin14.1.0
Thread model: posix
- [6.1]
Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/usr/include/c++/4.2.1
Apple LLVM version 6.0 (clang-600.0.51) (based on LLVM 3.5svn)
Target: x86_64-apple-darwin14.0.0
Thread model: posix

$ g++ -v

- [6.3]
Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/usr/include/c++/4.2.1
Apple LLVM version 6.1.0 (clang-602.0.49) (based on LLVM 3.6.0svn)
Target: x86_64-apple-darwin14.3.0
Thread model: posix
- [6.2]
Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/usr/include/c++/4.2.1
Apple LLVM version 6.0 (clang-600.0.57) (based on LLVM 3.5svn)
Target: x86_64-apple-darwin14.1.0
Thread model: posix
- [6.1]
Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/usr/include/c++/4.2.1
Apple LLVM version 6.0 (clang-600.0.51) (based on LLVM 3.5svn)
Target: x86_64-apple-darwin14.0.0
Thread model: posix


macport

$ port version

Error: Current platform "darwin 14" does not match expected platform "darwin 13"
Error: If you upgraded your OS, please follow the migration instructions: https://trac.macports.org/wiki/Migration
OS platform mismatch
while executing
"mportinit ui_options global_options global_variations"
Error: /opt/local/bin/port: Failed to initialize MacPorts, OS platform mismatch

未インストールの場合上記が表示される。ダウンロード、インストールしてから、以下のようにバージョン表示が行える:

Warning: port definitions are more than two weeks old, consider updating them by running 'port selfupdate'.

Version: 2.3.3


更新方法

もちろんXcodeを更新してもmacportsは更新されない。上記に示される port selfupdate を実施すると以下が表示される。確実には sudo port self update でもよい

$ sudo port selfupdate


---> Updating MacPorts base sources using rsync
MacPorts base version 2.3.3 installed,
MacPorts base version 2.3.3 downloaded.
---> Updating the ports tree
---> MacPorts base is already the latest version

The ports tree has been updated. To upgrade your installed ports, you should run
port upgrade outdated

その後 port upgrade outdated でインストール済み各パッケージの更新が行える