Homebrew su OS X - Diamo la birra al Mac

Inserite qui le vostre guide, trucchi e consigli

Moderatore: ModiMaccanici

Avatar utente
iStefano
Stato: Non connesso
Genio guastatore
Genio guastatore
Avatar utente
Iscritto il: mer, 30 dic 2009 10:30
Messaggi: 8279
Località: Pomigliano D'Arco (NA)

Top

Contatta:
faxus ha scritto:
sab, 16 giu 2018 19:54

Cestina /Library/Developer/CommandLineTools/

Poi riavvia e riprova, da AppStore.
Fatto nulla ...
Immagine

Se eseguo brew update
Already up-to-date.
Se eseguo brew upgrade

Codice: Seleziona tutto

Error: Your Xcode (9.4.1) is too outdated.
Please update to Xcode 10.0 (or delete it).
Xcode can be updated from
  https://developer.apple.com/download/more/
Se eseguo brew doctor

Codice: Seleziona tutto

Please note that these warnings are just used to help the Homebrew maintainers
with debugging if you file an issue. If everything you use Homebrew for is
working fine: please don't worry or file an issue; just ignore this. Thanks!

Warning: You are using macOS 10.14.
We do not provide support for this pre-release version.
You may encounter build failures or other breakages.
Please create pull-requests instead of filing issues.

Warning: Ruby version 2.3.6 is unsupported on 10.14. Homebrew
is developed and tested on Ruby 2.3.3, and may not work correctly
on other Rubies. Patches are accepted as long as they don't cause breakage
on supported Rubies.

Warning: Your Xcode (9.4.1) is too outdated.
Please update to Xcode 10.0 (or delete it).
Xcode can be updated from
  https://developer.apple.com/download/more/


Warning: Your Xcode (9.4.1) is outdated.
Please update to Xcode 10.0 (or delete it).
Xcode can be updated from
  https://developer.apple.com/download/more/

If 10.0 is installed, you may need to:
  sudo xcode-select --switch /Applications/Xcode.app
Current developer directory is:
  /Applications/Xcode.app/Contents/Developerx
Precedentemente come detto, sono andato anche in https://developer.apple.com/download/more/ cercando i Xcode 10

Scrivo su iMaccanici con TapaTalk per MacBook Air

Avatar utente
faxus
Stato: Non connesso
Pro-Expert 
Pro-Expert 
Avatar utente
Iscritto il: lun, 02 giu 2014 15:12
Messaggi: 30459
Località: Circondato dalle bufale

Top

Contatta:
Ah, ecco.

Devi disinstallare tutto Xcode.
Non solo CLT.

Con Mojave beta devi installare Xcode 10 beta.
O se l'hai installato cambia la path con l'opzione --switch

Avatar utente
iStefano
Stato: Non connesso
Genio guastatore
Genio guastatore
Avatar utente
Iscritto il: mer, 30 dic 2009 10:30
Messaggi: 8279
Località: Pomigliano D'Arco (NA)

Top

Contatta:
Ho provato a disinstallare e re-installare Brew ... ma non cambia !!!
come posso resettarlo per ricominciare da capo ????

Scrivo su iMaccanici con TapaTalk per MacBook Air

Avatar utente
faxus
Stato: Non connesso
Pro-Expert 
Pro-Expert 
Avatar utente
Iscritto il: lun, 02 giu 2014 15:12
Messaggi: 30459
Località: Circondato dalle bufale

Top

Contatta:
Chi ha parlato di disinstallare brew?

Ho scritto, leggi bene, disinstallare Xcode.
Poi reinstallare Xcode aggiornato o i CLT

Avatar utente
iStefano
Stato: Non connesso
Genio guastatore
Genio guastatore
Avatar utente
Iscritto il: mer, 30 dic 2009 10:30
Messaggi: 8279
Località: Pomigliano D'Arco (NA)

Top

Contatta:
non dicevo "tu mi hai detto"...
L'ho fatto io per capire se iniziando come fosse nuovo avessi risolto... ma invece no!!!
ora ti chiedo : quali comandi si posso utilizzare per resettare tutto il "sistema brew" ???

Scrivo su iMaccanici con TapaTalk per MacBook Air

Avatar utente
faxus
Stato: Non connesso
Pro-Expert 
Pro-Expert 
Avatar utente
Iscritto il: lun, 02 giu 2014 15:12
Messaggi: 30459
Località: Circondato dalle bufale

Top

Contatta:
Ma non c'entra un tubo...

Il problema risiede in una versione vecchia di Xcode.
Puoi smontare e rimontare brew mille volte, resterà sempre.
Non è connesso a brew, è uno strumento esterno.

