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:
ho eseguito i vari comandi...

Ho inserito

/usr/local/bin
/usr/local/sbin

ma quando eseguo
brew doctor

compare
Warning: Homebrew's sbin was not found in your PATH but you have installed
formulae that put executables in /usr/local/sbin.
Consider setting the PATH for example like so
echo export PATH='/usr/local/sbin:$PATH' >> ~/.bash_profile
Che cosa si fa ???

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:
iStefano ha scritto:... Che cosa si fa ???
Marpar ha dato una risposta particolareggiata di quello già indicato da doctor

https://www.imaccanici.org/forum/viewtop ... 15#p329791" onclick="window.open(this.href);return false;

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:
Cyberduck ftp
Command Line Interface (CLI)


Attualmente

Codice: Seleziona tutto

brew install duck
non funziona, bisogna eseguire le Snaphsot Builds

Codice: Seleziona tutto

brew install iterate-ch/cyberduck/duck
Per l'uso

Codice: Seleziona tutto

duck --help
https://www.imaccanici.org/forum/viewtop ... 72#p336672" onclick="window.open(this.href);return false;

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:
Abbiamo fermato questo topic al 20gennaio ??? :shock:

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:

Codice: Seleziona tutto

iMac-di-Faxus:~ faxus$ brew update
Warning: Could not create link for iterate-ch/cyberduck/duck, as it
conflicts with Homebrew/homebrew/duck. You will need to use the
fully-qualified name when referring this formula, e.g.
  brew install iterate-ch/cyberduck/duck
Updated Homebrew from a9bc2657 to 1f41f598.
==> New Formulae
...

Codice: Seleziona tutto

