Skip to main content

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.

Filter by
Sorted by
Tagged with
337 votes
7 answers
144k views

Intellij Idea: Importing Gradle project - getting JAVA_HOME not defined yet

Intellij Idea 14.1.4 Mac OS X Yosemite 10.10.3 and later. From the IDE: Import Project -> (Chosen directory to import) -> Import project from external model, Gradle -> Gradle Home: /usr/...
bentobox's user avatar
  • 3,948
335 votes
5 answers
280k views

How do I remove the "extended attributes" on a file in Mac OS X?

I have an AppleScript script that runs a stress test. Part of the test is to open, save, and close certain files. Somehow, the files have picked up some "extended attributes" that prohibit the files ...
tames's user avatar
  • 3,359
331 votes
17 answers
570k views

How do I close an open port from the terminal on the Mac?

I opened port #5955 from a java class to comunicate from a client. How do i close this port after I am done? and also which command can show me if port open or closed?
user1667108's user avatar
  • 3,319
327 votes
9 answers
109k views

How to avoid "cannot load such file -- utils/popen" from homebrew on OSX

I'm getting an error when I run brew in the terminal: /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in `require': cannot load such ...
kerokero's user avatar
  • 3,271
327 votes
17 answers
684k views

socket.error: [Errno 48] Address already in use

I'm trying to set up a server with python from mac terminal. I navigate to folder location an use: python -m SimpleHTTPServer But this gives me error: socket.error: [Errno 48] Address already ...
irm's user avatar
  • 4,251
327 votes
10 answers
546k views

How to install JQ on Mac on the command line?

I need to know the most efficient way of installing JQ on Mac (El Capitan). The code is downloaded to my Mac but I would like to know how I can install and operate it via the command line.
Ross Brannigan's user avatar
322 votes
9 answers
126k views

I change the capitalization of a directory and Git doesn't seem to pick up on it

I'm developing a project on OS X Lion that is under Git version control. I had these lowercase directories and then later capitalized them (e.g. emailaddresses => EmailAddresses), but Git doesn't seem ...
dan's user avatar
  • 45k
321 votes
11 answers
411k views

Installing Java on OS X 10.9 (Mavericks)

I have installed the JDK on Mac OS X v10.8 (Mountain Lion). When I upgraded it to Mac OS X v10.9 (Mavericks) and ran java -version in the terminal, it showed: No Java ...
user2909913's user avatar
  • 4,149
320 votes
13 answers
559k views

Where is PHP.ini in Mac OS X Lion?

I wanted to run some PHP right on my Mac, uncommented httpd.conf, activated web sharing, installed MySQL etc. I can't seem to find my PHP files, most importantly, PHP.ini. On my old machine it was ...
Orun's user avatar
  • 4,503
319 votes
21 answers
162k views

Getting a "This application is modifying the autolayout engine from a background thread" error?

Been encountering this error a lot in my OS X using swift: "This application is modifying the autolayout engine from a background thread, which can lead to engine corruption and weird crashes. ...
Mark's user avatar
  • 12.4k
319 votes
11 answers
550k views

Finding Android SDK on Mac and adding to PATH

I have installed Android Studio on my MacBook Air (OS Version 10.11 El Capitan) and have successfully written a small "hello, world" app and installed on device (Nexus 7) and ran on AVD. All I want ...
Dave's user avatar
  • 8,441
317 votes
4 answers
95k views

Core Data vs SQLite 3 [closed]

I am already quite familiar with relational databases and have used SQLite (and other databases) in the past. However, Core Data has a certain allure, so I am considering spending some time to learn ...
Jason Medeiros's user avatar
316 votes
17 answers
73k views

gem eventmachine fatal error: 'openssl/ssl.h' file not found

Just installed El Capitan and can't install gem eventmachine 1.0.7. openssl is at 1.0.2a-1. Tried to use --with-ssl-dir but it seems ignored. Reported it to their github repo as well. Any ...
firedev's user avatar
  • 21k
316 votes
16 answers
286k views

MacOS Catalina(v 10.15.3): Error: “chromedriver” cannot be opened because the developer cannot be verified. Unable to launch the chrome browser

I have recently upgraded my mac machine to OS Catalina(v 10.15.3). After this upgrade I am unable to launch the chrome driver using selenium. I am facing the below error when I run the selenium code ...
Venkatesh G's user avatar
  • 9,226
315 votes
15 answers
336k views

pip installs packages successfully, but executables not found from command line

I am working on mac OS X Yosemite, version 10.10.3. I installed python2.7 and pip using macport as done in http://johnlaudun.org/20150512-installing-and-setting-pip-with-macports/ I can ...
Sanket_Diwale's user avatar
311 votes
29 answers
272k views

psql: could not connect to server: No such file or directory (Mac OS X)

Upon restarting my Mac I got the dreaded Postgres error: psql: could not connect to server: No such file or directory Is the server running locally and accepting connections on Unix domain socket "/...
FireDragon's user avatar
  • 9,385
311 votes
24 answers
157k views

Upgrade all the casks installed via Homebrew Cask

I use Homebrew Cask to install applications on OS X. How do I upgrade all the installed casks?
enrico.bacis's user avatar
  • 31.2k
311 votes
4 answers
168k views

What are the differences between .so and .dylib on macOS?

.dylib is the dynamic library extension on macOS, but it's never been clear to me when I can't / shouldn't use a traditional unix .so shared object. Some of the questions I have: At a conceptual ...
Trent Davies's user avatar
  • 3,469
310 votes
12 answers
113k views

git mv and only change case of directory

While I found similar question I didn't find an answer to my problem When I try to rename the directory from FOO to foo via git mv FOO foo I get fatal: renaming 'FOO' failed: Invalid argument OK. ...
oschrenk's user avatar
  • 4,170
309 votes
27 answers
284k views

OS X Framework Library not loaded: 'Image not found'

I am trying to create a basic OS X Framework, right now I just have a test framework created: TestMacFramework.framework and I'm trying to import it into a brand new OS X Application project. I have ...
Sammio2's user avatar
  • 7,432
309 votes
7 answers
214k views

Class JavaLaunchHelper is implemented in two places

Today I upgraded my Intellij Idea on macOS Sierra, and now, when I run apps in console I have this error: objc[3648]: Class JavaLaunchHelper is implemented in both /Library/Java/JavaVirtualMachines/...
Ess's user avatar
  • 3,360
308 votes
14 answers
463k views

Removing Java 8 JDK from Mac

So I installed the beta of JDK 8 a while ago to look at some of the examples. I thought for sure by now, it's easy to change between versions. Doing some Play development with IntelliJ. For some ...
Rob's user avatar
  • 11.6k
307 votes
31 answers
600k views

adb command not found

I need to run an adb forward command before I could use the ezkeyboard application which allows user to type on the phone using browser. When I run adb forward tcp:8080 tcp:8080 command I get the ...
coure2011's user avatar
  • 41.7k
305 votes
25 answers
408k views

Failed to build gem native extension (installing Compass)