Ogni volta che monti brew ti segnalerà l'avviso.

Se, invece, vuoi risolvere il problema (che problema non è, non è un errore, puoi conviverci...) devi eliminare la vecchia versione di Xcode.

È semplice...

Avatar utente
iStefano
Stato: Non connesso
Genio guastatore
Genio guastatore
Avatar utente
Iscritto il: mer, 30 dic 2009 10:30
Messaggi: 8279
Località: Pomigliano D'Arco (NA)

Top

Contatta:
faxus ha scritto:
dom, 17 giu 2018 14:33


Se, invece, vuoi risolvere il problema (che problema non è, non è un errore, puoi conviverci...) devi eliminare la vecchia versione di Xcode.

È semplice...
Fatto, ma mi risponde così :

Codice: Seleziona tutto

xcrun: error: active developer path ("/Applications/Xcode.app/Contents/Developer") does not exist
Use `sudo xcode-select --switch path/to/Xcode.app` to specify the Xcode that you wish to use for command line developer tools, or use `xcode-select --install` to install the standalone command line developer tools.
See `man xcode-select` for more details.
Error: NaN
/usr/local/Homebrew/Library/Homebrew/os/mac/xcode.rb:154:in `to_i'
/usr/local/Homebrew/Library/Homebrew/os/mac/xcode.rb:154:in `detect_version_from_clang_version'
/usr/local/Homebrew/Library/Homebrew/os/mac/xcode.rb:146:in `detect_version'
/usr/local/Homebrew/Library/Homebrew/os/mac/xcode.rb:116:in `version'
/usr/local/Homebrew/Library/Homebrew/os/mac/xcode.rb:60:in `without_clt?'
/usr/local/Homebrew/Library/Homebrew/os/mac/xcode.rb:51:in `needs_clt_installed?'
/usr/local/Homebrew/Library/Homebrew/extend/os/mac/diagnostic.rb:131:in `check_if_xcode_needs_clt_installed'
/usr/local/Homebrew/Library/Homebrew/install.rb:31:in `block in check_development_tools'
/usr/local/Homebrew/Library/Homebrew/install.rb:30:in `each'
/usr/local/Homebrew/Library/Homebrew/install.rb:30:in `check_development_tools'
/usr/local/Homebrew/Library/Homebrew/install.rb:50:in `perform_preinstall_checks'
/usr/local/Homebrew/Library/Homebrew/cmd/install.rb:242:in `install'
/usr/local/Homebrew/Library/Homebrew/brew.rb:99:in `<main>'
Error: Git must be installed and in your PATH!
xcrun: error: active developer path ("/Applications/Xcode.app/Contents/Developer") does not exist
Use `sudo xcode-select --switch path/to/Xcode.app` to specify the Xcode that you wish to use for command line developer tools, or use `xcode-select --install` to install the standalone command line developer tools.
See `man xcode-select` for more details.
Error: NaN
/usr/local/Homebrew/Library/Homebrew/os/mac/xcode.rb:154:in `to_i'
/usr/local/Homebrew/Library/Homebrew/os/mac/xcode.rb:154:in `detect_version_from_clang_version'
/usr/local/Homebrew/Library/Homebrew/os/mac/xcode.rb:146:in `detect_version'
/usr/local/Homebrew/Library/Homebrew/os/mac/xcode.rb:116:in `version'
/usr/local/Homebrew/Library/Homebrew/os/mac/xcode.rb:60:in `without_clt?'
/usr/local/Homebrew/Library/Homebrew/os/mac/xcode.rb:51:in `needs_clt_installed?'
/usr/local/Homebrew/Library/Homebrew/extend/os/mac/diagnostic.rb:131:in `check_if_xcode_needs_clt_installed'
/usr/local/Homebrew/Library/Homebrew/install.rb:31:in `block in check_development_tools'
/usr/local/Homebrew/Library/Homebrew/install.rb:30:in `each'
/usr/local/Homebrew/Library/Homebrew/install.rb:30:in `check_development_tools'
/usr/local/Homebrew/Library/Homebrew/install.rb:50:in `perform_preinstall_checks'
/usr/local/Homebrew/Library/Homebrew/cmd/install.rb:242:in `install'
/usr/local/Homebrew/Library/Homebrew/brew.rb:99:in `<main>'

Scrivo su iMaccanici con TapaTalk per MacBook Air

Avatar utente
iStefano
Stato: Non connesso
Genio guastatore
Genio guastatore
Avatar utente
Iscritto il: mer, 30 dic 2009 10:30
Messaggi: 8279
Località: Pomigliano D'Arco (NA)