iMac-di-Faxus:~ faxus$ brew install iterate-ch/cyberduck/duck
==> Installing duck from iterate-ch/homebrew-cyberduck
Error: duck-4.6.4.16505 already installed
To install this version, first `brew unlink duck'
iMac-di-Faxus:~ faxus$ brew unlink duck
Unlinking /usr/local/Cellar/duck/4.6.4.16505... 1 symlinks removed
iMac-di-Faxus:~ faxus$ brew install iterate-ch/cyberduck/duck
==> Installing duck from iterate-ch/homebrew-cyberduck
==> Downloading https://dist.duck.sh/duck-4.7.17055.tar.gz
######################################################################## 100,0%
/usr/local/Cellar/duck/4.7.17055: 1124 files, 106M, built in 62 seconds
iMac-di-Faxus:~ faxus$ 

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:
iStefano ha scritto:Abbiamo fermato questo topic al 20gennaio ??? :shock:
Eh, sì, ci sono molti aggiustamenti

Codice: Seleziona tutto

iMac-di-Faxus:~ faxus$ brew upgrade
==> Upgrading 9 outdated packages, with result:
binutils 2.25, brew-cask 0.53.3, duck 4.6.5.17000, freetype 2.5.5, imagemagick 6.9.0-3, libpng 1.6.16, libtool 2.4.6, libxml2 2.9.2, unrar 5.2.6
==> Upgrading binutils
==> Downloading https://homebrew.bintray.com/bottles/binutils-2.25.yosemite.bottle.tar.gz
######################################################################## 100,0%
==> Pouring binutils-2.25.yosemite.bottle.tar.gz
/usr/local/Cellar/binutils/2.25: 107 files, 140M
==> Upgrading brew-cask
==> Cloning https://github.com/caskroom/homebrew-cask.git
Cloning into '/Library/Caches/Homebrew/brew-cask--git'...
remote: Counting objects: 2686, done.
remote: Compressing objects: 100% (2531/2531), done.
remote: Total 2686 (delta 198), reused 659 (delta 139), pack-reused 0
Receiving objects: 100% (2686/2686), 5.62 MiB | 723.00 KiB/s, done.
Resolving deltas: 100% (198/198), done.
Checking connectivity... done.
Note: checking out 'e65c40bb2bb02d7aa26f3d0ed6217862f2436055'.

You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by performing another checkout.

If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -b with the checkout command again. Example:

  git checkout -b new_branch_name

Checking out files: 100% (2642/2642), done.
==> Checking out tag v0.53.3
/usr/local/Cellar/brew-cask/0.53.3: 2421 files, 9,5M, built in 21 seconds
==> Upgrading duck
==> Downloading https://homebrew.bintray.com/bottles/duck-4.6.5.17000.yosemite.bottle.tar.gz
######################################################################## 100,0%
==> Pouring duck-4.6.5.17000.yosemite.bottle.tar.gz
/usr/local/Cellar/duck/4.6.5.17000: 1122 files, 105M
==> Upgrading freetype
==> Installing freetype dependency: libpng
==> Downloading https://homebrew.bintray.com/bottles/libpng-1.6.16.yosemite.bottle.tar.gz
######################################################################## 100,0%
==> Pouring libpng-1.6.16.yosemite.bottle.tar.gz
/usr/local/Cellar/libpng/1.6.16: 17 files, 1,3M
==> Installing freetype
==> Downloading https://homebrew.bintray.com/bottles/freetype-2.5.5.yosemite.bottle.tar.gz
######################################################################## 100,0%
==> Pouring freetype-2.5.5.yosemite.bottle.tar.gz
/usr/local/Cellar/freetype/2.5.5: 60 files, 2,6M
==> Upgrading imagemagick
==> Installing dependencies for imagemagick: libtool, xz
==> Installing imagemagick dependency: libtool
==> Downloading https://homebrew.bintray.com/bottles/libtool-2.4.6.yosemite.bottle.tar.gz
######################################################################## 100,0%
==> Pouring libtool-2.4.6.yosemite.bottle.tar.gz
==> Caveats
In order to prevent conflicts with Apple's own libtool we have prepended a "g"
so, you have instead: glibtool and glibtoolize.
==> Summary
/usr/local/Cellar/libtool/2.4.6: 69 files, 3,8M
==> Installing imagemagick dependency: xz
==> Downloading https://homebrew.bintray.com/bottles/xz-5.2.1.yosemite.bottle.tar.gz
######################################################################## 100,0%
==> Pouring xz-5.2.1.yosemite.bottle.tar.gz
/usr/local/Cellar/xz/5.2.1: 59 files, 1,7M
==> Installing imagemagick
==> Downloading https://homebrew.bintray.com/bottles/imagemagick-6.9.0-3.yosemite.bottle.tar.gz
######################################################################## 100,0%
==> Pouring imagemagick-6.9.0-3.yosemite.bottle.tar.gz
/usr/local/Cellar/imagemagick/6.9.0-3: 1440 files, 22M
==> Upgrading libxml2
==> Downloading https://homebrew.bintray.com/bottles/libxml2-2.9.2.yosemite.bottle.tar.gz
######################################################################## 100,0%
==> Pouring libxml2-2.9.2.yosemite.bottle.tar.gz
==> Caveats
This formula is keg-only, which means it was not symlinked into /usr/local.

Mac OS X already provides this software and installing another version in
parallel can cause all kinds of trouble.

Generally there are no consequences of this for you. If you build your
own software and it requires this formula, you'll need to add to your
build variables:

    LDFLAGS:  -L/usr/local/opt/libxml2/lib
    CPPFLAGS: -I/usr/local/opt/libxml2/include

==> Summary
/usr/local/Cellar/libxml2/2.9.2: 275 files, 11M
==> Upgrading unrar
==> Downloading https://homebrew.bintray.com/bottles/unrar-5.2.6.yosemite.bottle.tar.gz
######################################################################## 100,0%
==> Pouring unrar-5.2.6.yosemite.bottle.tar.gz
/usr/local/Cellar/unrar/5.2.6: 5 files, 516K
iMac-di-Faxus:~ faxus$ 

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:

Codice: Seleziona tutto

iMac-di-Faxus:~ faxus$ git checkout -b new_branch_name
fatal: Not a git repository (or any of the parent directories): .git
È un problema troppo complesso, vedrò in seguito.
Pare che comunque posso scaricare ed installare a mano.
I vari comandi usati non mi consentono di creare una directory speciale.
Oppure mettermi a studiare cose che vanno al di là dei miei interessi in brew

Per chi volesse approfondire
https://github.com/cakephp/debug_kit/issues/272" onclick="window.open(this.href);return false;
http://stackoverflow.com/questions/2852 ... nt-directo" onclick="window.open(this.href);return false;
http://stackoverflow.com/questions/1508 ... flag-fails" onclick="window.open(this.href);return false;
http://stackoverflow.com/questions/5083 ... -directory" onclick="window.open(this.href);return false;

Lo stesso si può dire per

Codice: Seleziona tutto

This formula is keg-only, which means it was not symlinked into /usr/local.

Mac OS X already provides this software and installing another version in
parallel can cause all kinds of trouble.

Generally there are no consequences of this for you. If you build your
own software and it requires this formula, you'll need to add to your
build variables:

    LDFLAGS:  -L/usr/local/opt/libxml2/lib
    CPPFLAGS: -I/usr/local/opt/libxml2/include

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:
Infine

Codice: Seleziona tutto

iMac-di-Faxus:~ faxus$ brew cleanup
Removing: /usr/local/Cellar/binutils/2.24...
Removing: /usr/local/Cellar/brew-cask/0.50.0...
Removing: /usr/local/Cellar/duck/4.6.4.16505...
Removing: /usr/local/Cellar/freetype/2.5.3_1...
Removing: /usr/local/Cellar/imagemagick/6.8.9-8...
Removing: /usr/local/Cellar/libpng/1.6.14...
Removing: /usr/local/Cellar/libtool/2.4.2...
Removing: /usr/local/Cellar/libxml2/2.9.1...
Removing: /usr/local/Cellar/unrar/5.2.3...
Removing: /Library/Caches/Homebrew/duck-4.6.4.16505.tar.gz...
Removing: /Users/faxus/Library/Logs/Homebrew/binutils...
Removing: /Users/faxus/Library/Logs/Homebrew/blueutil...
Removing: /Users/faxus/Library/Logs/Homebrew/smartmontools...
iMac-di-Faxus:~ faxus$ 

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:
Brew doctor ha rivelato un po' di problemi.
Inutile stare a proporli, semmai vedremo.

Però uno ha risvegliato il mio interesse.
Ho un annoso problema di risveglio dallo stop, alcune volte fatica a riprendere il collegamento WiFi.
In pratica una volta sì e una no, devo scollegare e ricollegare, ma il collegamento riprende solo se attivo Diagnosi Network!
Ho passato molto tempo a cambiare impostazioni, cancellare preferenze, fare ricerche.

Occupandomi di questo problema ho trovato la soluzione

Codice: Seleziona tutto

iMac-di-Faxus:~ faxus$ brew doctor
....
Warning: You have unlinked kegs in your Cellar
Leaving kegs unlinked can lead to build-trouble and cause brews that depend on
those kegs to fail to run properly once built. Run `brew link` on these:

    blueutil
iMac-di-Faxus:~ faxus$ brew link /usr/local/Library/Formula/blueutil.rb
Linking /usr/local/Cellar/blueutil/1.0.0... 
Error: Could not symlink bin/blueutil
Target /usr/local/bin/blueutil
already exists. You may want to remove it:
  rm '/usr/local/bin/blueutil'

To force the link and overwrite all conflicting files:
  brew link --overwrite blueutil

To list all files that would be deleted:
  brew link --overwrite --dry-run blueutil
iMac-di-Faxus:~ faxus$ rm '/usr/local/bin/blueutil'
iMac-di-Faxus:~ faxus$ brew link /usr/local/Library/Formula/blueutil.rb
Linking /usr/local/Cellar/blueutil/1.0.0... 1 symlinks created
Sistemata la questione avevo trovato un post in un lungo thread nel forum di supporto Apple.

Il problema trattato era appunto del ritardo a riprendere il collegamento WiFi.
Ho trovato un riferimento ad una implementazione di Bernhard Baehr della compatibilità BlueTooth, SleepWatcher.
http://www.bernhard-baehr.de" onclick="window.open(this.href);return false;
http://www.kodiakskorner.com/log/258" onclick="window.open(this.href);return false;

Detto fatto

Codice: Seleziona tutto

iMac-di-Faxus:~ faxus$ brew install sleepwatcher blueutil
Warning: blueutil-1.0.0 already installed, it's just not linked
==> Downloading http://www.bernhard-baehr.de/sleepwatcher_2.2.tgz
######################################################################## 100,0%
==> mv ../sleepwatcher.8 .
==> make install PREFIX=/usr/local/Cellar/sleepwatcher/2.2
==> Caveats
For SleepWatcher to work, you will need to read the following:

  /usr/local/Cellar/sleepwatcher/2.2/ReadMe.rtf

Ignore information about installing the binary and man page,
but read information regarding setup of the launchd files which
are installed here:

  /usr/local/Cellar/sleepwatcher/2.2/de.bernhard-baehr.sleepwatcher-20compatibility-localuser.plist
  /usr/local/Cellar/sleepwatcher/2.2/de.bernhard-baehr.sleepwatcher-20compatibility.plist

These are the examples provided by the author.

To have launchd start sleepwatcher at login:
    ln -sfv /usr/local/opt/sleepwatcher/*.plist ~/Library/LaunchAgents
Then to load sleepwatcher now:
    launchctl load ~/Library/LaunchAgents/de.bernhard-baehr.sleepwatcher-20compatibility-localuser.plist
==> Summary
/usr/local/Cellar/sleepwatcher/2.2: 8 files, 72K, built in 8 seconds
iMac-di-Faxus:~ faxus$ ln -sfv /usr/local/opt/sleepwatcher/*.plist ~/Library/LaunchAgents
/Users/faxus/Library/LaunchAgents/de.bernhard-baehr.sleepwatcher-20compatibility-localuser.plist -> /usr/local/opt/sleepwatcher/de.bernhard-baehr.sleepwatcher-20compatibility-localuser.plist
/Users/faxus/Library/LaunchAgents/de.bernhard-baehr.sleepwatcher-20compatibility.plist -> /usr/local/opt/sleepwatcher/de.bernhard-baehr.sleepwatcher-20compatibility.plist
iMac-di-Faxus:~ faxus$
Faxus contro Problema irrisolto ma non dimenticato: 1 a 0...

Avatar utente
spock
Stato: Non connesso
Maccanico attivo
Maccanico attivo
Avatar utente
Iscritto il: mar, 15 mar 2011 14:36
Messaggi: 293

Top

ciao
ho installato da poco homebrew (in vista di un corso su python e sui classici command line tool) e credo di non avere avuto problemi nonostante il mio intelcoreduo e SnowLeopard.

Ieri però mi sono trovato impelagato con macports che sembrava necessario per "sperimentare" l'ascolto di una radio sul terminale come fanno i Linux (#$ ogg123 http://ai-radio.org" onclick="window.open(this.href);return false;). Installazione fallita e qui son capitato.

Due domande:
1) tu scrivi che homebrew di fatto fa quello che fanno altri pacchetti come macports. Vuol dire che macports o quello che è rimasto installato dopo i miei tentativi è "inutile"? Posso controllare in qualche modo se mi è rimasta rumenta in giro?
Per capirci se scrivo "ports" non trova il comando. Se faccio "selfupdate" fallisce.

2) si può usare homebrew per il comando di cui sopra? Lo so che posso usare vlc o il browser ma solo per capire se è "facile"

Grazie

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:
spock ha scritto:... Due domande:
1) tu scrivi che homebrew di fatto fa quello che fanno altri pacchetti come macports. Vuol dire che macports o quello che è rimasto installato dopo i miei tentativi è "inutile"? Posso controllare in qualche modo se mi è rimasta rumenta in giro?
Per capirci se scrivo "ports" non trova il comando. Se faccio "selfupdate" fallisce.

2) si può usare homebrew per il comando di cui sopra? Lo so che posso usare vlc o il browser ma solo per capire se è "facile
Ero impegnato, all'epoca, rispondo adesso.

C'è anche l'occasione, ho appena installato Brew su El Capitan.
Una facilità ed una sveltezza mai visti, nessun errore, pensa a tutto lui

1) MacPorts è più completo, ma anche più complesso, macchinoso e la roba in più veramente poco popolare.
All'installazione Brew stesso elimina la roba di Ports che occupa le stesse posizioni e crea conflitti.
Adesso non ricordo bene, anche perché sto ricostruendo il mio Terminale da zero (il vecchio datava da Snow Leopard, era superimplementato e potenziato) ma mi sembra che disinstallai del tutto Ports.
Nonostante questo, in diverse ispezioni e "tour, ho trovato frattaglie.
Ora spero sia risolto, mi sono tenuto alla larga...

2) Non lo so, ma ne dubito.
In ogni caso uso Brew per semplificarmi la vita non per complicarmela.
Uso iTunes per le radio

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:
Qualche gemma...

Codice: Seleziona tutto

MacBook-Pro-di-Fabio:~ faxus$ gem install mygem
Fetching: mygem-0.0.1.gem (100%)
ERROR:  While executing gem ... (Gem::FilePermissionError)
    You don't have write permissions for the /Library/Ruby/Gems/2.0.0 directory.
MacBook-Pro-di-Fabio:~ faxus$ /Users/faxus/Desktop/rubygems-update-2.5.1.gem 
-bash: /Users/faxus/Desktop/rubygems-update-2.5.1.gem: Permission denied
MacBook-Pro-di-Fabio:~ faxus$ gem update --system 
Updating rubygems-update
Fetching: rubygems-update-2.5.1.gem (100%)
ERROR:  While executing gem ... (Gem::FilePermissionError)
    You don't have write permissions for the /Library/Ruby/Gems/2.0.0 directory.
MacBook-Pro-di-Fabio:~ faxus$ sudo gem update --system
Password:
Updating rubygems-update
Fetching: rubygems-update-2.5.1.gem (100%)
Successfully installed rubygems-update-2.5.1
Parsing documentation for rubygems-update-2.5.1
Installing ri documentation for rubygems-update-2.5.1
Installing darkfish documentation for rubygems-update-2.5.1
Installing RubyGems 2.5.1
RubyGems 2.5.1 installed
Parsing documentation for rubygems-2.5.1
Installing ri documentation for rubygems-2.5.1

=== 2.5.1 / 2015-12-10

Bug fixes:
-----
-----

RubyGems installed the following executables:
	/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/bin/gem

Ruby Interactive (ri) documentation was installed. ri is kind of like man 
pages for ruby libraries. You may access it like this:
  ri Classname
  ri Classname.class_method
  ri Classname#instance_method
If you do not wish to install this documentation in the future, use the
--no-document flag, or set it as the default in your ~/.gemrc file. See
'gem help env' for details.

RubyGems system software updated
Poi, chi l'avrebbe mai supposto...

Codice: Seleziona tutto

MacBook-Pro-di-Fabio:~ faxus$ gem list --local

*** LOCAL GEMS ***

bigdecimal (1.2.0)
CFPropertyList (2.2.8)
io-console (0.4.2)
json (1.7.7)
libxml-ruby (2.6.0)
minitest (4.3.2)
nokogiri (1.5.6)
psych (2.0.0)
rake (0.9.6)
rdoc (4.0.0)
rubygems-update (2.5.1)
sqlite3 (1.3.7)
test-unit (2.0.0.0)

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:
Aggiornamento

Codice: Seleziona tutto

MacBook-Pro-di-Fabio:~ faxus$ brew update
Updated Homebrew from 34f73827 to f5978a8a...

Avatar utente
robertos
Stato: Non connesso
Expert
Expert
Avatar utente
Iscritto il: ven, 17 lug 2009 18:52
Messaggi: 5487
Località: Roma

Top

faxus ha scritto:Poi, chi l'avrebbe mai supposto...
mah, cose da matti, se non me lo stessi dicendo tu... non ci avrei mai creduto!!!

Roba da rimanerci... e io (ancora una volta) ho rimasto...
Non forzare nessuno a passare a Mac, altrimenti diventerai suo schiavo per sempre! © franz
Fixing the world, one piece of hardware at a time. © iFixit

Avatar utente
mattleega
Stato: Non connesso
Pestifero
Pestifero
Avatar utente
Iscritto il: mar, 30 ott 2007 19:20
Messaggi: 19731

Top

robertos ha scritto:...ancora una volta ho rimasto...
Ultima modifica di mattleega il lun, 25 gen 2016 17:02, modificato 1 volta in totale.
...

L’inerzia soddisfatta dei cittadini è all’origine di quella incredibile malattia che è la servitù volontaria

E se vivremo, sarà per calpestare i re.

Una delle più importanti differenze tra uomini e animali è che questi ultimi non permettono, al più idiota tra loro, di diventare capo branco.

Rispondi

Torna a “Tutorial”

Chi c’è in linea

Visitano il forum: Nessuno e 1 ospite