Questions tagged [binary]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
0 answers
147 views

Executable stops working after saving from hex editor?

I've been playing around with binaries and clang. I was playing around and suddenly the executable stopped working for no apparent reason. Here's what I did: Build hello world ex: echo -e '#include &...
Stan's user avatar
  • 1
3 votes
0 answers
661 views

Remove x86 code from universal app

I'm using macOS 12 on an M1 MBP. There are certain apps that are mostly code and not resource, very large in size, and not needed in Rosetta. Therefore, I wrote a script to remove x86 components from ...
Joy Jin's user avatar
  • 2,663
6 votes
2 answers
7k views

How to unblock binary from use because Mac says it is not from identified developer

I have a binary from work that I'm trying to run. I keep getting an error that “my-binary-amd64” cannot be opened because the developer cannot be verified. I've looked up solutions online and so far I'...
Hofbr's user avatar
  • 237
5 votes
2 answers
8k views

"Bad CPU type in executable" when running pdftk

I have installed pdftk from https://www.pdflabs.com/tools/pdftk-server/ on my mac and when I try to run it it fails. $ pdftk -version -bash: /usr/local/bin/pdftk: Bad CPU type in executable How can I ...
Madhan's user avatar
  • 51
5 votes
2 answers
2k views

I downloaded a shell executable and man pages from a source I trust. Where should I put them?

I downloaded a binary file for a shell executable, and the corresponding man pages, from a source I trust. Unpacking the archive returns a binary file and some man pages. There's no installer. Which ...
DeltaIV's user avatar
  • 398
1 vote
0 answers
28 views

Where does brew get all its binaries from? [duplicate]

Is there some centralized place were people just put their binaries and brew just queries that? Or do people submit their binaries to Brew? If so how do I go about submitting my binaries to brew?
Joshua Segal's user avatar
1 vote
0 answers
177 views

Include a binary in applescript bundle?

I've got an applescript that calls a binary on my computer (installed with homebrew). I'd like to share the applescript with friends, but can't guarantee that they'll have the binary. For example, a ...
Eponymous's user avatar
1 vote
1 answer
272 views

How To Make my Binary Translator Process Multiple Binary Numbers

I'm currently building a binary translator (binary to text) in the AppleScript editor. The code I wrote only lets you input one binary number at a time. I want to enter in multiple binary numbers at a ...
bez9199's user avatar
  • 35
2 votes
1 answer
82 views

How do I add Unix executables to the Parental Controls 'Allowed Apps' whitelist?

One example is some of Karabiner's executables, I get popups saying "You don't have permission to use the application "karabiner_grabber." as well as karabiner_console_user_server and a few others. ...
Quenz's user avatar
  • 91
0 votes
1 answer
710 views

Equivalent of objcopy -0 binary for Mach-O object files in macOS?

Equivalent of objcopy -O binary <FILE> <FILE>.bin for Mach-O object files in macOS? I want to dump the executable code in the __TEXT segment to a flat binary file on macOS. This can be ...
Shuzheng's user avatar
  • 1,481
18 votes
4 answers
10k views

Why isn't a binary file shown as 0s and 1s?

