Hacker News new | past | comments | ask | show | jobs | submit login

Since the article didn't mention it, I'll ask here.

Anyone know the versions of Python, Ruby, Apache, PHP, etc. that come installed with OS X Lion?




  $ /usr/bin/python -V
  Python 2.7.1
  
  $ /usr/bin/ruby --version
  ruby 1.8.7 (2010-01-10 patchlevel 249) [universal-darwin11.0]
  
  $ /usr/bin/php --version
  PHP 5.3.6 with Suhosin-Patch (cli) (built: Jun 16 2011 22:26:57) 
  Copyright (c) 1997-2011 The PHP Group
  Zend Engine v2.3.0, Copyright (c) 1998-2011 Zend Technologies
  
  $ /usr/sbin/httpd -V
  Server version: Apache/2.2.19 (Unix)
  Server built:   Jun 16 2011 22:09:54
  Server's Module Magic Number: 20051115:28
  Server loaded:  APR 1.4.2, APR-Util 1.3.10
  Compiled using: APR 1.4.2, APR-Util 1.3.10
  Architecture:   64-bit
  Server MPM:     Prefork
    threaded:     no
      forked:     yes (variable process count)
  Server compiled with....
   -D APACHE_MPM_DIR="server/mpm/prefork"
   -D APR_HAS_SENDFILE
   -D APR_HAS_MMAP
   -D APR_HAVE_IPV6 (IPv4-mapped addresses enabled)
   -D APR_USE_FLOCK_SERIALIZE
   -D APR_USE_PTHREAD_SERIALIZE
   -D SINGLE_LISTEN_UNSERIALIZED_ACCEPT
   -D APR_HAS_OTHER_CHILD
   -D AP_HAVE_RELIABLE_PIPED_LOGS
   -D DYNAMIC_MODULE_LIMIT=128
   -D HTTPD_ROOT="/usr"
   -D SUEXEC_BIN="/usr/bin/suexec"
   -D DEFAULT_PIDLOG="/private/var/run/httpd.pid"
   -D DEFAULT_SCOREBOARD="logs/apache_runtime_status"
   -D DEFAULT_LOCKFILE="/private/var/run/accept.lock"
   -D DEFAULT_ERRORLOG="logs/error_log"
   -D AP_TYPES_CONFIG_FILE="/private/etc/apache2/mime.types"
   -D SERVER_CONFIG_FILE="/private/etc/apache2/httpd.conf"

  $ perl -v | head -2

  This is perl 5, version 12, subversion 3 (v5.12.3) built for darwin-thread-multi-2level


Would you be kind enough to show the output of `perl -v | head -2` ?


This is perl 5, version 12, subversion 3 (v5.12.3) built for darwin-thread-multi-2level


I heard there was some kind of Postgres included in the standard Lion installation, that true?

Also, is there a Python 3 bundled?


Appears to include the "psql" command-line client and related support libraries, but no server. The server might be present in Lion Server, which I don't have.


Anyone know why Apple didn't update Ruby to 1.9.2 in Lion?


Most likely they were worried about breaking existing scripts since 1.8 has been the official Ruby of Mac OS X for pretty much its entire lifetime. Ruby 1.9 is better, but it did manage to break a decent number of programs.


If you need 1.9.2, the cleanest way to currently get it is via RVM.

Install RVM, then:

  rvm install 1.9.2
  rvm --default use 1.9.2
https://rvm.beginrescueend.com/


What about `sqlite3 -version`?

Can we haz 3.7 and its Write-Ahead Log?


$ sqlite3 -version 3.7.5


Pretty sure Python is 2.7 (but don't remember sources).




Consider applying for YC's Summer 2025 batch! Applications are open till May 13

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: