Friday, February 27, 2015

Using Homebrew to install missing cscope/Exuberant Ctags/wget package on my MAC

I am using Homebrew as my MAC package manager now, here's my steps to install missing wget/cscope packages to my macbook pro:

1. Search if there is a "cscope" FORMULA in current Homebrew library:
$ brew search cscope
cscope


2. Start to install cscope:
$ brew install cscope
==> Downloading https://homebrew.bintray.com/bottles/cscope-15.8a.yosemite.bottle.tar.gz
######################################################################## 100.0%
==> Pouring cscope-15.8a.yosemite.bottle.tar.gz
🍺  /usr/local/Cellar/cscope/15.8a: 10 files, 736K


3. Install Exuberant ctags:
$ brew search ctags
ctags      rbenv-ctags
homebrew/php/phpctags

$ brew install ctags
==> Downloading https://homebrew.bintray.com/bottles/ctags-5.8.yosemite.bottle.tar.gz
######################################################################## 100.0%
==> Pouring ctags-5.8.yosemite.bottle.tar.gz
==> Caveats
Under some circumstances, emacs and ctags can conflict. By default,
emacs provides an executable `ctags` that would conflict with the
executable of the same name that ctags provides. To prevent this,
Homebrew removes the emacs `ctags` and its manpage before linking.

However, if you install emacs with the `--keep-ctags` option, then
the `ctags` emacs provides will not be removed. In that case, you
won't be able to install ctags successfully. It will build but not
link.
==> Summary
🍺  /usr/local/Cellar/ctags/5.8: 8 files, 364K


4. Same way to install wget:
$ brew install wget
==> Installing wget dependency: openssl
==> Downloading https://homebrew.bintray.com/bottles/openssl-1.0.2.yosemite.bottle.tar.gz
######################################################################## 100.0%
==> Pouring openssl-1.0.2.yosemite.bottle.tar.gz
==> Caveats
A CA file has been bootstrapped using certificates from the system
keychain. To add additional certificates, place .pem files in
  /usr/local/etc/openssl/certs

and run
  /usr/local/opt/openssl/bin/c_rehash

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.

Apple has deprecated use of OpenSSL in favor of its own TLS and crypto libraries

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/openssl/lib
    CPPFLAGS: -I/usr/local/opt/openssl/include

==> Summary
🍺  /usr/local/Cellar/openssl/1.0.2: 459 files, 18M
==> Installing wget
==> Downloading https://homebrew.bintray.com/bottles/wget-1.16.1.yosemite.bottle.tar.gz
######################################################################## 100.0%
==> Pouring wget-1.16.1.yosemite.bottle.tar.gz
🍺  /usr/local/Cellar/wget/1.16.1: 9 files, 940K


References:
http://bearlin001.blogspot.tw/2015/02/homebrew-missing-package-manager-for-os.html

No comments:

Post a Comment