Questions tagged [macos]

macOS (formerly known as OS X or Mac OS X) is the desktop operating system from Apple, found on Macintosh computers. Use this tag only if your question relates to using macOS APIs or macOS-specific behavior, not because you happen to run your code on macOS. Questions relating to using or troubleshooting macOS are off-topic and belong in the Ask Different community instead.

macOS (formerly known as OS X until 2016 and Mac OS X until 2012) is the desktop operating system from Apple Inc., found on Macintosh computers.

Use this tag for questions about writing and debugging programs on macOS. Questions relating to using or troubleshooting macOS are off-topic (use apple.stackexchange.com instead).

macOS() consists of a Mach/BSD-based kernel, operating system interfaces primarily based on FreeBSD (), and additional frameworks (written in C (), C++ (), Objective-C () and Swift () providing user interface and application-level services.

It was the successor to Mac OS 9. macOS is based upon the NeXTSTEP and OpenStep operating systems developed in the 1980s and 1990s by NeXT Inc., which Apple purchased in 1996.

Versions

  • Current macOS Big Sur
  • macOS Catalina 10.15.1
  • macOS Mojave 10.14.1
  • macOS High Sierra (10.13)
  • macOS Sierra (10.12)
  • OS X El Capitan (10.11)
  • OS X Yosemite (10.10)
  • OS X Mavericks (10.9)
  • OS X Mountain Lion (10.8)
  • OS X Lion (10.7)
  • OS X Snow Leopard (10.6)
  • OS X Leopard (10.5)
  • OS X Tiger (10.4)
  • OS X Panther (10.3)
  • OS X Jaguar (10.2)
  • OS X Cheetah (10.1)
  • OS X Puma (10.0)

More information:

116456 questions
391
votes
21 answers

How to install PIL with pip on Mac OS?

I am trying to install PIL (the Python Imaging Library) using the command: sudo pip install pil but I get the following message: Downloading/unpacking PIL You are installing a potentially insecure and unverifiable file. Future versions of pip…
user3006710
  • 3,947
  • 2
  • 12
  • 3
386
votes
15 answers

No “Proceed Anyway” option on NET::ERR_CERT_INVALID in Chrome on MacOS

I try to get my local development in Chrome back running, but Chrome prevents that, with the message that the certificate is invalid. Even though it could not be the date of the certificate, as you can see in the screenshot of it: I just wonder why…
DarioSoller
  • 3,909
  • 3
  • 12
  • 6
386
votes
20 answers

Is there a way to make mv create the directory to be moved to if it doesn't exist?

So, if I'm in my home directory and I want to move foo.c to ~/bar/baz/foo.c , but those directories don't exist, is there some way to have those directories automatically created, so that you would only have to type mv foo.c ~/bar/baz/ and…
Paul Wicks
  • 62,960
  • 55
  • 119
  • 146
378
votes
31 answers

Error running 'pip install': "ImportError: No module named pip"

OS: Mac OS X 10.7.5 (Lion) Python ver: 2.7.5 I have installed setuptools 1.0 with ez_setup.py from https://pypi.python.org/pypi/setuptools. Then I downloaded pip.1.4.1 pkg from https://pypi.python.org/pypi/pip/1.4.1. I ran (sudo) python setup.py…
David Lu
  • 3,781
  • 2
  • 13
  • 3
372
votes
8 answers

Correct way to install psql without full Postgres on macOS?

Official page do not mention such case. But many users need only psql without a local database (I have it on AWS). Brew do not have psql.
Vitaly Zdanevich
  • 13,032
  • 8
  • 47
  • 81
369
votes
18 answers

How to upgrade Git to latest version on macOS?

I just bought a new Mac with OS X Lion and I checked in the Terminal what version of git is installed by default. I got the answer git --version > git version 1.7.5.4 I would like to upgrade git to the latest version 1.7.8.3, so I downloaded the…
Nicolas Renon
  • 3,881
  • 2
  • 15
  • 13
364
votes
12 answers

Postgres - FATAL: database files are incompatible with server

After restarting my MacBook Pro I am unable to start the database server: could not connect to server: No such file or directory Is the server running locally and accepting connections on Unix domain socket "/tmp/.s.PGSQL.5432"? I checked the logs…
klaffenboeck
  • 6,297
  • 3
  • 23
  • 33
360
votes
13 answers

How to increase IDE memory limit in IntelliJ IDEA on Mac?

I'm using IDEA 12 Leda on Mountain Lion. I wanted to increase the maximum memory that IDE can use. I set the VMOptions in Info.plist file to be -Xmx2048m -ea -XX:+HeapDumpOnOutOfMemoryError -Xverify:none -Xbootclasspath/a:../lib/boot.jar When I open…
woodings
  • 7,503
  • 5
  • 34
  • 52
355
votes
26 answers

Installing Homebrew on macOS

According to the Homebrew site, to install it, I need to type: brew install wget I get an error message: -bash: brew: command not found Found this answer. The problem, however, is I don't see brew in /usr/local/bin. I added the below line to my…
DBWeinstein
  • 8,605
  • 31
  • 73
  • 118
352
votes
16 answers

Is there a command like "watch" or "inotifywait" on the Mac?

I want to watch a folder on my Mac and then execute a bash script, passing it the name of whatever file/folder was just moved into or created in the watched directory.
Mint
  • 14,388
  • 30
  • 76
  • 108
349
votes
21 answers

Not able to access adb in OS X through Terminal, "command not found"

I have installed Android SDK and Eclipse on my Mac system. I am able to program using Eclipse and have created few sample applications. But I am still not able to access adb through the terminal window. I have tried following command in terminal: …
pankaj
  • 7,878
  • 16
  • 69
  • 115
349
votes
32 answers

Virtualenv Command Not Found

I couldn't get virtualenv to work despite various attempts. I installed virtualenv on MAC OS X using: pip install virtualenv and have also added the PATH into my .bash_profile. Every time I try to run the virtualenv command, it returns: -bash:…
Arial
  • 4,844
  • 2
  • 18
  • 17
345
votes
14 answers

Replace comma with newline in sed on MacOS?

I have a file of strings that are comma separated. I'm trying to replace the commas with a new line. I've tried: sed 's/,/\n/g' file but it is not working. What am I missing?
WildBill
  • 9,143
  • 15
  • 63
  • 87
341
votes
14 answers

Setting ANDROID_HOME enviromental variable on Mac OS X

Could anybody post a working solution for setting ANDROID_HOME via the terminal? My path to the Android-SDK is /Applications/ADT/sdk.
Jacek Kwiecień
  • 12,397
  • 20
  • 85
  • 157
339
votes
14 answers

iPhone Simulator suddenly started running very slow

I have been working on an app in iphone simulator for a number of weeks and it has been running well up until now, but all of a sudden has begun running very slow both when loading content and animations. I have not made any changes to my code since…
Finglish
  • 9,692
  • 14
  • 70
  • 114