Can't really tell from this. Does anyone know definitively if Mac OS X
is still shipping with a 32 - bit version of Ruby or if there is a way
to check?
Can't really tell from this. Does anyone know definitively if Mac OS X
is still shipping with a 32 - bit version of Ruby or if there is a way
to check?
I can't say with 100% conviction, but i386 is a 32-bit platform, so my
guess would be that you're running a 32-bit Ruby.
Quick way to find out: download and build (but don't install!) Ruby,
taking care to enable 64-bit. Then run your new ruby with -v and see
what it outputs.
Ben
···
On Mon, Feb 2, 2009 at 9:45 AM, Wes Gamble <weyus@att.net> wrote:
8 on 64bit, 4 on 32bit. At least on Linux (and hopefully everywhere).
-jh
···
On Tue, 3 Feb 2009 02:45:00 +0900, Wes Gamble wrote:
Can't really tell from this. Does anyone know definitively if Mac OS X
is still shipping with a 32 - bit version of Ruby or if there is a way
to check?
Can't really tell from this. Does anyone know definitively if Mac OS X
is still shipping with a 32 - bit version of Ruby or if there is a way
to check?
--
Hey God, why are you doing this to me ?
Am I not living up to what I'm supposed to be ?
Why am I seething with this animosity ? (Nine Inch Nails,
Hey God, i think you owe me a great big apology Terrible Lie)
Can't really tell from this. Does anyone know definitively if Mac OS X
is still shipping with a 32 - bit version of Ruby or if there is a way
to check?
Can't really tell from this. Does anyone know definitively if Mac OS X
is still shipping with a 32 - bit version of Ruby or if there is a way
to check?
The stock Ruby 1.8.6 installation on 10.5 consists of a 4-way fat (ppc +
ppc64 + i386 + x86_64) framework build which you'll find in
/System/Library/Frameworks, with a 32-bit fat command line interpreter
symlinked to /usr/bin/ruby. This means Ruby will run as 32-bit in 32-bit
processes (e.g. when running scripts via /usr/bin/ruby) and as 64-bit in
64-bit processes.
A friend just bought a new Mac and is trying to figure out whether they
have 32 or 64 bit Ruby installed.
As a note for linode users, you should probably install the 32 bit
version of your OS instead of the 64 bit version so that your rails
processes use half as much memory
Can't really tell from this. Does anyone know definitively if Mac OS X
is still shipping with a 32 - bit version of Ruby or if there is a way
to check?
The stock Ruby 1.8.6 installation on 10.5 consists of a 4-way fat (ppc +
ppc64 + i386 + x86_64) framework build which you'll find in
/System/Library/Frameworks, with a 32-bit fat command line interpreter
symlinked to /usr/bin/ruby. This means Ruby will run as 32-bit in 32-bit
processes (e.g. when running scripts via /usr/bin/ruby) and as 64-bit in
64-bit processes.
The stock Ruby 1.8.6 installation on 10.5 consists of a 4-way fat (ppc +
ppc64 + i386 + x86_64) framework build which you'll find in
/System/Library/Frameworks, with a 32-bit fat command line interpreter
symlinked to /usr/bin/ruby. This means Ruby will run as 32-bit in 32-bit
processes (e.g. when running scripts via /usr/bin/ruby) and as 64-bit in
64-bit processes.
So, /usr/bin/ruby invokes the 32-bit version, how do we invoke the
64-bit version?
Just to add a universal binary is a container binary, in which you
can add several CPU architectures. Use `lipo' if you want more
information or add/delete architectures.
If you want to run it on a specific platform use `arch'
$ arch -arch x86_64 /usr/bin/ruby
arch: posix_spawnp: /usr/bin/ruby: Bad CPU type in executable
zsh: exit 1 arch -arch x86_64 /usr/bin/ruby
$ arch -arch ppc /usr/bin/ruby
^C
The manpage of `arch' :
-------------8<-------------
The arch_name argument must be one of the currently supported architectures: