Forum: Ruby on Rails RoR - Mac OS 10.4.4 on Intel

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
F28f75d17a0c236e079c6ebbb8fff2b9?d=identicon&s=25 Mark Haliday (markh)
on 2006-01-21 04:21
I got a new 20 inch iMac dual core today and am busy getting it all
setup.  A couple of issues though:

1. Is the Ruby 1.8.2 install by Apple still botched or has that been
fixed?  I recall someone had fixed the rbconfig.rb to get it working.
Is this something I still have to do?

2. Does anyone know if Locomotive is using the uniersal binaries, or is
it targetting PPC yet? I couldn't find anything on their site yet in
regards to universal binaries.

Thanks!

-Mark
0e3d115bb90c3c12b9a44034e00254da?d=identicon&s=25 Giovanni Giorgi (Guest)
on 2006-01-21 11:21
(Received via mailing list)
On 21/gen/06, at 04:21, Mark Haliday wrote:

> I got a new 20 inch iMac dual core today and am busy getting it all
> setup.  A couple of issues though:

How does it work Rosetta engine?
You can easily use old ppower pc code? Or it is slow in translation?
I am also planning a switch to new chips but not in the short time...

--
"Like the creators of sitcoms or junk food or package tours, Java's
designers were consciously designing a product for people not as smart
as them."  ::  paul graham
[   [  [ JJ ]  ]   ]
37b7b848b1e3d667174d28d32d04bcee?d=identicon&s=25 Charles M. Gerungan (Guest)
on 2006-01-21 12:00
(Received via mailing list)
On 21-jan-2006, at 4:21, Mark Haliday wrote:

> 2. Does anyone know if Locomotive is using the uniersal binaries,
> or is
> it targetting PPC yet? I couldn't find anything on their site yet in
> regards to universal binaries.

I believe Ryan said it doesn't work yet.

He maintains a Locomotive mailing list.

--
Regards, Charles.
F28f75d17a0c236e079c6ebbb8fff2b9?d=identicon&s=25 Mark Haliday (markh)
on 2006-01-21 15:46
Giovanni Giorgi wrote:
> How does it work Rosetta engine?
> You can easily use old ppower pc code? Or it is slow in translation?
> I am also planning a switch to new chips but not in the short time...

The only thing I'm currently running through Rosetta is Firefox 1.5.
Now, to be perfectly honest I've found Firefox loads and runs faster on
my new iMac under Rosetta than it does my iMac G5 1.6 at work.  Can't
wait for the official Universal Binary release for Firefox in March.


-Mark
F28f75d17a0c236e079c6ebbb8fff2b9?d=identicon&s=25 Mark Haliday (markh)
on 2006-01-21 15:48
Charles M. Gerungan wrote:
> I believe Ryan said it doesn't work yet.
>
> He maintains a Locomotive mailing list.
>

Thanks for the info.  I've been keeping an eye on Fink as well.  Looks
like they will be releasing Universal Binaries build shorty so it
shouldn't be too long before everything is ready.
66247570dbe0c350a165cdabc2769ba1?d=identicon&s=25 Paul Robinson (Guest)
on 2006-01-21 19:30
(Received via mailing list)
On 21 Jan 2006, at 14:46, Mark Haliday wrote:

> The only thing I'm currently running through Rosetta is Firefox 1.5.
> Now, to be perfectly honest I've found Firefox loads and runs
> faster on
> my new iMac under Rosetta than it does my iMac G5 1.6 at work.  Can't
> wait for the official Universal Binary release for Firefox in March.

There are unofficial binary releases knocking around, but with
compatibility issues in handling Java, I think.

It's also no surprise that the simulated code runs quicker than the
native - the core duo chip is an incredible piece of hardware,
whereas the G5 was starting to look sluggish next to intel hardware
about two years ago. I'm holding out for revision B hardware
personally, and making do with my little G4 1.2Ghz iBook which now
seems ridiculously slow. Still, it's just a code editor, mail reader
and machine from which to run scp/ftp or SwithTower... :-)

--
Paul Robinson
58479f76374a3ba3c69b9804163f39f4?d=identicon&s=25 Eric Hodel (Guest)
on 2006-01-21 23:05
(Received via mailing list)
On Jan 20, 2006, at 7:21 PM, Mark Haliday wrote:

