Questions tagged [macos]

43689 questions
1

votes
2

answer
2.5k

Views

How to navigate to htdocs of XAMPP in MacOSX via the terminal

I have installed XAMPP in my Mac OSX El Captain. Now I need to navigate to the htdocs via the command line. I am very new to this. Can someone help me on the same. Thanks in advance
bably
1

votes
3

answer
2.1k

Views

Laravel: laravel.log permission denied

When I try to open my Laravel app I get the following error: UnexpectedValueException The stream or file '/laravel/storage/logs/laravel.log' could not be opened: failed to open stream: Permission denied Why is this and how can I fix it?
Masoud Khani
1

votes
1

answer
1.1k

Views

Unable to test Mosquitto Server on Mac

I have installed Mosquitto using brew using brew install mosquitto And tested whether it is running using brew services list Output Name Status User Plist mongodb stopped mosquitto started amit /Users/amit/Library/LaunchAgents/homebrew.mxcl.mosquitto.plist postgresql stopped t...
amitection
1

votes
2

answer
294

Views

“Abort Trap: 6” when attempting OpenCV video capture on macOS Mojave

I've tried on both Python on C++, and every time I call cap.open(0), I get an Abort Trap: 6 error. I haven't been able to find any solutions to this via Google, and have tried reinstalling OpenCV several times now. Any suggestions?
bag531
-2

votes
1

answer
22

Views

how to make an executable (exe or bat) in mac that would work in windows?

I have created a c# program in visual studios on mac. but i need to submit it with an executable file like batch or exe that would work in windows via command line. how do i create an exe or bat file? thanks
Aseem Malhotra
0

votes
0

answer
3

Views

make visual studio editor not check ~ files

I'm an Anaconda on Mac user and the newer versions of Anaconda are now downloading Microsoft's Visual Studio on the Mac. Pretty neat. Except that all of my files have been edited with EMACS and I have many filename.py~ backup files, and VisualStudio is trying to check them all, and they don't check....
vy32
1

votes
0

answer
7

Views

Is there a way to get the classpath from a Intellij project in order to execute the project from the command line (terminal)?

I have created a large Maven project in Intellij IDEA that uses many libraries and Maven dependencies, I now have to be able to run it from the command line (using Terminal in MacOS Mojave). Is there a way to get the classpath that Intellij uses when it runs this project? Or any other way to avoid m...
1

votes
3

answer
411

Views

Error when installing Homebrew: dyld: Library not loaded: @rpath/libssl.1.0.0.dylib

I'm trying to install Homebrew on my Mac os (macOS Mojave Version 10.14.3) And I keep getting the following error (the exact message I see in my terminal): dyld: Library not loaded: @rpath/libssl.1.0.0.dylib Referenced from: /Users/[my_machine_name]/anaconda3/lib/libssh2.1.dylib Reason: image not fo...
Pedram
1

votes
1

answer
197

Views

installation of Ros kinetic in Mac Mojave

I'm tring to install ros kinetic in my mac following this guide. (I have homebrew installed and updated) In the first step of the guide I run the command line: brew tap ros/deps and this get me back the following errors ==> Tapping ros/deps Cloning into '/usr/local/Homebrew/Library/Taps/ros/homebrew...
Giulio Pettenuzzo
1

votes
1

answer
29

Views

Why does my JFrame randomly shrink when starting on Mac?

When working on my mac laptop I have recently noticed that my frame sometimes shrinks when the program starts. It is about 70-90% that it does shrink. It works as expected on a PC but not on any mac I have tried it on. I have tried to narrow it down a bit (to the code below) but from here I can't fi...
Dante Ardström
1

votes
3

answer
27

Views

I can't use bash 5 syntax even after configuring it in MacOSX

I am relatively new to bash. I had bash 3 In my mac by default. GNU bash, version 3.2.57(1)-release (x86_64-apple-darwin18) Copyright (C) 2007 Free Software Foundation, Inc. I believe that I've installed and configured bash 5 for MacOSX. Running bash -version command outputs: GNU bash, version 5.0....
hamza belmellouki
0

votes
0

answer
4

Views

How do I enable Full Disk Access for a macOS app being built and debugged in Xcode

I have an app that accesses system files. When I built and archive the app, I'm able to drag that app into the Settings > Security & Privacy > Privacy > Full Disk Access and grant it full permissions However, when the app is built using Xcode, how do I enable this? I don't know where Xcode stores a...
YichenBman
1

votes
1

answer
707

Views

The equivalent of min(x,y) in AppleScript

I've got a working AppleScript which has a repeat looking like this: repeat with i from 1 to count windows of proc .... end repeat now I want to change this to min(2,count windows of proc) How would I write this using purely AppleScript? (solution involving Bash etc. are not acceptable, the question...
NoozNooz42
0

votes
0

answer
2

Views

how to install skype web plugins in webkit?