Top

Contatta:
faxus ha scritto:
dom, 17 giu 2018 14:33


Se, invece, vuoi risolvere il problema (che problema non è, non è un errore, puoi conviverci...) devi eliminare la vecchia versione di Xcode.

È semplice...
Fatto, ma mi risponde così :

Codice: Seleziona tutto

xcrun: error: active developer path ("/Applications/Xcode.app/Contents/Developer") does not exist
Use `sudo xcode-select --switch path/to/Xcode.app` to specify the Xcode that you wish to use for command line developer tools, or use `xcode-select --install` to install the standalone command line developer tools.
See `man xcode-select` for more details.
Error: NaN
/usr/local/Homebrew/Library/Homebrew/os/mac/xcode.rb:154:in `to_i'
/usr/local/Homebrew/Library/Homebrew/os/mac/xcode.rb:154:in `detect_version_from_clang_version'
/usr/local/Homebrew/Library/Homebrew/os/mac/xcode.rb:146:in `detect_version'
/usr/local/Homebrew/Library/Homebrew/os/mac/xcode.rb:116:in `version'
/usr/local/Homebrew/Library/Homebrew/os/mac/xcode.rb:60:in `without_clt?'
/usr/local/Homebrew/Library/Homebrew/os/mac/xcode.rb:51:in `needs_clt_installed?'
/usr/local/Homebrew/Library/Homebrew/extend/os/mac/diagnostic.rb:131:in `check_if_xcode_needs_clt_installed'
/usr/local/Homebrew/Library/Homebrew/install.rb:31:in `block in check_development_tools'
/usr/local/Homebrew/Library/Homebrew/install.rb:30:in `each'
/usr/local/Homebrew/Library/Homebrew/install.rb:30:in `check_development_tools'
/usr/local/Homebrew/Library/Homebrew/install.rb:50:in `perform_preinstall_checks'
/usr/local/Homebrew/Library/Homebrew/cmd/install.rb:242:in `install'
/usr/local/Homebrew/Library/Homebrew/brew.rb:99:in `<main>'
Error: Git must be installed and in your PATH!
xcrun: error: active developer path ("/Applications/Xcode.app/Contents/Developer") does not exist
Use `sudo xcode-select --switch path/to/Xcode.app` to specify the Xcode that you wish to use for command line developer tools, or use `xcode-select --install` to install the standalone command line developer tools.
See `man xcode-select` for more details.
Error: NaN
/usr/local/Homebrew/Library/Homebrew/os/mac/xcode.rb:154:in `to_i'
/usr/local/Homebrew/Library/Homebrew/os/mac/xcode.rb:154:in `detect_version_from_clang_version'
/usr/local/Homebrew/Library/Homebrew/os/mac/xcode.rb:146:in `detect_version'
/usr/local/Homebrew/Library/Homebrew/os/mac/xcode.rb:116:in `version'
/usr/local/Homebrew/Library/Homebrew/os/mac/xcode.rb:60:in `without_clt?'
/usr/local/Homebrew/Library/Homebrew/os/mac/xcode.rb:51:in `needs_clt_installed?'
/usr/local/Homebrew/Library/Homebrew/extend/os/mac/diagnostic.rb:131:in `check_if_xcode_needs_clt_installed'
/usr/local/Homebrew/Library/Homebrew/install.rb:31:in `block in check_development_tools'
/usr/local/Homebrew/Library/Homebrew/install.rb:30:in `each'
/usr/local/Homebrew/Library/Homebrew/install.rb:30:in `check_development_tools'
/usr/local/Homebrew/Library/Homebrew/install.rb:50:in `perform_preinstall_checks'
/usr/local/Homebrew/Library/Homebrew/cmd/install.rb:242:in `install'
/usr/local/Homebrew/Library/Homebrew/brew.rb:99:in `<main>'

Scrivo su iMaccanici con TapaTalk per MacBook Air

Avatar utente
faxus
Stato: Non connesso
Pro-Expert 
Pro-Expert 
Avatar utente
Iscritto il: lun, 02 giu 2014 15:12
Messaggi: 30459
Località: Circondato dalle bufale

Top

Contatta:
Ti risponde così a cosa?

Stefano, ti è chiaro che devi radicalmente disinstallare Xcode dal sistema?
Cosa c'entra brew?

Avatar utente
iStefano
Stato: Non connesso
Genio guastatore
Genio guastatore
Avatar utente
Iscritto il: mer, 30 dic 2009 10:30
Messaggi: 8279
Località: Pomigliano D'Arco (NA)

Top

Contatta:
E' stato eliminato xcode, infatti neanche FindAnyFile trova nulla...
se eseguo doctor

