-
Notifications
You must be signed in to change notification settings - Fork 307
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1835 from ClickHouse/add/kb-apple-cannot-verify-d…
…ev-error Adds steps to fix dev verification in MacOS.
- Loading branch information
Showing
4 changed files
with
68 additions
and
0 deletions.
There are no files selected for viewing
68 changes: 68 additions & 0 deletions
68
knowledgebase/fix-developer-verification-error-in-macos.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
--- | ||
title: "Fix the developer verification error in MacOS" | ||
date: 2024-01-09 | ||
--- | ||
|
||
# Fix the developer verification error in MacOS | ||
|
||
If you install ClickHouse using `brew`, you may encounter an error from MacOS. By default, MacOS will not run applications or tools created by a developer who cannot be verified. When attempting to run any `clickhouse` command, you may see this error: | ||
|
||
 | ||
|
||
To get around this verification error, you need to remove the app from MacOS' quarintine bin either by finding the appropriate setting in your [System Settings window](#system-settings-process), or [using the terminal](#terminal-process). | ||
|
||
## System settings process | ||
|
||
The easiest way to remove the `clickhouse` executable from the quarintine bin is to: | ||
|
||
1. Open **System settings**. | ||
1. Navigate to **Privacy & Security**: | ||
|
||
 | ||
|
||
1. Scroll to the bottom of the window to find a message saying _"clickhouse-macos-aarch64" was blocked from use because it is not from an identified developer". | ||
1. Click **Allow Anyway**. | ||
|
||
 | ||
|
||
1. Enter your MacOS user password. | ||
|
||
You should now be able to run `clickhouse` commands in your terminal. | ||
|
||
## Terminal process | ||
|
||
You can perform this process using the command-line: | ||
|
||
First find out where Homebrew installed the `clickhouse` executable: | ||
|
||
```shell | ||
which clickhouse | ||
``` | ||
|
||
This should output something like: | ||
|
||
```shell | ||
/opt/homebrew/bin/clickhouse | ||
``` | ||
|
||
Remove `clickhouse` from the quarantine bin by running `xattr -d com.apple.quarantine` following by the path from the previous command: | ||
|
||
```shell | ||
xattr -d com.apple.quarantine /opt/homebrew/bin/clickhouse | ||
``` | ||
|
||
You should now be able to run the `clickhouse` executable: | ||
|
||
```shell | ||
clickhouse | ||
``` | ||
|
||
This should output something like: | ||
|
||
``` | ||
Use one of the following commands: | ||
clickhouse local [args] | ||
clickhouse client [args] | ||
clickhouse benchmark [args] | ||
... | ||
``` |
Binary file added
BIN
+16 KB
...images/fix-the-developer-verification-error-in-macos/dev-verification-error.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+32.4 KB
...the-developer-verification-error-in-macos/privacy-and-security-default-view.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+36.4 KB
...eloper-verification-error-in-macos/privacy-and-security-screen-allow-anyway.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.