Pagina 5 di 15

Re: Homebrew su OS X - Diamo la birra al Mac

Inviato: mar, 26 lug 2016 06:53
da 404
faxus ha scritto: Metterlo evidenziato sarebbe noioso per tutti quelli che non hanno nessun bisogno di installare applicazioni extra MacOS
Dissento.
Non frequento più il forum ma lo leggo e a me l'argomento interessa molto, tuttavia ho scoperto molto casualmente questa discussione.

Re: Homebrew su OS X - Diamo la birra al Mac

Inviato: mar, 26 lug 2016 07:05
da iStefano
Scusa Faxus, se lancio brew upgrade, compare :

Codice: Seleziona tutto

MacBook-Air-di-Stefano:~ stefano$ brew upgrade
xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
Warning: You are using OS X 10.12.
We do not provide support for this pre-release version.
You may encounter build failures or other breakages.
Error: Failure while executing: /usr/bin/otool -L /usr/bin/install_name_tool
Cioè ???

Inoltre se eseguo brew cask :

Codice: Seleziona tutto

MacBook-Air-di-Stefano:~ stefano$ brew cask
xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
==> Installing git
xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
Warning: You are using OS X 10.12.
We do not provide support for this pre-release version.
You may encounter build failures or other breakages.
Error: Failure while executing: /usr/bin/otool -L /usr/bin/install_name_tool
Error: Git is unavailable
Error: Failure while executing: /usr/local/bin/brew tap caskroom/cask
:shock: :shock: :roll: :roll:

Re: Homebrew su OS X - Diamo la birra al Mac

Inviato: mar, 26 lug 2016 09:06
da faxus
Per forza, sei su Sierra e hai Terminale 2.7, nuovo nuovo.

Devi installare prima I Command Line Tools poi proseguire con HomeBrew, che invece è rimasto.
Ma non puoi eseguire alcuni comandi

Codice: Seleziona tutto

xcode-select --install
Ti si aprirà una finestra di dialogo per scaricarli.
Poi verranno installati nella posizione corretta e potrai usare i comandi per eseguire brew

Re: Homebrew su OS X - Diamo la birra al Mac

Inviato: mar, 26 lug 2016 17:51
da iStefano
faxus ha scritto:Per forza, sei su Sierra e hai Terminale 2.7, nuovo nuovo.

Devi installare prima I Command Line Tools poi proseguire con HomeBrew, che invece è rimasto.
Ma non puoi eseguire alcuni comandi

Codice: Seleziona tutto

xcode-select --install
Ti si aprirà una finestra di dialogo per scaricarli.
Poi verranno installati nella posizione corretta e potrai usare i comandi per eseguire brew
Ok... Appena posso lo eseguo...
Grazie al momento!!!

Re: Homebrew su OS X - Diamo la birra al Mac

Inviato: mar, 26 lug 2016 20:08
da faxus
Prega...

Poi gli aggiornamenti successivi te li trovi sull'App Store

Re: Homebrew su OS X - Diamo la birra al Mac