Codice: Seleziona tutto

/System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require': cannot load such file -- os/mac/xcode (LoadError)
	from /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'
	from /usr/local/Homebrew/Library/Homebrew/os/mac.rb:2:in `<top (required)>'
	from /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'
	from /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'
	from /usr/local/Homebrew/Library/Homebrew/os.rb:15:in `<module:OS>'
	from /usr/local/Homebrew/Library/Homebrew/os.rb:1:in `<top (required)>'
	from /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'
	from /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'
	from /usr/local/Homebrew/Library/Homebrew/global.rb:91:in `<top (required)>'
	from /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'
	from /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'
	from /usr/local/Homebrew/Library/Homebrew/brew.rb:27:in `<main>'
	
se eseguo

Codice: Seleziona tutto

MacBookAir:~ stefano$ sudo xcode-select --install
Password:
sudo: xcode-select: command not found
\

Scrivo su iMaccanici con TapaTalk per MacBook Air

Avatar utente
iStefano
Stato: Non connesso
Genio guastatore
Genio guastatore
Avatar utente
Iscritto il: mer, 30 dic 2009 10:30
Messaggi: 8279
Località: Pomigliano D'Arco (NA)

Top

Contatta:
Risolto !!!
Grazie Faxus... scusa la rottura

Scrivo su iMaccanici con TapaTalk per MacBook Air

Avatar utente
faxus
Stato: Non connesso
Pro-Expert 
Pro-Expert 
Avatar utente
Iscritto il: lun, 02 giu 2014 15:12
Messaggi: 30459
Località: Circondato dalle bufale

Top

Contatta:
La disinstallazione della copia datata di Xcode ha risolto.

Come sempre un po' di pazienza e un doppio riavvio vanno messi in conto.
Quando si fanno modifiche a livello basso, capita.

Probabilmente le routine e le cache hanno bisogno di ricalcolo...

Avatar utente
fragrua
Stato: Non connesso
Admin of my life
Admin of my life
Avatar utente
Iscritto il: sab, 08 ott 2005 07:00
Messaggi: 62791
Località: [k]ragnano

Top

Contatta:
iStefano ha scritto:
dom, 17 giu 2018 15:59
Risolto !!!
Grazie Faxus... scusa la rottura
Hai le scuse anche da parte del gruppo WhatsApp e del gruppo di iMessage. :-P
La prima cosa su cui devi investire è il benessere del tuo corpo, l'unica cosa che ti porterai nella tomba.
Franz Grua (sarebbe fragrua)

In un mondo perfetto io sarei un essere inutile.
©2015 albertocchio

—> Uso corretto del Forum: https://goo.gl/9xOO0a

Immagine

Avatar utente
iStefano
Stato: Non connesso
Genio guastatore
Genio guastatore
Avatar utente
Iscritto il: mer, 30 dic 2009 10:30
Messaggi: 8279
Località: Pomigliano D'Arco (NA)

Top

Contatta:
fragrua ha scritto:
dom, 17 giu 2018 21:50
iStefano ha scritto:
dom, 17 giu 2018 15:59
Risolto !!!
Grazie Faxus... scusa la rottura
Hai le scuse anche da parte del gruppo WhatsApp e del gruppo di iMessage. :-P
😘

Scrivo su iMaccanici con TapaTalk per MacBook Air

Avatar utente
faxus
Stato: Non connesso
Pro-Expert 
Pro-Expert 
Avatar utente
Iscritto il: lun, 02 giu 2014 15:12
Messaggi: 30459
Località: Circondato dalle bufale

Top

Contatta:
Consiglio ai mastri birrai l'articolo odierno di OSXDaily
http://osxdaily.com/2018/07/05/where-ho ... X+Daily%29

Indica ai curiosi come trovare, col Finder o Terminale, i pacchetti installati con brew.

Tramite il menù Vai > Vai alla cartella...
/usr/local/Cellar/
Si troveranno materialmente i software installati
Immagine
Egualmente, con Terminale si potrà elencare il contenuto della cartella

Codice: Seleziona tutto

ls /usr/local/Cellar
Mentre in opt sono ospitati i symlink.
Quindi se in Terminale cerchiamo lo specifico pacchetto, per esempio archey

Codice: Seleziona tutto

brew --prefix archey
Lo troveremo in opt
Immagine
Da cui trarrà le informazioni dettagliate stampabili sulla shell con brew info

Codice: Seleziona tutto

brew info archey
Immagine

Rispondi

Torna a “Tutorial”

Chi c’è in linea

Visitano il forum: Nessuno e 5 ospiti