In my Mac OS, we know the files under /bin all are binary files.: crafts-MBP:bin ldl$ pwd /bin crafts-MBP:bin ldl$ ls [ csh ed launchctl mv rmdir tcsh bash date expr ...
244boy's user avatar
  • 551
2 votes
2 answers
2k views

Is there a way to Upgrade terminal sftp client?

The pre-installed sftp binary on macOS sucks. When I use my ubuntu machine, sftp has glorious things like a history and tab completion. I've looked around, and cannot tell a clear cut path to ...
justin's user avatar
  • 123
3 votes
1 answer
1k views

Is there official documentation for the Mach-O file format/ABI used by OSX that still exists as of December 2018?

Why can't I find any official documentation for the file format? I've seen this link a lot, but it seems that they've taken whatever used to be there down. The best I could find was some blog posts ...
William Oliver's user avatar
2 votes
1 answer
593 views

HomeBrew offloading package compilation

My poor old 2008 aluminium MacBook isn't the only old piece of kit I have running homebrew packages, I really appreciate the ability to have a package manager in Mac OS, at least while I make my way ...
Tmanok's user avatar
  • 367
0 votes
2 answers
105 views

MacOS and Binary/CPU [closed]

This question applies to all operating systems and hardware, but I was curious what is going on behind the scenes when you install an OS on hardware. I know that macOS comes preinstalled on Macbooks, ...
Cody Rutscher's user avatar
1 vote
1 answer
1k views

MacOS bin and sbin

I was curious what language the default binaries and system binaries that come with macOS are written in. I am sure it's not just one language, but is there one language that is common throughout most ...
Cody Rutscher's user avatar
1 vote
2 answers
583 views

Adding a new directory to PATH varibale

What is the de-facto way to export a binary/executable to my global PATH? I have seen different answers to this, but I am looking for the best answer. Basically, if I go on Github and download a ...
Cody Rutscher's user avatar
2 votes
1 answer
325 views

Adding binary to ~/.local/bin

In short, I have a working executable in my home directory. I want to make the executable available in the Terminal for the current user in any directory. More context: The executable is geckodriver. ...
JorgeZapatero's user avatar
2 votes
0 answers
38 views

What file types does Finder search the *content* of?

I noticed that the Search bar in Finder not only searches the filenames, but also the contents of some types of files. It appears that the search includes the content of all text files, and even some ...
flow2k's user avatar
  • 273
2 votes
0 answers
306 views

App not working, binary working

I have a Wine app that allows me to run a windows game on a mac. However for some reason, if I open the app directly, the binary file within opens, but it does not seem to run as intended and doesn't ...
Bradman175's user avatar
1 vote
2 answers
814 views

Install Autoconf, Automake trying to install pcre

I don't asking by homebrew or port only source code /binary I was trying to install pcre... $ cd /Volumes/ADATAHD/macOS/Source_Codes/pcre-8.39 $ ./configure --prefix=/usr/local/Custom/pcre --enable-...
joseluisbz's user avatar
0 votes
2 answers
133 views

What is writing all these files and folders to my Documents?

Inside my Documents folder there are a bunch of folders named with what appear to be hexidecimal numbers, eg. 01, 1b, 84, aa, etc. Often they're empty, but some have one or two files named with a hash:...
icicleking's user avatar
2 votes
1 answer
234 views

Where is POSIX Ex editor on Mac?

Since Ex is a standard Unix editor (standardized by POSIX), I expect to be shipped with OS X, however it's linked into vim instead as shown below: $ stat /usr/bin/ex File: ‘/usr/bin/ex’ -> ‘vim’ ...
kenorb's user avatar
  • 12.6k
0 votes
1 answer
6k views

How to interpret 'xxd' command output

So, favouring the command xxd -b filename over hexdump -C filename to get the actual 1s and 0s of a binary file, i get this output from a file: 00009f6: 00000000 00000000 00001100 00000000 00000000 ...
user4493605's user avatar
2 votes
0 answers
194 views

Console command recAudio is broken in modern iOS

A while ago I used to use the recaudio console application provided by Erica Utilities, installed in Cydia on jailbroken devices. It doesn't seem to work any longer, which isn't terribly surprising, ...
Bray's user avatar
  • 81
4 votes
1 answer
600 views

How should I uninstall a static ffmpeg binary?

I've downloaded ffmpeg static binary. If I wanted to 'uninstall' it from my computer, is deleting the static binary enough ? My understanding is that static binary contains all of the required ...
Sash's user avatar
  • 41
3 votes
1 answer
5k views

Command line tools to replace bytes in a file

I need to write a script that patches a few bytes at a particular offset in a binary file. I know of textual tools for this task (sed, though I find it utterly hard to use) but can't find one for ...
Thomas Tempelmann's user avatar
4 votes
0 answers
168 views

Raw binary midi stream in terminal?

I want to be able to cat the device file of a raw binary input stream from a midi controller. In Ubuntu, the process to do this was something like cat /dev/dmmidi1. However, I do not see such a file ...
Peter Klipfel's user avatar
2 votes
1 answer
5k views

What are stub applications?

I am trying to understand how and where Java is installed on my Mac (Mavericks this time) and I found this question and answers: Need help understanding Oracle's Java on Mac — Stack Overflow Here is ...
Cris's user avatar
  • 373
1 vote
1 answer
5k views

"Cannot execute binary file" with alias of binary

I have installed both python3.3 and python2.6. I have set python3.3 to default by creating an alias named "python" in usr/bin and another one for python2.6 named "python2.6". Now if I type in the ...
Rnhmjoj's user avatar
  • 846
0 votes
1 answer
360 views

Will a Lion Fortran Binary work on Mountain Lion?

I want to install a fortran binary from here GCC wiki GFortran binaries, but the binary for Mountain Lion is not yet available. Would the binary for Lion work, or would it be a terrible mistake to ...
user1256923's user avatar
  • 3,590
5 votes
4 answers
13k views

How to edit binary InfoPlist.strings in Mountain Lion (for Finder to display folders before files)?

The article Force your Mac to sort folders on top of files (windows style), lets the Finder change its sorting order to first show folders and next all files. This trick doesn't seem to work with ...
jokoon's user avatar
  • 247
3 votes
1 answer
166 views

What's the "@"mark at the file description?

I installed princexml for Mac. With ls -alF, I have -rwxr-xr-x@ 1 prosseek admin 14190120 Jun 8 16:11 prince*. What's the meaning of @ in -rwxr-xr-x@? And when I tried to execute the binary, I got ...
prosseek's user avatar
  • 5,674