OS X 10.6.8 z-agent Bad CPU type in executable

Discussions about existing Z-Wave device and their usage with Z-Way/Z-Cloud/Z-Box
Post Reply
kai-bcn
Posts: 6
Joined: 21 Jan 2013 12:50

OS X 10.6.8 z-agent Bad CPU type in executable

Post by kai-bcn »

Hi all,
I just purchased my first 3 devices + the Vision USB stick:
http://www.zwaveeurope.com/fileadmin/sc ... p?id=12358
(it came with no other instructions on how to get it going with Z-Cloud)

Connecting it to my OS X 10.6.8 I see it recognized ... system_profiler SPUSBDataType lists it as a "Communication Device":
Product ID: 0x0200
Vendor ID: 0x0658 (Sigma Designs, Inc.)
Version 0.00
Speed: Up to 12 Mb/sec
Location ID: 0x5d200000 / 2

I then downloaded the Z-Connector, unzipped, and tried running "Run_Z-Agent.sh".
It shows line 12: ./z-agent: Bad CPU type in executable

My CPU is a 1.66 GHz Intel Core Duo.

What shall I do ?

Thanks for your pointers and all help.
Kind Regards, Kai
User avatar
PoltoS
Posts: 7579
Joined: 26 Jan 2011 19:36

Are you sure to run Run_Z

Post by PoltoS »

Are you sure to run Run_Z-Agent in OSX folder? OS X have same binary formats on all systems (even on old PPC CPU), so should be no problems with CPU type.
kai-bcn
Posts: 6
Joined: 21 Jan 2013 12:50

Yes, that's the agent, from

Post by kai-bcn »

Yes, that's the agent, from the OSX folder. After some googling I know now: OS X has 3 different binary formats (PPC / Intel 32bit / Intel x64), some - even all 3 of which - can be bundled together as a "universal binary". That's a single file that holds multiple binary types inside. However, this binary being produced depends on the architectures that are set to be included when the binary gets compiled. Here is where to find that: https://discussions.apple.com/thread/65 ... 0&tstart=0

Using the "file" command, I can see that OSX/z-agent is 64-bit only. See below for what it shows on 3 examples. Could you check the architecture settings and provide a x86 (32-bit) for OS X 10.6.x please? I've seen that even some OpenWRT hardware can run the agent, so I'm sure this 1.66 GHz Intel Core Duo with 2 GB Ram is powerful enough ... isn't it ?

Cheers, Kai

mini:Unix kai$ file /usr/bin/top
/usr/bin/top: setuid Mach-O universal binary with 3 architectures
/usr/bin/top (for architecture x86_64): Mach-O 64-bit executable x86_64
/usr/bin/top (for architecture i386): Mach-O executable i386
/usr/bin/top (for architecture ppc7400): Mach-O executable ppc
mini:Unix kai$ file ../OSX/z-agent
../OSX/z-agent: Mach-O 64-bit executable x86_64
mini:Unix kai$ file ../Windows/z-agent.exe
../Windows/z-agent.exe: PE32 executable for MS Windows (console) Intel 80386 32-bit
mini:Unix kai$
User avatar
PoltoS
Posts: 7579
Joined: 26 Jan 2011 19:36

Wow! You have made my day! I

Post by PoltoS »

Wow! You have made my day! I was always sure all three are always inside the file. We will recompile it to include all three formats.

Thank you for your comments.
kai-bcn
Posts: 6
Joined: 21 Jan 2013 12:50

You're very welcome.

Post by kai-bcn »

You're very welcome.
Do you have any estimate on when the recompiled package is ready for testing?
And many thanks to you in advance.
kai-bcn
Posts: 6
Joined: 21 Jan 2013 12:50

ETA ?

Post by kai-bcn »

PoltoS ... any ETA for the x86 compiled Mac OSX agent ?
Thanks i nadvance.
matthew.laney
Posts: 1
Joined: 06 May 2013 21:29

Any updates

Post by matthew.laney »

I also have a 10.6.8 Mac and would like to run this. Any updates yet?
User avatar
PoltoS
Posts: 7579
Joined: 26 Jan 2011 19:36

It was done quite a long tie

Post by PoltoS »

It was done quite a long tie ago and send to some users for tests. We can send it to you too. We need some feedback before publishing it
Post Reply