Inviato: mar, 26 lug 2016 20:46
da Scialla
Uh mamma, non aggiornavo da una vita e mi ha dato una sfilza di errori da paura... un sacco di permessi da cambiare, troppo lavoro, ci rinuncio :(

Re: Homebrew su OS X - Diamo la birra al Mac

Inviato: mar, 26 lug 2016 20:51
da faxus
Haha... Non ci credo...

Re: Homebrew su OS X - Diamo la birra al Mac

Inviato: mar, 26 lug 2016 21:03
da iStefano
faxus ha scritto:Haha... Non ci credo...

Re: Homebrew su OS X - Diamo la birra al Mac

Inviato: mar, 26 lug 2016 21:07
da Scialla
Warning: Your Homebrew is outdated.
You haven't updated for at least 24 hours. This is a long time in brewland!
To update Homebrew, run `brew update`.
iMacScialla:~ scialla$ brew update
warning: unable to unlink .yardopts: Permission denied
warning: unable to unlink CONTRIBUTING.md: Permission denied
warning: unable to unlink SUPPORTERS.md: Permission denied
fatal: cannot create directory at '.github': Permission denied
Error: Failure while executing: git pull -q origin refs/heads/master:refs/remotes/origin/master
iMacScialla:~ scialla$ brew doctor
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 and just ignore them. Thanks!

Warning: The /usr/local directory is not writable.
Even if this directory was writable when you installed Homebrew, other
software may change permissions on this directory. Some versions of the
"InstantOn" component of Airfoil are known to do this.

You should probably change the ownership and permissions of /usr/local
back to your user account.

Warning: Python is installed at /Library/Frameworks/Python.framework

Homebrew only supports building against the System-provided Python or a
brewed Python. In particular, Pythons installed to /Library can interfere
with other software installs.

Warning: Unbrewed dylibs were found in /usr/local/lib.
If you didn't put them there on purpose they could cause problems when
building Homebrew formulae, and may need to be deleted.

Unexpected dylibs:
/usr/local/lib/libmad.0.2.1.dylib
/usr/local/lib/libmad.0.dylib
/usr/local/lib/libmad.dylib
/usr/local/lib/libntfs.9.0.0.dylib
/usr/local/lib/libogg.0.5.0.dylib
/usr/local/lib/libogg.0.dylib
/usr/local/lib/libogg.dylib
/usr/local/lib/libprotobuf.6.dylib
/usr/local/lib/libublio.1.dylib
/usr/local/lib/libUFSDNTFS.dylib
/usr/local/lib/libvorbis.0.3.0.dylib
/usr/local/lib/libvorbis.0.dylib
/usr/local/lib/libvorbis.dylib
/usr/local/lib/libvorbisenc.2.0.0.dylib
/usr/local/lib/libvorbisenc.2.dylib
/usr/local/lib/libvorbisenc.dylib
/usr/local/lib/libvorbisfile.3.1.0.dylib
/usr/local/lib/libvorbisfile.3.dylib
/usr/local/lib/libvorbisfile.dylib

Warning: Unbrewed header files were found in /usr/local/include.
If you didn't put them there on purpose they could cause problems when
building Homebrew formulae, and may need to be deleted.

Unexpected header files:
/usr/local/include/mad.h
/usr/local/include/ntfs/attrib.h
/usr/local/include/ntfs/attrlist.h
/usr/local/include/ntfs/bitmap.h
/usr/local/include/ntfs/bootsect.h
/usr/local/include/ntfs/collate.h
/usr/local/include/ntfs/compat.h
/usr/local/include/ntfs/compress.h
/usr/local/include/ntfs/debug.h
/usr/local/include/ntfs/device.h
/usr/local/include/ntfs/device_io.h
/usr/local/include/ntfs/dir.h
/usr/local/include/ntfs/endians.h
/usr/local/include/ntfs/gnome-vfs-method.h
/usr/local/include/ntfs/gnome-vfs-module.h
/usr/local/include/ntfs/index.h
/usr/local/include/ntfs/inode.h
/usr/local/include/ntfs/layout.h
/usr/local/include/ntfs/lcnalloc.h
/usr/local/include/ntfs/list.h
/usr/local/include/ntfs/logfile.h
/usr/local/include/ntfs/logging.h
/usr/local/include/ntfs/mft.h
/usr/local/include/ntfs/mst.h
/usr/local/include/ntfs/ntfstime.h
/usr/local/include/ntfs/rich.h
/usr/local/include/ntfs/runlist.h
/usr/local/include/ntfs/security.h
/usr/local/include/ntfs/support.h
/usr/local/include/ntfs/tree.h
/usr/local/include/ntfs/types.h
/usr/local/include/ntfs/unistr.h
/usr/local/include/ntfs/version.h
/usr/local/include/ntfs/volume.h
/usr/local/include/ogg/config_types.h
/usr/local/include/ogg/ogg.h
/usr/local/include/ogg/os_types.h
/usr/local/include/ublio.h
/usr/local/include/vorbis/codec.h
/usr/local/include/vorbis/vorbisenc.h
/usr/local/include/vorbis/vorbisfile.h

Warning: Unbrewed .la files were found in /usr/local/lib.
If you didn't put them there on purpose they could cause problems when
building Homebrew formulae, and may need to be deleted.

Unexpected .la files:
/usr/local/lib/libmad.la
/usr/local/lib/libntfs.la
/usr/local/lib/libogg.la
/usr/local/lib/libublio.la
/usr/local/lib/libvorbis.la
/usr/local/lib/libvorbisenc.la
/usr/local/lib/libvorbisfile.la

Warning: Unbrewed .pc files were found in /usr/local/lib/pkgconfig.
If you didn't put them there on purpose they could cause problems when
building Homebrew formulae, and may need to be deleted.

Unexpected .pc files:
/usr/local/lib/pkgconfig/libublio.pc
/usr/local/lib/pkgconfig/ogg.pc

Warning: Unbrewed static libraries were found in /usr/local/lib.
If you didn't put them there on purpose they could cause problems when
building Homebrew formulae, and may need to be deleted.

Unexpected static libraries:
/usr/local/lib/libmad.a
/usr/local/lib/libntfs.a
/usr/local/lib/libogg.a
/usr/local/lib/libublio.a
/usr/local/lib/libvorbis.a
/usr/local/lib/libvorbisenc.a
/usr/local/lib/libvorbisfile.a
Te ti ci diverti a smanettare col terminale, io lo uso solo in caso di estrema necessità....
E chi c'ha voglia di mettersi a sistemare tutto?
E se poi faccio danni? (Come probabile) :D
E poi mica ho alcun tipo di problema...

...insomma, chimmelofaffà? :D

Re: Homebrew su OS X - Diamo la birra al Mac

Inviato: mar, 26 lug 2016 21:16
da faxus
È tutta colpa di SIP...

Intanto esegui

Codice: Seleziona tutto

sudo chown -R $(whoami):admin /usr/local
Poi ripeti.

Intanto do un'occhiata alla faccenda di Python.
Mi sembra strano che quando hai installato HomeBrew non sia stato installato.

Brew usa la sua versione, non toccando quella, in genere non aggiornata, di Apple

Re: Homebrew su OS X - Diamo la birra al Mac

Inviato: mar, 26 lug 2016 21:22
da Scialla
Ecco, lo sapevo che mi facevi lavorare!!! :evil:
faxus ha scritto: Intanto esegui

Codice: Seleziona tutto

sudo chown -R $(whoami):admin /usr/local
Ah, grazie! è migliorato! :D
Adesso non parte neanche più
iMacScialla:~ scialla$ brew update
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in `require': cannot load such file -- mach (LoadError)
from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in `require'
from /usr/local/Library/Homebrew/extend/pathname.rb:2:in `<top (required)>'
from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in `require'
from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in `require'
from /usr/local/Library/Homebrew/global.rb:3:in `<top (required)>'
from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in `require'
from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in `require'
from /usr/local/Library/brew.rb:16:in `<main>'

Re: Homebrew su OS X - Diamo la birra al Mac

Inviato: mar, 26 lug 2016 21:46
da faxus
Il problema è che, secondo me, sei stato preso in mezzo tra aggiornamenti di sistema e introduzione di SIP.

Non ti so dire bene perché non ho vissuto il passaggio (vissuto è la parola esatta... Hahaha).
Ho ripreso un nuovo Mac con El Capitan e ho dovuto rifare daccapo.

Trovo che dovresti cancellare e reinstallare brew.

Però puoi provare a rigenerarlo, prima

Codice: Seleziona tutto

cd /usr/local && git fetch && git reset --hard origin/master

Re: Homebrew su OS X - Diamo la birra al Mac

Inviato: mar, 26 lug 2016 21:51
da Scialla
faxus ha scritto: Però puoi provare a rigenerarlo, prima

Codice: Seleziona tutto

cd /usr/local && git fetch && git reset --hard origin/master
Mossa vincente!!!!
iMacScialla:~ scialla$ cd /usr/local && git fetch && git reset --hard origin/master
HEAD is now at 73a2e75 shims/scm: move to same path as Homebrew/brew.
iMacScialla:local scialla$ brew update
remote: Counting objects: 353, done.
remote: Compressing objects: 100% (283/283), done.
remote: Total 353 (delta 171), reused 171 (delta 52), pack-reused 0
Receiving objects: 100% (353/353), 501.16 KiB | 0 bytes/s, done.
Resolving deltas: 100% (171/171), completed with 166 local objects.
From https://github.com/Homebrew/brew" onclick="window.open(this.href);return false;
+ 73a2e75...0be204a master -> origin/master (forced update)
HEAD is now at 0be204a tests: add cmd/pull integration test (#525)
==> Homebrew has enabled anonymous aggregate user behaviour analytics
Read the analytics documentation (and how to opt-out) here:
https://git.io/brew-analytics" onclick="window.open(this.href);return false;
==> Tapping homebrew/core
Cloning into '/usr/local/Library/Taps/homebrew/homebrew-core'...
remote: Counting objects: 3717, done.
remote: Compressing objects: 100% (3604/3604), done.
remote: Total 3717 (delta 15), reused 1950 (delta 4), pack-reused 0
Receiving objects: 100% (3717/3717), 2.88 MiB | 1.73 MiB/s, done.
Resolving deltas: 100% (15/15), done.
Checking connectivity... done.
Tapped 3595 formulae (3,743 files, 9.0M)
Already up-to-date.
iMacScialla:local scialla$
Almeno rimane ai posteri!!! Thanks!

Anche se
iMacScialla:local scialla$ brew doctor
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 and just ignore them. Thanks!

Warning: Python is installed at /Library/Frameworks/Python.framework

Homebrew only supports building against the System-provided Python or a
brewed Python. In particular, Pythons installed to /Library can interfere
with other software installs.

Warning: Unbrewed dylibs were found in /usr/local/lib.
If you didn't put them there on purpose they could cause problems when
building Homebrew formulae, and may need to be deleted.

Unexpected dylibs:
/usr/local/lib/libmad.0.2.1.dylib
/usr/local/lib/libmad.0.dylib
/usr/local/lib/libmad.dylib
/usr/local/lib/libogg.0.5.0.dylib
/usr/local/lib/libogg.0.dylib
/usr/local/lib/libogg.dylib
/usr/local/lib/libprotobuf.6.dylib
/usr/local/lib/libvorbis.0.3.0.dylib
/usr/local/lib/libvorbis.0.dylib
/usr/local/lib/libvorbis.dylib
/usr/local/lib/libvorbisenc.2.0.0.dylib
/usr/local/lib/libvorbisenc.2.dylib
/usr/local/lib/libvorbisenc.dylib
/usr/local/lib/libvorbisfile.3.1.0.dylib
/usr/local/lib/libvorbisfile.3.dylib
/usr/local/lib/libvorbisfile.dylib

Warning: Unbrewed header files were found in /usr/local/include.
If you didn't put them there on purpose they could cause problems when
building Homebrew formulae, and may need to be deleted.

Unexpected header files:
/usr/local/include/mad.h
/usr/local/include/ogg/config_types.h
/usr/local/include/ogg/ogg.h
/usr/local/include/ogg/os_types.h
/usr/local/include/ublio.h
/usr/local/include/vorbis/codec.h
/usr/local/include/vorbis/vorbisenc.h
/usr/local/include/vorbis/vorbisfile.h

Warning: Unbrewed .la files were found in /usr/local/lib.
If you didn't put them there on purpose they could cause problems when
building Homebrew formulae, and may need to be deleted.

Unexpected .la files:
/usr/local/lib/libmad.la
/usr/local/lib/libogg.la
/usr/local/lib/libvorbis.la
/usr/local/lib/libvorbisenc.la
/usr/local/lib/libvorbisfile.la

Warning: Unbrewed .pc files were found in /usr/local/lib/pkgconfig.
If you didn't put them there on purpose they could cause problems when
building Homebrew formulae, and may need to be deleted.

Unexpected .pc files:
/usr/local/lib/pkgconfig/ogg.pc

Warning: Unbrewed static libraries were found in /usr/local/lib.
If you didn't put them there on purpose they could cause problems when
building Homebrew formulae, and may need to be deleted.

Unexpected static libraries:
/usr/local/lib/libmad.a
/usr/local/lib/libogg.a
/usr/local/lib/libvorbis.a
/usr/local/lib/libvorbisenc.a
/usr/local/lib/libvorbisfile.a
iMacScialla:local scialla$
Però funziona! :)

Re: Homebrew su OS X - Diamo la birra al Mac

Inviato: mar, 26 lug 2016 22:04
da faxus
Scialla ha scritto:... Anche se...
Quella è roba che mi dovrò guardare con calma.

Non so cosa fare per Python.

Quegli altri sono file da eliminare, ma è meglio controllare cosa sono esattamente

Re: Homebrew su OS X - Diamo la birra al Mac

Inviato: mar, 26 lug 2016 22:07
da Scialla
Quei file possono benissimo stare dove stanno, problemi non ne danno, e non c'è bisogno tu perda tempo (e poi posso cercare da me)....

...anche se
faxus ha scritto: Non so cosa fare per Python.
Ahiahiahi :D :D :D

EDIT
Mi stavo guardando cask... ma c'è il mondo!!!! Facile installare così! :)