Installation de Grafana sur MacOS

Ma version de MacOS :

$ uname -a
Darwin MacBook.local 19.0.0 Darwin Kernel Version 19.0.0: Thu Oct 17 16:17:15 PDT 2019; root:xnu-6153.41.3~29/RELEASE_X86_64 x86_64

Mise à jours de brew ( en mode verbose afin d’avoir plus d’information ) :

$ brew update -v 

$ brew -v
Homebrew 2.1.16
Homebrew/homebrew-core (git revision 00c2c; last commit 2019-11-18)
Homebrew/homebrew-cask (git revision 9e283; last commit 2019-11-18)
$ brew install grafana
==> Downloading https://homebrew.bintray.com/bottles/grafana-6.4.4.catalina.bottle.tar.gz

Aie première erreur :

...
==> Caveats
Bash completion has been installed to:
  /usr/local/etc/bash_completion.d
==> Summary
?  /usr/local/Cellar/node/13.1.0: 4,591 files, 54.2MB
==> Installing grafana dependency: yarn
xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
Error: An exception occurred within a child process:
  CompilerSelectionError: yarn cannot be built with any available compilers.
Install GNU's GCC:
  brew install gcc

Pour fixer le problème :

xcode-select --install

Ensuite, nouvelle installation de gcc :

$ brew install gcc
Updating Homebrew...
==> Auto-updated Homebrew!
Updated 1 tap (homebrew/core).
==> Updated Formulae
dvc                          node_exporter                rex                          shairport-sync               terraform                    unrar

==> Downloading https://homebrew.bintray.com/bottles/gcc-9.2.0_1.catalina.bottle.tar.gz
==> Downloading from https://akamai.bintray.com/e1/e1a6cd0d52fb715431063657cec4e3578170079168b612a6998d321d778330b1
######################################################################## 100.0%
==> Pouring gcc-9.2.0_1.catalina.bottle.tar.gz
?  /usr/local/Cellar/gcc/9.2.0_1: 1,462 files, 287.9MB
==> `brew cleanup` has not been run in 30 days, running now...
...

Et pour finir installation de grafana :

$ brew install grafana
Updating Homebrew...
==> Downloading https://homebrew.bintray.com/bottles/grafana-6.4.4.catalina.bottle.tar.gz
==> Downloading from https://akamai.bintray.com/43/...
#######################################                                   54.9%
curl: (18) transfer closed with 25517176 bytes remaining to read
Error: Failed to download resource "grafana"
Download failed: https://homebrew.bintray.com/bottles/grafana-6.4.4.catalina.bottle.tar.gz
Warning: Bottle installation failed: building from source.
==> Installing dependencies for grafana: yarn
==> Installing grafana dependency: yarn
==> Downloading https://yarnpkg.com/downloads/1.19.1/yarn-v1.19.1.tar.gz
==> Downloading from https://github-production-release-asset-2e65be.s3.amazonaws.com/...
######################################################################## 100.0%
?  /usr/local/Cellar/yarn/1.19.1: 14 files, 5MB, built in 9 seconds
==> Downloading https://github.com/grafana/grafana/archive/v6.4.4.tar.gz
==> Downloading from https://codeload.github.com/grafana/grafana/tar.gz/v6.4.4
######################################################################## 100.0%
==> go run build.go build
==> yarn install --ignore-engines
==> node_modules/grunt-cli/bin/grunt build
==> Caveats
To have launchd start grafana now and restart at login:
  brew services start grafana
Or, if you don't want/need a background service you can just run:
  grafana-server --config=/usr/local/etc/grafana/grafana.ini --homepath /usr/local/share/grafana --packaging=brew cfg:default.paths.logs=/usr/local/var/log/grafana cfg:default.paths.data=/usr/local/var/lib/grafana cfg:default.paths.plugins=/usr/local/var/lib/grafana/plugins
==> Summary
?  /usr/local/Cellar/grafana/6.4.4: 3,867 files, 176.6MB, built in 10 minutes 16 seconds
==> Caveats
==> grafana
To have launchd start grafana now and restart at login:
  brew services start grafana
Or, if you don't want/need a background service you can just run:
  grafana-server --config=/usr/local/etc/grafana/grafana.ini --homepath /usr/local/share/grafana --packaging=brew cfg:default.paths.logs=/usr/local/var/log/grafana cfg:default.paths.data=/usr/local/var/lib/grafana cfg:default.paths.plugins=/usr/local/var/lib/grafana/plugins

On lance :

$ brew services start grafana
==> Successfully started `grafana` (label: homebrew.mxcl.grafana )

Ensuite un accès et un changement de login/password ( admin/ admin ):
http://localhost:3000/

Le port par défaut est le 3000 :

Migration vers MacOS Catalina

Et donc … j’ai vu toutes les applications 32 bits à supprimer.

  • ApplePi-Baker.app
  • Adobe Flash Player Install Manager.app
  • Audacity.app
  • BlackBerry*.app
  • Cisco AnyConnect Secure Mobility Client.app
  • Delicious Library 2.app
  • DupeZap.app
  • KeePass2.23.app
  • GoPro Studio.app
  • iBooks Author.app
  • iPhoto.app
  • iWorks ’09 ( Keynote.app Numbers.app Pages.app )
  • Photo Size Optimizer.app
  • Wireshark.app
  • ZTerm.app

Certaines n’existent plus … et d’autres il faut les mettre à jours.

Misère.

Mac Erreur : xcrun: error: invalid active developer path

Suite à la mise à jours … impossible de faire du SVN.

$ svn cleanup
xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun

La solution :

$ xcode-select --install
xcode-select: note: install requested for command line developer tools

Cela ouvre une fenêtre :

Misère.

La version :

$ svn --version
svn, version 1.10.3 (r1842928)
   compiled Apr  5 2019, 18:59:58 on x86_64-apple-darwin17.0.0

Copyright (C) 2018 The Apache Software Foundation.
This software consists of contributions made by many people;
see the NOTICE file for more information.
Subversion is open source software, see http://subversion.apache.org/

The following repository access (RA) modules are available:

* ra_svn : Module for accessing a repository using the svn network protocol.
  - with Cyrus SASL authentication
  - handles 'svn' scheme
* ra_local : Module for accessing a repository on local disk.
  - handles 'file' scheme
* ra_serf : Module for accessing a repository via WebDAV protocol using serf.
  - using serf 1.3.9 (compiled with 1.3.9)
  - handles 'http' scheme
  - handles 'https' scheme

Bitdefender Virus Scanner sous Mac : Pas si inutile …

En passant

J’ai repris le même titre que mon précédent post : https://www.cyber-neurones.org/2018/01/bitdefender-virus-scanner-pas-si-inutile/ . Mais j’arrive aux mêmes conclusions …

J’ai l’impression que Chrome est une vrai passoire à Trojan. Misère.