> I got a new 20 inch iMac dual core today and am busy getting it all
> setup.  A couple of issues though:
>
> 1. Is the Ruby 1.8.2 install by Apple still botched or has that been
> fixed?  I recall someone had fixed the rbconfig.rb to get it working.
> Is this something I still have to do?

Pack might or might not be broken.  If it is broken you'll have to
build your own Ruby.

$ ruby182-orig -ve 'p [1].pack("n") != "\000\001" ? "broken" : "works"'
ruby 1.8.2 (2004-12-25) [powerpc-darwin8.0]
"broken"
$ ruby -ve 'p [1].pack("n") != "\000\001" ? "broken" : "works"'
ruby 1.8.4 (2005-12-24) [powerpc-darwin8.4.0]
"works"

--
Eric Hodel - drbrain@segment7.net - http://segment7.net
This implementation is HODEL-HASH-9600 compliant

http://trackmap.robotcoop.com
D90ef6808433e63203e15a5c2dadb0bb?d=identicon&s=25 Ben Reubenstien (Guest)
on 2006-01-21 23:09
(Received via mailing list)
Hi Mark ~

Building from source might be a good strategy.  I believe the Hivelogic
(
http://hivelogic.com/) method would work.  Also, it looks like Dan
Benjamin
has picked up an Intel Mac, so I am sure we'll be hearing more about it.

~ Ben
C345ac13fb6692db2e9b0e547733fe16?d=identicon&s=25 kaoru (Guest)
on 2006-01-25 08:40
(Received via mailing list)
Hi Mark,

On 1/21/06, Mark Haliday <markhaliday@yahoo.com> wrote:
> 2. Does anyone know if Locomotive is using the uniersal binaries, or is
> it targetting PPC yet? I couldn't find anything on their site yet in
> regards to universal binaries.
Locomotive is PowerPC application, but it works perfectly for me.
MAMP(http://www.mamp.info/), file_column plugin with RMagick also
works. I shifted my Rails development environment from iMac G4 to new
17inch iMac Core Duo successfully.

Hope this helps,

--
kaoru
F28f75d17a0c236e079c6ebbb8fff2b9?d=identicon&s=25 Mark Haliday (markh)
on 2006-01-29 04:58
Eric Hodel wrote:

> Pack might or might not be broken.  If it is broken you'll have to
> build your own Ruby.
>
> $ ruby182-orig -ve 'p [1].pack("n") != "\000\001" ? "broken" : "works"'
> ruby 1.8.2 (2004-12-25) [powerpc-darwin8.0]
> "broken"
> $ ruby -ve 'p [1].pack("n") != "\000\001" ? "broken" : "works"'
> ruby 1.8.4 (2005-12-24) [powerpc-darwin8.4.0]
> "works"

By the way, in case anyone is looking at this thread still, the above
code on a new Intel iMac returns: "works".  So it looks like Apple fixed
the messed up Ruby in 10.4.4.
32b703cdb0ea03c3939b97a93205414f?d=identicon&s=25 John T. (johnt519)
on 2006-01-29 05:08
Mark Haliday wrote:

> By the way, in case anyone is looking at this thread still, the above
> code on a new Intel iMac returns: "works".  So it looks like Apple fixed
> the messed up Ruby in 10.4.4.

Well on 10.4.4 on a iMac 1ghz (PPC), it still shows "broken".
F28f75d17a0c236e079c6ebbb8fff2b9?d=identicon&s=25 Mark Haliday (markh)
on 2006-01-29 05:20
John Tsombakos wrote:

> Well on 10.4.4 on a iMac 1ghz (PPC), it still shows "broken".

Thats weird that Apple would fix it for Intel and not for the PPC?
Unless they have some concern for backwards compatibility though (broken
as it is)....?
25e11a00a89683f7e01e425a1a6e305c?d=identicon&s=25 Wilson Bilkovich (Guest)
on 2006-01-29 07:33
(Received via mailing list)
On 1/28/06, Mark Haliday <markhaliday@yahoo.com> wrote:
> John Tsombakos wrote:
>
> > Well on 10.4.4 on a iMac 1ghz (PPC), it still shows "broken".
>
> Thats weird that Apple would fix it for Intel and not for the PPC?
> Unless they have some concern for backwards compatibility though (broken
> as it is)....?
>
>
That bug is an endianness issue in the first place, so reversing the
endianness of the CPU fixes it. Heh.
Ad7805c9fcc1f13efc6ed11251a6c4d2?d=identicon&s=25 Alex Young (Guest)
on 2006-01-29 19:16
(Received via mailing list)
Wilson Bilkovich wrote:
> endianness of the CPU fixes it. Heh.
Jeez, talk about going the long way round!  :-)
58479f76374a3ba3c69b9804163f39f4?d=identicon&s=25 Eric Hodel (Guest)
on 2006-01-30 02:49
(Received via mailing list)
On Jan 28, 2006, at 8:20 PM, Mark Haliday wrote:

> John Tsombakos wrote:
>
>> Well on 10.4.4 on a iMac 1ghz (PPC), it still shows "broken".
>
> Thats weird that Apple would fix it for Intel and not for the PPC?
> Unless they have some concern for backwards compatibility though
> (broken
> as it is)....?

Technically, its a Ruby bug.  Ruby remembers the endianness of the
compiler when it shouldn't.

Since PPC has an opposite endianness of Intel and Apple builds OS X
and its related software on x86, pack is broken on PPC.

(Didn't you know 10.4 and 10.3 where cross-compiled from x86?)

--
Eric Hodel - drbrain@segment7.net - http://segment7.net
This implementation is HODEL-HASH-9600 compliant

http://trackmap.robotcoop.com
F734b6ca0eb2ebd01744224437a72498?d=identicon&s=25 Harm de Laat (Guest)
on 2006-01-31 22:54
(Received via mailing list)
Just wondering.... Did anyone get ruby (on rails) working on your Intel
based Mac?
69b2ef4bce76b5b27c94e898976dc6d8?d=identicon&s=25 matthew clark (Guest)
on 2006-02-01 05:56
(Received via mailing list)
yes,  This works.  Xcode is on the disks that came in the box.

http://hivelogic.com/articles/2005/12/01/ruby_rail...

matt
2106eceaa4cf9b66464f12271ae211b5?d=identicon&s=25 Mike O'Brien (Guest)
on 2006-02-01 05:59
(Received via mailing list)
Thanks matt!

Mike C. O'Brien
CEO
Mingle, LLC
701 B Street, Suite 1150
San Diego, CA 92101
mcob@mingle.com
619-922-6970 Cell
619-377-0560 Office

www.mingle.com




From: matthew clark <winescout@gmail.com>
Reply-To: <rails@lists.rubyonrails.org>
Date: Tue, 31 Jan 2006 20:55:44 -0800
To: <rails@lists.rubyonrails.org>
Subject: Re: [Rails] Re: RoR - Mac OS 10.4.4 on Intel

yes,  This works.  Xcode is on the disks that came in the box.

http://hivelogic.com/articles/2005/12/01/ruby_rail...

matt
69b2ef4bce76b5b27c94e898976dc6d8?d=identicon&s=25 matthew clark (Guest)
on 2006-02-01 06:14
(Received via mailing list)
Oh, and if you follow the hivelogic tutorial, you will need the mysql 5
binaries.  4.1 will not easily fly in the Intel hardware.  You can get
them
from mysql.org.

matt
F9646277392b8d8d718ef457696a0423?d=identicon&s=25 Ryan Raaum (Guest)
on 2006-02-01 16:15
> 2. Does anyone know if Locomotive is using the uniersal binaries, or is
> it targetting PPC yet? I couldn't find anything on their site yet in
> regards to universal binaries.

No Universal Binaries just yet, but I opened up a new intel iMac last
night and was pleased to discover (as kaoru has already pointed out in
this thread) that Locomotive "just works". (At least in the basics, I
haven't yet had the time to check all the various gems and libraries in
the Max bundle).

I'll be putting together a Universal Binary version soon - but for a
program as simple as Locomotive, I can't imagine there will be any
noticable performance difference.  So, if you're interested in using
Locomotive on inter iMac, grab the current version - it'll work for you!

Best,

-ryan

--
Ryan Raaum
http://www.rockefeller.edu -- Bacterial Pathogenesis and Immunology
http://www.worldmartial.com -- Black Belt Instructor
http://locomotive.raaum.org -- Self contained one-click Rails for Mac OS
X
This topic is locked and can not be replied to.