Instalando elinks no OSX

0

Estou tentando fazer download dos elinks do navegador baseados em texto seguindo este link , mas não consegui porque terminal me deu o erro "sudo: apt-get: comando não encontrado". O que devo fazer para corrigir isso para que eu possa baixar elinks? Eu uso
Mac OS X versão 10.11.5.

Aqui está o meu console depois de tentar instalar usando o brew:

Last login: Thu Jul  7 12:32:57 on ttys000
➜  ~ sudo apt-get install  elinks
Password:
sudo: apt-get: command not found
➜  ~ /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
It appears Homebrew is already installed. If your intent is to reinstall you
should do the following before running this installer again:
    ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/uninstall)"
The current contents of /usr/local are bin Cellar CODEOFCONDUCT.md CONTRIBUTING.md etc Frameworks include lib Library LICENSE.txt opt README.md share SUPPORTERS.md .git .gitignore
➜  ~ brew install elinks
==> Downloading http://elinks.or.cz/download/elinks-0.11.7.tar.bz2
Already downloaded: /Library/Caches/Homebrew/elinks-0.11.7.tar.bz2
==> ./configure --prefix=/usr/local/Cellar/elinks/0.11.7_2 --without-spidermonkey --enable-256-colors
^C
➜  ~ elnks
zsh: command not found: elnks
➜  ~ elinks
zsh: command not found: elinks
➜  ~ /usr/local/Cellar/elinks
zsh: no such file or directory: /usr/local/Cellar/elinks
➜  ~ brew doctor

este é o médico:

Warning: The /usr/local is not writable.

You should probably change the ownership and permissions of /usr/local
back to your user account.
  sudo chown -R $(whoami) /usr/local

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. For example, upgrading
to OS X El Capitan has been known to do this. Some versions of the
"InstantOn" component of Airfoil or running Cocktail cleanup/optimizations
are known to do this as well.

You should probably change the ownership and permissions of /usr/local
back to your user account.
  sudo chown -R $(whoami):admin /usr/local

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: You have MacPorts or Fink installed:
  /opt/local/bin/port

This can cause trouble. You don't have to uninstall them, but you may want to
temporarily move them out of the way, e.g.

  sudo mv /opt/local ~/macports

e esta informação é elinks:

elinks: stable 0.11.7, devel 0.12pre6, HEAD
Text mode web browser
http://elinks.or.cz/
Not installed
From:         https://github.com/Homebrew/homebrew/blob/master/Library/Formula/elinks.rb
==> Dependencies
Required: openssl ✔

sudo brew install elinks

sudo brew install elinks
Password:
Error: Cowardly refusing to 'sudo brew install'
You can use brew with sudo, but only if the brew executable is owned by root.
However, this is both not recommended and completely unsupported so do so at
your own risk.
    
por fred 08.07.2016 / 23:40

1 resposta

3

apt-get é parte do Debian (ou Ubuntu, etc), pacote apt . Ou você não está usando um desses sistemas, ou você não tem esse pacote.

O OSX tem um pacote apt ( com MacPorts ). Não é algo que você provavelmente instalou em seu computador.

Você pode instalar elinks com MacPorts ou homebrew . Mas você precisará de um tutorial diferente. (Em qualquer caso, homebrew não fornece uma fórmula para apt ).

    
por 08.07.2016 / 23:44