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
117,988
questions
221
votes
10
answers
351k
views
How to brew install java?
I'd like to setup java on a new OS X machine, and prefer to use brew for OS X package management. How can I install latest java using brew?
221
votes
23
answers
551k
views
How to stop mysqld
To find out the start command for mysqld (using a mac) I can do:
ps aux|grep mysql
I get the following output, which allows me to start mysql server.
/usr/local/mysql/bin/mysqld --basedir=/usr/...
220
votes
17
answers
112k
views
How to make the hardware beep sound in Mac OS X 10.6
I just want that Mac OS X 10.6 does a hardware beep sound like in open suse and other distributions. I tried following approaches
Terminal -> beep = -bash: beep: command not found
Terminal -> say ...
219
votes
3
answers
399k
views
How to copy files across computers using SSH and MAC OS X Terminal [closed]
I'm trying to copy my .profile, .rvm and .ssh folders/files to a new computer and keep getting a "not a regular file" response. I know how to use the cp and ssh commands but I'm not sure how to use ...
219
votes
13
answers
173k
views
NSRange from Swift Range?
Problem: NSAttributedString takes an NSRange while I'm using a Swift String that uses Range
let text = "Long paragraph saying something goes here!"
let textRange = text.startIndex..<text.endIndex
...
219
votes
1
answer
151k
views
SSH Port forwarding in a ~/.ssh/config file? [closed]
So I typically run this command a lot:
ssh -L 5901:[email protected]:5901
I use it to do VNC over SSH.
How do I convert that command into something that will work in a ~/.ssh/config ...
218
votes
14
answers
264k
views
How do I determine file encoding in OS X?
I'm trying to enter some UTF-8 characters into a LaTeX file in TextMate (which says its default encoding is UTF-8), but LaTeX doesn't seem to understand them.
Running cat my_file.tex shows the ...
217
votes
17
answers
346k
views
How to install latest version of Node using Brew
The latest version of NodeJs right now is 0.4.1
The command brew install node right now, installs 0.2.6 - which is not ideal. I would like 0.4.1
I've looked at this list of commands for brew and ...
217
votes
11
answers
272k
views
How do you install Boost on MacOS?
How do you install Boost on MacOS?
Right now I can't find bjam for the Mac.
217
votes
15
answers
249k
views
Mac SQLite editor [closed]
I am aware of CocoaMySQL but I have not seen a Mac GUI for SQLite, is there one?
My Google search didn't turn up any Mac related GUI's which is why I'm asking here rather than Google.
216
votes
6
answers
747k
views
Why is the apt-get function not working in the terminal on Mac OS X v10.9 (Mavericks)?
I was watching this, and, as you can see, the first command I am told to put in is:
sudo apt-get install python-setuptools
When I do this, it outputs:
sudo: apt-get: command not found
I have no ...
215
votes
13
answers
235k
views
Where to install Android SDK on Mac OS X?
Where should the Android SDK be installed on Mac OS X?
215
votes
16
answers
102k
views
zsh problem: compinit:503: no such file or directory: /usr/local/share/zsh/site-functions/_brew
I am using apple M1 MacBook pro.
When I installed oh my zsh. When I addedexport PATH="/opt/homebrew/bin:$PATH" to my ~/.zshrc file. This error was shown in my terminal:
joe :: share/zsh/site-...
215
votes
12
answers
433k
views
How can I find out if I have Xcode commandline tools installed?
I need to use gdb.
ps-MacBook-Air:AcoustoExport pi$ gdb
-bash: gdb: command not found
ps-MacBook-Air:AcoustoExport pi$ sudo find / -iname "*gdb*"
Password:
/usr/local/share/gdb
/usr/local/Cellar/isl/...
212
votes
5
answers
161k
views
"You have mail" message in terminal, os X [closed]
Few days ago I got this message in my terminal window:
What does that mean? I've never seen that before.
That was messages from xCode bots.
Thanks for the help.
212
votes
8
answers
59k
views
How to allow keyboard focus of links in Firefox?
Go to this ultra-simple fiddle in a Webkit browser and click on on of the inputs:
http://jsfiddle.net/eK4TT/
<input type="text">
<input type="text">
<input type="text">
<a href="...
212
votes
29
answers
536k
views
Xcode build failure "Undefined symbols for architecture x86_64"
An Xcode beginner's question:
It is my first experience with Xcode 4.6.3.
I am trying to write a very simple console program, that searches for paired BT devices and prints them to an NSLog.
It ...
211
votes
28
answers
148k
views
Android Studio was unable to find a valid Jvm (Related to MAC OS)
I am unable to start my Android Studio for Android development on Mac OS (10.10.1 - Yosemite)
211
votes
20
answers
419k
views
How can I easily switch between PHP versions on Mac OSX?
I would like to test my application on PHP 5.3 up to PHP 8.2.
Where and how can I install the versions and how can I switch them by running a small script?
211
votes
12
answers
136k
views
Execute a terminal command from a Cocoa app
How can I execute a terminal command (like grep) from my Objective-C Cocoa application?
211
votes
10
answers
249k
views
pip or pip3 to install packages for Python 3?
I have a Macbook with OS X El Captain. I think that Python 2.7 comes preinstalled on it. However, I installed Python 3.5 too. When I started using Python 3, I read that if I want to install a package, ...
210
votes
18
answers
231k
views
"OSError: [Errno 1] Operation not permitted" when installing Scrapy in OSX 10.11 (El Capitan) (System Integrity Protection)
I'm trying to install Scrapy Python framework in OSX 10.11 (El Capitan) via pip. The installation script downloads the required modules and at some point returns the following error:
OSError: [Errno ...
209
votes
12
answers
338k
views
List files with certain extensions with ls and grep
I just want to get the files from the current dir and only output .mp4 .mp3 .exe files nothing else.
So I thought I could just do this:
ls | grep \.mp4$ | grep \.mp3$ | grep \.exe$
But no, as the ...
209
votes
11
answers
276k
views
Environment variables in Mac OS X
Update: The link below does not have a complete answer. Having to set the path or variable in two places (one for GUI and one for shell) is lame.
Not Duplicate of: Setting environment variables in OS ...
209
votes
7
answers
356k
views
How do I make this file.sh executable via double click?
First off I'm using Mac.
Next, I need to execute this "file.sh" we will call it. Everytime I need to execute it I have to open Terminal and type:
cd /Users/Jacob/Documents/folderWithFileInIt
...
208
votes
22
answers
340k
views
Access restriction: The type 'Application' is not API (restriction on required library rt.jar)
Here is the code:
package mscontroller;
import javax.swing.*;
import com.apple.eawt.Application;
public class Main {
public static void main(String[] args)
{
Application app = new ...
208
votes
15
answers
465k
views
How can I install a .ipa file to my iPhone simulator
I have an iphone simulator running on my Mac.
I have a .ipa file, can you please tell me how can I install it on the simulator?
206
votes
20
answers
138k
views
Open multiple Eclipse workspaces on the Mac
How can I open multiple Eclipse workspaces at the same time on the Mac?
On other platforms, I can just launch extra Eclipse instances, but the Mac will not let me open the same application twice. Is ...
206
votes
18
answers
302k
views
How do I install command line MySQL client on mac?
I want to install the MySQL client for the command line, not a GUI. I have searched over the web but only found instructions on installing the MySQL server.
206
votes
6
answers
83k
views
How to configure Mac OS X term so that git has color? [closed]
I've seen a Mac OS X git demo online in which it's configured to have multiple colors.
For example, his prompt is amber, his ls directory is purple and his git diff output has ~ 4 colors (pink, light ...
204
votes
10
answers
254k
views
Locate the nginx.conf file my nginx is actually using
Working on a client's server where there are two different versions of nginx installed. I think one of them was installed with the brew package manager (its an osx box) and the other seems to have ...
204
votes
16
answers
188k
views
OS X Terminal shortcut: Jump to beginning/end of line
I know that I can jump to the beginning and end of a line inside the OS X terminal with Ctrl+A and Ctrl + E. But I'm so used to jumping with Cmd+Right arrow and Cmd+Left arrow from my editor, that I ...
203
votes
6
answers
230k
views
What's a good hex editor/viewer for the Mac? [closed]
What's a good hex editor/viewer for the Mac? I've used xxd for viewing hexdumps, and I think it can be used in reverse to make edits. But what I really want is a real hex editor.
202
votes
16
answers
121k
views
Rails: Installing PG gem on OS X - failure to build native extension
It seems many others have had problems installing the pg gem. None of the solutions posed for others have worked for me.
I have tried to install the pg gem and postgres.app. The pg gem won't install....
202
votes
5
answers
118k
views
Do on-demand Mac OS X cloud services exist, comparable to Amazon's EC2 on-demand instances? [closed]
Amazon's EC2 service offers a variety of Linux and Windows OS choices, but I haven't found a service offering a similar "rent by the hour" service for a remote Mac OS X virtual machine. Does such a ...
201
votes
10
answers
366k
views
Completely uninstall PostgreSQL 9.0.4 from Mac OSX Lion?
This question may look like a duplicate of: How to uninstall postgresql on my Mac (running Snow Leopard) however, there are two major differences. I'm running Lion and I'm trying to uninstall ...
201
votes
8
answers
335k
views
How can I install Apache Ant on Mac OS X?
I tried to install Apache Ant on my Mac and I followed the next steps :
I downloaded apache-ant-1.8.1-bin.tar.gz into my Downloads folder.
I moved the file to /usr/local/ using this commands : sudo ...
201
votes
9
answers
224k
views
How to resolve "gpg: command not found" error during RVM installation?
I have a new mac pro (OS X 10.9.5) that I get to set up from scratch. I want to install RVM and the first thing it says to do is:
Install mpapis public key (might need gpg2 and or sudo)
gpg --...
200
votes
15
answers
238k
views
How to reinstall python@2 from Homebrew?
I have been having issues with openssl and python@2 with brew, which have explained here (unresolved). The documented workaround to reinstall Python and openssl was not working, so I decided I would ...
200
votes
12
answers
110k
views
Open a folder in vscode through Finder in macOS?
On my windows pc, I would just double click a folder and click "Open in VS Code" to a open a folder, which saved time for me when looking through lots of code online. With Mac, however, I do ...
200
votes
7
answers
45k
views
IntelliJ beginning of file keyboard shortcut
Is there a keyboard shortcut to move to the beginning of a file? I checked IntelliJ's Keymap for Mac OS X and it doesn't list anything for navigating to the start of a file.
200
votes
2
answers
296k
views
Where to place $PATH variable assertions in zsh?
I love zsh, but I am not sure where to place my $PATH and other variable assertions? I find that they are scattered between the files .zshrc .zprofile .bashrc .bash_profile, and sometimes doubled.
I ...
200
votes
17
answers
301k
views
How to install a specific JDK on Mac OS X?
I want to install a specific JDK (the latest for example). For this, I went to the JDK download homepage: http://java.sun.com/javase/downloads/index.jsp.
I looked for a Mac version, but I'm a bit ...
199
votes
8
answers
135k
views
Visual Studio Code shortcut to display autocomplete list before typing
I am trying to display all possible words after putting the cursor in certain place in the code.
The autocomplete (suggestions) list appears when I start writing/typing:
However, I would like to see ...
198
votes
13
answers
133k
views
macOS - Permission denied @ apply2files - /usr/local/lib/node_modules/expo-cli/node_modules/extglob/lib/.DS_Store?
I was installing the starship via homebrew, but I am getting this error:
Permission denied @ apply2files - /usr/local/lib/node_modules/expo-cli/node_modules/extglob/lib/.DS_Store
Any solution for ...
197
votes
13
answers
253k
views
Unmount the directory which is mounted by sshfs in Mac [closed]
I've installed OSXFUSE in my mac and used sshfs to mount a remote directory. Now I would like to unmount it, but can't find the way.
My OS is OSX 10.8 Mountain.
Can anyone help?
196
votes
11
answers
298k
views
How do I check if the Java JDK is installed on Mac?
How do you check if Java SDK is installed on a Mac?
Is there a command line for this?
196
votes
34
answers
383k
views
BUG! exception in phase 'semantic analysis' in source unit '_BuildScript_' Unsupported class file major version 61 on Apple Arm
I have installed Android Studio Canary 2020.3.1.22 and trying to run Flutter project on Apple Silicon(ARM) Mac. Unfortunately, it is giving me this error when I try to run default flutter counter app.
...
196
votes
8
answers
153k
views
How to stop creating .DS_Store on Mac? [closed]
I'm developing sites on mac and every time I create some folder (or file in that folder) .DS_Store is created in that folder.
How to prevent creating .DS_Store file ?
195
votes
15
answers
62k
views
Repairing Postgresql after upgrading to OSX 10.7 Lion
I recently upgraded to OSX 10.7, at which point my rails installation completely borked when trying to connect to the psql server. When I do it from the command line using
psql -U postgres
it ...