I want to make audio and video call from skype, skype i have loaded using url https://web.skype.com/ in webview but audio and video options and disabled in webview for that i think i need to install web plugins of skype so how do i acheive that I followed this and this but that doesn't seem to help...
zack
1

votes
0

answer
8

Views

DCMTK library with qt in mac

i have installed DCMTK through brew and i have configured it on qt adding the path directed to the library. When i try to open a DICOM image and run the project, i have these 2 errors: Undefined symbols for architecture x86_64: 'DicomImage::DicomImage(char const*, unsigned long, unsigned long, unsi...
Melinda Bechini
1

votes
0

answer
13

Views

3D surface plot of colorspace in python

​My computer setup is Mac Mojave 10.14.4. I am new to Python so I am using Jupyter Lab so that I can understand what each part is producing so please can you respond similarly. I want to produce a 3d surface plot of a digitally printed fabric sample with z-axis plotting the color space. Created a...
Jacqueline Burris
1

votes
2

answer
1.8k

Views

please re-compile PHP with ZTS enabled Mac OS X

I trying to install pthreads on Mac Os X. When I execute: sudo pecl install pthreads I get error: checking checking for ZTS... configure: error: pthreads requires ZTS, please re-compile PHP with ZTS enabled ERROR: `/private/tmp/pear/temp/pthreads/configure' failed So the question is how to recompile...
Gleb
1

votes
2

answer
699

Views

How to run multiple brew commands with one line?

I often run the following commands, one after another. I wonder if it can be done with one line? brew update brew upgrade brew cleanup
Stickers
0

votes
0

answer
4

Views

Creating screenshots on macOS Mojave without missing regions

I have some code to create screenshots. On High Sierra it worked without issues. However, it does not work anymore properly since I run it on Mojave. Some parts are cut out. I use this API call: CGImageRef screenshot = CGWindowListCreateImage (CGRectInfinite, kCGWindowListOptionOnScreenOnly, kCGNull...
tr4px
1

votes
1

answer
682

Views

Unable to create folder on Mac (El-Capitan), permission error

This simple error has me stumped: (0)[email protected]# mkdir ruby-2.0.0-p645 mkdir: ruby-2.0.0-p645: Operation not permitted (1)[email protected]# pwd /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/include/ruby-2.0.0 (0)[email protected]# Here is all the debug info I can think of...
Kashyap
0

votes
0

answer
5

Views

Automator Routine for creating .vcf cards from photos

so here is what I am trying to do: I have over 600 contact photos as .jpg and .png on my computer. The details for every contact is scattered throughout multiple sources so the easiest and most reliable would just be to enter the info for each contact manually over a day or two. But since I have the...
Lukas
1

votes
0

answer
8

Views

How to test stdin function in Objective-C?

I have a readline function which waits for input from stdin. When I run the function in XCTest, it shows a prompt and waits for input. How to pass an input string so that the readline can read it from stdin in XCTest case? char *input = readline(prompt); XCTAssertEqualObjects(input, [@'hello' UTF8St...
jsloop
1

votes
1

answer
426

Views

NPM Packages (with CLI) installed globally return command not found

I've had this happen twice to me before. The first time I assumed it was an error with NPM, so I uninstalled Node & NPM and didn't use the package that was giving me an error. I did a fresh install & began working on another project. I'd installed the package (and the version of it with cli). The c...
Noah Manion
1

votes
1

answer
239

Views

Have issues when installing virtualenv and virtualenvwrapper

Have issues when installing virtualenv and virtualenvwrapper, and get the below errors when I try. Can anyone help with these? MacBook-Pro:~ adrian$ pip install virtualenvwrapper Collecting virtualenvwrapper Using cached virtualenvwrapper-4.7.2.tar.gz Complete output from command python setup.py egg...
mcmains
1

votes
0

answer
8

Views

NSMetadataQuery is getting deallocated without first calling stopQuery?

I am having problem which prints this log message when i run the app is being deallocated without first calling -stopQuery. To avoid race conditions, you should first invoke -stopQuery on the run loop on which -startQuery was called this my medatadata query @property (strong) MetadataQuery *query;...
zack
1

votes
2

answer
2.1k

Views

-bash: matlab: command not found

I am a bit surprised, but I can't run matlab by the terminal of my Mac. I am trying the command /Applications/MATLAB_R2015b.app/bin/matlab but I get the error -bash: matlab: command not found Listing the contenents of the folder /Applications/MATLAB_R2015b.app/bin/ I can see the word matlab which is...
Alessandro
1

votes
2

answer
248

Views

Compile ptrace() program on OSX

I have this simple C program on MacOS: #include #include #include #include int main(int argc, char *argv[]) { pid_t pid = atoi(argv[1]); printf('pid = %jd\n', (intmax_t) pid); return ptrace(PT_ATTACHEXC, pid, 0, 0); } when I compile with gcc / cc, I get this error: In file included from my-waite...
Alexander Mills
1

votes
2

answer
853

Views

Operation not permitted when executing 'killall' with Swift

I'm trying to create a menu bar app to hide desktop icons and hopefully various other things mostly to learn more about Swift, and for some reason I can't get it to work. When I run this program and click on one of the menu items, nothing happens and I get this warning in the console: killall: warni...
twistedbagel
1

votes
2

answer
154

Views

How can I make my app behave like I'm changing Application is agent(UIElement) at runtime using Swift?

I am coding a Mac app that is an NSPopover on the right side of the menu bar (Application is agent(UIElement) is set to YES). I allow the user to detach the popover by clicking and dragging it downward, which puts the app inside of a window. This is working fine; however, when the app is dragged of...
W. Cook
1

votes
1

answer
470

Views

No module named 'gi' in Python GTK+ 3 Tutorial Hello World

https://python-gtk-3-tutorial.readthedocs.io/en/latest/install.html I have been trying to follow this tutorial but can't seem to get things installed right. The tutorial example and result is at the bottom. It seems clear, though, that I am failing to follow the instructions to install the needed m...
WesR
1

votes
2

answer
40

Views

Tkinter - Spinbox looks longer than expected

Running Python3.7 downloaded from python.org on macOS Mojave. I use the following code to line up a Spinbox and a Scale to control the same variable. However, the look isn't what I expected: import tkinter as tk root = tk.Tk() mainframe = tk.Frame(root) # Model input = tk.DoubleVar(value=0.) # input...
kakyo
1

votes
1

answer
85

Views

OpenGL 3.3 (mac) Error validating program: Validation Failed: No vertex array object bound

The following code compiles and runs without errors on linux but gives error 'Error validating program: 'Validation Failed: No vertex array object bound.' on mac OS 10.14.2 (Mojave). Note that the program compiles successfully but has a problem during runtime. MacBook Pro (Retina, 15-inch, Mid 20...
Satu0King
1

votes
1

answer
81

Views

How to find which PHP.ini your Apache is using - Mac OS Mojave?

I am on a Mac OS X Mojave. I have no idea where is the correct php.ini that my Apache2 used. I want to update the memory_limit. I ran php -r 'phpinfo();' | grep php.ini I got Configuration File (php.ini) Path => /usr/local/php5/lib Loaded Co...
kyo
1

votes
2

answer
66

Views

How to search and replace with egrep and sed on macOS?

I want to match a pattern in a file and replace it. This command works with egrep, xargs and sed: egrep -lRZ 'hello' . | xargs -0 -l sed -i -e 's/hello/world/g' The problem: It does not work on MacOS because the xargs of MacOS does not support the argumente -l. xargs: illegal option -- l usage: xarg...
Alpha
1

votes
2

answer
55

Views

Cocoa class member variable allocated inside function call nil unless forced to init/load

I come from a C/C++ background and am currently learning a bit about Cocoa and Objective-C. I have a weird behavior involving lazy initialization (unless I'm mistaken) and feel like I'm missing something very basic. Setup: Xcode 10.1 (10B61) macOS High Sierra 10.13.6 started from a scratch Cocoa pro...
JLL
1

votes
5

answer
65

Views

Split 2nd occurrence of pattern of camel style text in sed

I am trying to create a key, value strings table for a mac app using sed and awk. So far I have got it to the point of having lines like: 'exif:DateTimeOriginal' = 'DateTimeOriginal:\t'; I want to do a final step to get: 'exif:DateTimeOriginal' = 'Date Time Original:\t'; In other words split up the...
Jim Merkel
1

votes
4

answer
79

Views

Python3 as default python version

I am creating a script that will call an API and return some results. I have the script working with pycharm on my computer but I am running into a few problems but I want to focus on this problem first. 1) I am unable to set Python3 as my default python. I am using a Mac. When I go into terminal I...
CaliforniaDataSurfer
1

votes
2

answer
58

Views

How can I get DispatchQueue() code to cleanup on application exit

I have a process running in a DispatchQueue which creates a temporary file. The file is deleted in a defer block so the clean up occurs regardless of whether an error is thrown or I just return from process() normally. See code below func process() throws { let file = createTemporaryFile() defer { d...
Spads
1

votes
5

answer
54

Views

One-liner in ubuntu/macos to print checksum of a file

Is there a short one-liner to get a file checksum, which works on both macos and ubuntu? It doesn't matter what algorithm or program, as long as I don't have to install or setup anything.
Filip Haglund
1

votes
0

answer
7

Views

microk8s untrusted dashboard - how to verifiy certificate

I am trying out microk8s following this I am getting a certificate error when browsing the dashboard(multipass ls - ip address) I guess I need to copy and verify kuberneters certificate from multipass host(macos) on macos keychain?
Chris G.

View additional questions