Find Jobs
Hire Freelancers

Exec format error when trying to run c++ executable on mac

$10-30 USD

Closed
Posted almost 2 years ago

$10-30 USD

Paid on delivery
I am having trouble running the example executable of a project. I am just seeking help running the example. I have been struggling with this for some time now and have run out of ideas. When I try to run the first sample I get "zsh: exec format error”. I am offering 30 dollars for whoever can solve this for me today. Solve means getting the executable to run properly on my computer. My best guess is that I have some very basic and silly configuration error… or making some other highly rookie mistake. I will pay only when the issue is resolved to my satisfaction, not just for time spent. I am using a 2021 macbook pro with the M1 pro chip and have tried using CLion and VSCode and terminal and get the same error every time. The way it's supposed to work is: I type ./exampleExecutable in the terminal and it should give an example. But I only get the error. I have included the files and a screenshot of the error. Thank you.
Project ID: 33988623

About the project

3 proposals
Remote project
Active 2 yrs ago

Looking to make some money?

Benefits of bidding on Freelancer

Set your budget and timeframe
Get paid for your work
Outline your proposal
It's free to sign up and bid on jobs
3 freelancers are bidding on average $30 USD for this job
User Avatar
That is a linux elf for amd x64 architecture. you cant run that on m1 mac.. where did you get the binary from ? need to build the source again for mac ~$ readelf -a exampleExecutable ELF Header: Magic: 7f 45 4c 46 02 01 01 00 00 00 00 00 00 00 00 00 Class: ELF64 Data: 2's complement, little endian Version: 1 (current) OS/ABI: UNIX - System V ABI Version: 0 Type: DYN (Shared object file) Machine: Advanced Micro Devices X86-64 Version: 0x1 Entry point address: 0x1230 Start of program headers: 64 (bytes into file) Start of section headers: 19048 (bytes into file)
$30 USD in 7 days
5.0 (7 reviews)
3.7
3.7
User Avatar
I've been there, will do it in no time. I'm familiar with C++ and Java. I'll do the job as well as teach you how to resolve it. But first tell me whether you have compiled the program on the same machine or are you trying to run the .exe on a different mac? Also your output tells me it's a simple C++ program if in any case the error isn't resolved I'll simply write the whole program and run it on your mac.
$30 USD in 1 day
0.0 (0 reviews)
0.0
0.0

About the client

Flag of UNITED STATES
Reno, United States
0.0
0
Member since Jun 25, 2022

Client Verification

Thanks! We’ve emailed you a link to claim your free credit.
Something went wrong while sending your email. Please try again.
Registered Users Total Jobs Posted
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Loading preview
Permission granted for Geolocation.
Your login session has expired and you have been logged out. Please log in again.