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 ???
Re: Homebrew su OS X - Diamo la birra al Mac
Inviato: dom, 14 dic 2014 16:01
da faxus
iStefano ha scritto:... Che cosa si fa ???
Marpar ha dato una risposta particolareggiata di quello già indicato da doctor
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
...
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$
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
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
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
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;
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...
Re: Homebrew su OS X - Diamo la birra al Mac
Inviato: mer, 14 ott 2015 12:49
da spock
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
Re: Homebrew su OS X - Diamo la birra al Mac
Inviato: sab, 26 dic 2015 14:55
da faxus
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
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