Boa noite! Vocês poderiam me ajudar a instalar o Eclipse e tudo o que é devido no Mac? Agradeço.
Boa noite! Vocês poderiam me ajudar a instalar o Eclipse e tudo o que é devido no Mac? Agradeço.
Abra o terminal e copie e cole os seguintes comandos:
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
Isso instalará o Homebrew, um gerenciador de pacotes em linha de comando semelhante ao apt-get e afins no mundo Linux. Para mais informações, visite página oficial do projeto: https://brew.sh/index_pt-br
Depois, copie e cole os comandos abaixo:
brew update && brew upgrade && brew tap homebrew/cask-versions
Depois, instale o java com:
brew cask install java
Por fim, instale o eclipse com:
brew cask install eclipse-java
P.S.: Preferencialmente diariamente, contudo ao menos 1 vez por semana, rode o comando brew update && brew upgrade
para atualizar a cache do homebrew e atualizar pacotes que receberam patches.
Ele me retornou isso :( .
Last login: Thu Nov 7 15:18:25 on ttys000
The default interactive shell is now zsh.
To update your account to use zsh, please run chsh -s /bin/zsh
.
For more details, please visit https://support.apple.com/kb/HT208050.
Anas-MacBook-Pro:~ ana$ /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
==> This script will install:
/usr/local/bin/brew
/usr/local/share/doc/homebrew
/usr/local/share/man/man1/brew.1
/usr/local/share/zsh/site-functions/brew
/usr/local/etc/bashcompletion.d/brew
/usr/local/Homebrew
==> The following existing directories will be made group writable:
/usr/local/share
==> The following existing directories will have their owner set to ana:
/usr/local/share
==> The following existing directories will have their group set to admin:
/usr/local/share
==> The following new directories will be created:
/usr/local/bin
/usr/local/etc
/usr/local/include
/usr/local/lib
/usr/local/sbin
/usr/local/var
/usr/local/opt
/usr/local/share/zsh
/usr/local/share/zsh/site-functions
/usr/local/var/homebrew
/usr/local/var/homebrew/linked
/usr/local/Cellar
/usr/local/Caskroom
/usr/local/Homebrew
/usr/local/Frameworks
==> The Xcode Command Line Tools will be installed.
Press RETURN to continue or any other key to abort Anas-MacBook-Pro:~ ana$ Anas-MacBook-Pro:~ ana$ brew update && brew upgrade && brew tap homebrew/cask-versions -bash: brew: command not found Anas-MacBook-Pro:~ ana$ brew cask install java -bash: brew: command not found Anas-MacBook-Pro:~ ana$ brew cask install eclipse-java -bash: brew: command not found Anas-MacBook-Pro:~ ana$
Vamos por partes. As ações abaixo tem de ser executadas 1-a-1, na exata ordem passada, e somente passe ao passo posterior se o anterior tiver executado sem qualquer erro.
Execute o comando chsh -s /bin/zsh
para alterar o shell default, que antigamente era o sh, agora é o zsh.
Depois, execute /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
, aperte Enter quando aparecer a mensagem: "Press RETURN to continue or any other key to abort".
Depois, execute brew update && brew upgrade && brew tap homebrew/cask
Instale o java com brew cask install java
Instale o eclipse com brew cask install eclipse-java