When I attempt to install the latest version of compass (https://rubygems.org/gems/compass/versions/1.0.0.alpha.17), I get the following error. ERROR: Error installing compass: ERROR: Failed to ...
cusejuice's user avatar
  • 10.6k
302 votes
5 answers
383k views

CSS - Overflow: Scroll; - Always show vertical scroll bar?

So currently I have: #div { position: relative; height: 510px; overflow-y: scroll; } However I don't believe that it will be obvious to some users that there is more content there. They could ...
Jambo's user avatar
  • 3,067
299 votes
7 answers
139k views

How to detect if the OS is in dark mode in browsers?

Similar to "How to detect if OS X is in dark mode?" only for browsers. Has anyone found if there is a way to detect if the user's system is in the new OS X Dark Mode in Safari/Chrome/Firefox? We ...
funkju's user avatar
  • 3,603
298 votes
5 answers
586k views

How to install wget in macOS? [closed]

I try to install wget in MAC OS 10.11.1 but when I run ./configure --with-ssl=openssl I get this error: configure: error: --with-ssl=openssl was given, but SSL is not available. How to resolve this ...
cfranco's user avatar
  • 3,425
298 votes
9 answers
441k views

How to use/install gcc on Mac OS X 10.8 / Xcode 4.4

I have install Mountain Lion (Mac OS X 10.8) and now gcc doesn't seem to be available anymore. I've also installed Xcode 4.4 so there is no more /Developer directory. I need gcc both for mac ports ...
Athir Nuaimi's user avatar
  • 3,234
294 votes
20 answers
332k views

Error: Cannot install in Homebrew on ARM processor in Intel default prefix (/usr/local)

I use the latest Apple M1 chip processor. And I keep getting errors while application installation. I run: brew install openjdk@11 Error: Cannot install in Homebrew on ARM processor in Intel default ...
Prashanth Sams's user avatar
293 votes
16 answers
812k views

How do you update Xcode on OSX to the latest version?

What is the easiest way to update Xcode on OSX? I see this in the terminal: $ brew install xxxxxxx Warning: Your Xcode (4.3.3) is outdated Please install Xcode 4.6. But when I go to open up Xcode &...
Evan R.'s user avatar
  • 3,367
292 votes
17 answers
95k views

Eclipse hangs at the Android SDK Content Loader

I've been working with Eclipse 4.2 (Juno release 20120920-0800) on OS X 10.8.2 for a few weeks now, building apps for Android 3.0 and above. I have a quad core i7 MacBook Pro with an SSD, so ...
slhck's user avatar
  • 37.9k
292 votes
17 answers
218k views

Xcode is not currently available from the Software Update server

I have problems with my macport after update to OS X 10.9. I try to follow this manual https://trac.macports.org/wiki/Migration to fix them. But when I install Command Line Tools: xcode-select --...
klm123's user avatar
  • 12.7k
290 votes
8 answers
218k views

How do I find a list of Homebrew's installable packages?

Recently I installed Brew. How can I retrieve a list of available brew packages to install?
dnlcrl's user avatar
  • 5,090
288 votes
8 answers
351k views

How to run a shell script in OS X by double-clicking?

I have a shell script that has user execution permission on OS X, but when I double click on it, it opens in a text editor. How can I get it to run by double-clicking it?
c2h2's user avatar
  • 12.2k
288 votes
30 answers
628k views

certificate verify failed: unable to get local issuer certificate

I am trying to get data from the web using python. I imported urllib.request package for it but while executing, I get error: certificate verify failed: unable to get local issuer certificate (_ssl.c:...
biswajit's user avatar
  • 3,177
287 votes
11 answers
1.1m views

How do I edit $PATH (.bash_profile) on OS X?

I am trying to edit an entry to PATH, as I did something wrong. I am using Mac OS X v10.10.3 (Yosemite) I have tried: touch ~/.bash_profile; open ~/.bash_profile But the file editor opens with ...
Thiago's user avatar
  • 13.2k
287 votes
25 answers
680k views

Error: ANDROID_HOME is not set and "android" command not in your PATH. You must fulfill at least one of these conditions.

I'm trying to install PhoneGap and I'm getting the following error: Error: ANDROID_HOME is not set and "android" command not in your PATH. You must fulfill at least one of these conditions. ...
rrvasanth's user avatar
  • 2,901
286 votes
16 answers
518k views

Java/JDK for the Apple Silicon chips

Will there need to be a special release of OpenJDK to support the new Apple Silicon chips? I see that there are currently downloads of the JDK for macOS/OS X, but these seem to only be for x86 ...
Thar's user avatar
  • 3,076
285 votes
7 answers
197k views

Installing Apple's Network Link Conditioner Tool

I have installed xcode 4.3.1 on my machine running Lion. I can't find the Network Link Conditioner tool anywhere. I have checked the utilities folder, also the xcode/contents/developer/* ...
humanaut's user avatar
  • 3,045
284 votes
19 answers
237k views

Check OS version in Swift?

I'm trying to check system information in Swift. I figured out, that it could be achieved by code: var sysData:CMutablePointer<utsname> = nil let retVal:CInt = uname(sysData) I have two ...
Gergely's user avatar
  • 3,105
280 votes
12 answers
127k views

Class JavaLaunchHelper is implemented in both ... libinstrument.dylib. One of the two will be used. Which one is undefined

I upgraded to the latest Java 7u40 on MacOS X and started getting the following message on the console when launching my application using Eclipse. The app works fine but I would like to find out the ...
ams's user avatar
  • 61.9k
278 votes
8 answers
286k views

Brew install docker does not include docker engine?

Trying to setup docker from brew, however the engine does not seem to be included in any of the any of the official formulas. brew install docker-machine docker-compose So these only installs the ...
David Karlsson's user avatar
276 votes
6 answers
397k views

How would I get a cron job to run every 30 minutes?

I'm looking to add a crontab entry to execute a script every 30 minutes, on the hour and 30 minutes past the hour or something close. I have the following, but it doesn't seem to run on 0. */30 * * * ...
Darryl Hein's user avatar
276 votes
12 answers
177k views

How to run mvim (MacVim) from Terminal?

I have MacVim installed and I am trying to set it up as the editor for Git (version control), but I can't run 'mvim' from the command line as it isn't recognised. How do I setup mvim so I can run it ...
Fred's user avatar
  • 4,877
273 votes
5 answers
420k views

Operation Not Permitted when on root - El Capitan (rootless disabled) [closed]

I am trying to move something to /usr/bin on OS X El Capitan. I have disabled rootless using the following commands: sudo nvram boot-args="rootless=0"; sudo reboot, but I keep getting the same error: ...
Mark Bourke's user avatar
  • 9,966
270 votes
8 answers
215k views

RE error: illegal byte sequence on Mac OS X

I'm trying to replace a string in a Makefile on Mac OS X for cross-compiling to iOS. The string has embedded double quotes. The command is: sed -i "" 's|"iphoneos-cross","llvm-gcc:-O3|"iphoneos-cross"...
jww's user avatar
  • 101k
270 votes
1 answer
85k views

Git doesn't work on MacOS Catalina: "xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing" [duplicate]

After upgrading to MacOS X 10.15 Catalina, I cannot run any git commands in my shell: The default interactive shell is now zsh. To update your account to use zsh, please run chsh -s /bin/zsh. For ...
user avatar
269 votes
16 answers
355k views

How do I create a Bash alias?

I'm on OSX and I need to put something like this, alias blah="/usr/bin/blah" in a config file but I don't know where the config file is.
fancy's user avatar
  • 50.6k
269 votes
10 answers
180k views

In-place edits with sed on OS X

I'd like edit a file with sed on OS X. I'm using the following command: sed 's/oldword/newword/' file.txt The output is sent to the terminal. file.txt is not modified. The changes are saved to ...
SundayMonday's user avatar
  • 19.6k
268 votes
20 answers
79k views

Running pod setup gives me "bad interpreter: No such file or directory" error

Recently I tried to do pod setup and I get this error: -bash: /usr/local/bin/pod: /usr/local/opt/ruby/bin/ruby: bad interpreter: No such file or directory I followed Ray Wenderlich's guide to install ...
user3670235's user avatar
  • 3,145