Homebrew Tap - testing request

18 views
Skip to first unread message

Matthew Sackman

unread,
Jan 11, 2016, 6:44:40 AM1/11/16
to gosh...@googlegroups.com
Hi,

I've just created https://github.com/goshawkdb/homebrew-goshawkdb

I think the formula in there means you should be able to build GoshawkDB
on OS X with something like:

brew install goshawkdb/goshawkdb/goshawkdb-server

However, I don't have a Mac of any sort myself so I'm ideally looking
for help testing this. If anyone has 20 mins to see if this works or,
more likely, where it fails, that would be great!

If it builds, if just running "goshawkdb -h" produces the right help
text, that would be great to know.

Many thanks,

Matthew

Joe Blue

unread,
Dec 23, 2016, 3:08:36 AM12/23/16
to GoshawkDB, mat...@goshawkdb.io
Hey Matthew,

It fails with a Mercurial dependency it seems. See last line.

Below is the output:


x-MacBook-Pro:qt apple$ brew install goshawkdb/goshawkdb/goshawkdb-server

==> Tapping goshawkdb/goshawkdb

Cloning into '/usr/local/Homebrew/Library/Taps/goshawkdb/homebrew-goshawkdb'...

remote: Counting objects: 9, done.

remote: Compressing objects: 100% (8/8), done.

remote: Total 9 (delta 0), reused 7 (delta 0), pack-reused 0

Unpacking objects: 100% (9/9), done.

Tapped 1 formula (37 files, 40.4K)

==> Installing goshawkdb-server from goshawkdb/goshawkdb

==> Installing dependencies for goshawkdb/goshawkdb/goshawkdb-server: readline, sqlite, gdbm, python, mercurial, go, lmdb

==> Installing goshawkdb/goshawkdb/goshawkdb-server dependency: readline

==> Downloading https://homebrew.bintray.com/bottles/readline-7.0.1.sierra.bottle.tar.gz

######################################################################## 100.0%

==> Pouring readline-7.0.1.sierra.bottle.tar.gz

==> Caveats

This formula is keg-only, which means it was not symlinked into /usr/local.


macOS provides the BSD libedit library, which shadows libreadline.

In order to prevent conflicts when programs look for libreadline we are

defaulting this GNU Readline installation to keg-only.



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/readline/lib

    CPPFLAGS: -I/usr/local/opt/readline/include


==> Summary

🍺  /usr/local/Cellar/readline/7.0.1: 46 files, 2M

==> Installing goshawkdb/goshawkdb/goshawkdb-server dependency: sqlite

==> Downloading https://homebrew.bintray.com/bottles/sqlite-3.15.2.sierra.bottle.tar.gz

######################################################################## 100.0%

==> Pouring sqlite-3.15.2.sierra.bottle.tar.gz

==> Caveats

This formula is keg-only, which means it was not symlinked into /usr/local.


macOS provides an older sqlite3.


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/sqlite/lib

    CPPFLAGS: -I/usr/local/opt/sqlite/include

    PKG_CONFIG_PATH: /usr/local/opt/sqlite/lib/pkgconfig


==> Summary

🍺  /usr/local/Cellar/sqlite/3.15.2: 11 files, 2.9M

==> Installing goshawkdb/goshawkdb/goshawkdb-server dependency: gdbm

==> Downloading https://homebrew.bintray.com/bottles/gdbm-1.12.sierra.bottle.tar.gz

######################################################################## 100.0%

==> Pouring gdbm-1.12.sierra.bottle.tar.gz

🍺  /usr/local/Cellar/gdbm/1.12: 18 files, 486.9K

==> Installing goshawkdb/goshawkdb/goshawkdb-server dependency: python

==> Downloading https://homebrew.bintray.com/bottles/python-2.7.13.sierra.bottle.tar.gz

######################################################################## 100.0%

==> Pouring python-2.7.13.sierra.bottle.tar.gz

==> Using the sandbox

==> /usr/local/Cellar/python/2.7.13/bin/python -s setup.py --no-user-cfg install --force --verbose --single-version-externally-managed --record=installed.txt --install-scripts=/usr/local/Cellar/python/2.7.13/bin --install-lib=/usr/local/lib/python2.7/site-packages

==> /usr/local/Cellar/python/2.7.13/bin/python -s setup.py --no-user-cfg install --force --verbose --single-version-externally-managed --record=installed.txt --install-scripts=/usr/local/Cellar/python/2.7.13/bin --install-lib=/usr/local/lib/python2.7/site-packages

==> /usr/local/Cellar/python/2.7.13/bin/python -s setup.py --no-user-cfg install --force --verbose --single-version-externally-managed --record=installed.txt --install-scripts=/usr/local/Cellar/python/2.7.13/bin --install-lib=/usr/local/lib/python2.7/site-packages

==> Caveats

Pip and setuptools have been installed. To update them

  pip install --upgrade pip setuptools


You can install Python packages with

  pip install <package>


They will install into the site-package directory

  /usr/local/lib/python2.7/site-packages


See: https://github.com/Homebrew/brew/blob/master/docs/Homebrew-and-Python.md


.app bundles were installed.

Run `brew linkapps python` to symlink these to /Applications.

==> Summary

🍺  /usr/local/Cellar/python/2.7.13: 3,526 files, 48M

==> Installing goshawkdb/goshawkdb/goshawkdb-server dependency: mercurial

==> Downloading https://homebrew.bintray.com/bottles/mercurial-4.0.1.sierra.bottle.tar.gz

######################################################################## 100.0%

==> Pouring mercurial-4.0.1.sierra.bottle.tar.gz

Error: The `brew link` step did not complete successfully

The formula built, but is not symlinked into /usr/local

Could not symlink share/man/man1/hg.1

Target /usr/local/share/man/man1/hg.1

already exists. You may want to remove it:

  rm '/usr/local/share/man/man1/hg.1'


To force the link and overwrite all conflicting files:

  brew link --overwrite mercurial


To list all files that would be deleted:

  brew link --overwrite --dry-run mercurial


Possible conflicting files are:

/usr/local/share/man/man1/hg.1

/usr/local/share/man/man5/hgignore.5

/usr/local/share/man/man5/hgrc.5

==> Caveats

Bash completion has been installed to:

  /usr/local/etc/bash_completion.d


zsh completion has been installed to:

  /usr/local/share/zsh/site-functions

==> Summary

🍺  /usr/local/Cellar/mercurial/4.0.1: 432 files, 6.0M

==> Installing goshawkdb/goshawkdb/goshawkdb-server dependency: go

==> Downloading https://homebrew.bintray.com/bottles/go-1.7.4_1.sierra.bottle.tar.gz

######################################################################## 100.0%

==> Pouring go-1.7.4_1.sierra.bottle.tar.gz

==> Caveats

As of go 1.2, a valid GOPATH is required to use the `go get` command:

  https://golang.org/doc/code.html#GOPATH


You may wish to add the GOROOT-based install location to your PATH:

  export PATH=$PATH:/usr/local/opt/go/libexec/bin

==> Summary

🍺  /usr/local/Cellar/go/1.7.4_1: 6,438 files, 250.7M

==> Installing goshawkdb/goshawkdb/goshawkdb-server dependency: lmdb

==> Downloading https://homebrew.bintray.com/bottles/lmdb-0.9.18.sierra.bottle.tar.gz

######################################################################## 100.0%

==> Pouring lmdb-0.9.18.sierra.bottle.tar.gz

🍺  /usr/local/Cellar/lmdb/0.9.18: 12 files, 537.8K

==> Installing goshawkdb/goshawkdb/goshawkdb-server 

==> Downloading https://src.goshawkdb.io/server/archive/goshawkdb_0.3.1.tar.gz

######################################################################## 100.0%

==> Cloning https://github.com/glycerine/go-capnproto.git

Cloning into '/Users/apple/Library/Caches/Homebrew/goshawkdb-server--github.com-glycerine-go-capnproto--git'...

remote: Counting objects: 1284, done.

remote: Total 1284 (delta 0), reused 0 (delta 0), pack-reused 1284

Receiving objects: 100% (1284/1284), 625.57 KiB | 332.00 KiB/s, done.

Resolving deltas: 100% (747/747), done.

==> Checking out revision 6212efb58029e575442ea95cfa4285ef96ad4617

==> Cloning https://github.com/glycerine/rbtree.git

Cloning into '/Users/apple/Library/Caches/Homebrew/goshawkdb-server--github.com-glycerine-rbtree--git'...

remote: Counting objects: 41, done.

remote: Total 41 (delta 0), reused 0 (delta 0), pack-reused 41

Unpacking objects: 100% (41/41), done.

==> Checking out revision cd7940bb26b149ce2faf398e7c63fff01aa7b394

==> Cloning https://github.com/msackman/gotimerwheel.git

Cloning into '/Users/apple/Library/Caches/Homebrew/goshawkdb-server--github.com-msackman-gotimerwheel--git'...

remote: Counting objects: 35, done.

remote: Total 35 (delta 0), reused 0 (delta 0), pack-reused 35

Unpacking objects: 100% (35/35), done.

==> Checking out revision d3263727885fcb6e20fbd01d29774580ec548590

==> Cloning https://github.com/msackman/chancell.git

Cloning into '/Users/apple/Library/Caches/Homebrew/goshawkdb-server--github.com-msackman-chancell--git'...

remote: Counting objects: 26, done.

remote: Compressing objects: 100% (13/13), done.

remote: Total 26 (delta 12), reused 26 (delta 12), pack-reused 0

Unpacking objects: 100% (26/26), done.

==> Checking out revision f422164a269c10a3ec7495720dc97100d598fb98

==> Cloning https://github.com/msackman/gomdb.git

Cloning into '/Users/apple/Library/Caches/Homebrew/goshawkdb-server--github.com-msackman-gomdb--git'...

remote: Counting objects: 471, done.

remote: Total 471 (delta 0), reused 0 (delta 0), pack-reused 471

Receiving objects: 100% (471/471), 215.49 KiB | 0 bytes/s, done.

Resolving deltas: 100% (256/256), done.

==> Checking out revision b380364713e00fe67c90f5867952663e95aba720

==> Cloning https://github.com/msackman/skiplist.git

Cloning into '/Users/apple/Library/Caches/Homebrew/goshawkdb-server--github.com-msackman-skiplist--git'...

remote: Counting objects: 48, done.

remote: Compressing objects: 100% (21/21), done.

remote: Total 48 (delta 26), reused 48 (delta 26), pack-reused 0

Unpacking objects: 100% (48/48), done.

==> Checking out revision 4c22b4dbe8ed82d9b62dd4923b3e3877242f03f4

==> Cloning https://src.goshawkdb.io/common

requesting all changes

adding changesets

adding manifests

adding file changes

added 68 changesets with 130 changes to 57 files

updating to branch default

19 files updated, 0 files merged, 0 files removed, 0 files unresolved

==> Checking out revision 5f63d41d5a5c6a9a4df9d76d57893ab85b85f78c

Error: No such file or directory - hg

x-MacBook-Pro:qt apple$ 

Matthew Sackman

unread,
Dec 23, 2016, 3:56:06 AM12/23/16
to Joe Blue, GoshawkDB
Hi Joe,

On Fri, Dec 23, 2016 at 12:08:36AM -0800, Joe Blue wrote:
> It fails with a Mercurial dependency it seems. See last line.

Hmm, that's worrying. I do have travis-ci set up on the homebrew tap:
https://travis-ci.org/goshawkdb/homebrew-goshawkdb

It's actually these hg errors that worry me - it looks like mercurial is
failing to install:

> *mercurial*
>
> ==> *Downloading
> https://homebrew.bintray.com/bottles/mercurial-4.0.1.sierra.bottle.tar.gz*
>
> ########################################################################
> 100.0%
>
> ==> *Pouring mercurial-4.0.1.sierra.bottle.tar.gz*
>
> Error: The `brew link` step did not complete successfully
>
> The formula built, but is not symlinked into /usr/local
>
> Could not symlink share/man/man1/hg.1
>
> Target /usr/local/share/man/man1/hg.1
>
> already exists. You may want to remove it:
>
> rm '/usr/local/share/man/man1/hg.1'
>
>
> To force the link and overwrite all conflicting files:
>
> brew link --overwrite mercurial
>
>
> To list all files that would be deleted:
>
> brew link --overwrite --dry-run mercurial
>
>
> Possible conflicting files are:
>
> /usr/local/share/man/man1/hg.1
>
> /usr/local/share/man/man5/hgignore.5
>
> /usr/local/share/man/man5/hgrc.5
>
> ==> *Caveats*
>
> Bash completion has been installed to:
>
> /usr/local/etc/bash_completion.d
>
>
> zsh completion has been installed to:
>
> /usr/local/share/zsh/site-functions
>
> ==> *Summary*
>
> 🍺 /usr/local/Cellar/mercurial/4.0.1: 432 files, 6.0M
>

...

> Error: No such file or directory - hg

Which certainly explains why hg is not on the PATH. I wonder whether the
homebrew recipe for mercurial is problematic - it would seem for travis
that mercurial comes pre-installed.

Maybe see if there's a /usr/local/Cellar/mercurial/4.0.1/bin directory
and ensure that that's on your PATH before trying again?

I'm afraid I don't run any OS X machines so I am debugging blind here!

Matthew

Joe Blue

unread,
Dec 23, 2016, 9:22:42 AM12/23/16
to GoshawkDB

Yes Mercurial is already installed. Good guess.
i uninstalled it, then reinstalled it
hg now works

then i rerun it an it worked:

x-MacBook-Pro:~ apple$ brew install goshawkdb/goshawkdb/goshawkdb-server

==> Installing goshawkdb-server from goshawkdb/goshawkdb

==> Downloading https://src.goshawkdb.io/server/archive/goshawkdb_0.3.1.tar.gz

Already downloaded: /Users/apple/Library/Caches/Homebrew/goshawkdb-server-0.3.1.tar.gz

==> Cloning https://github.com/glycerine/go-capnproto.git

Updating /Users/apple/Library/Caches/Homebrew/goshawkdb-server--github.com-glycerine-go-capnproto--git

==> Checking out revision 6212efb58029e575442ea95cfa4285ef96ad4617

==> Cloning https://github.com/glycerine/rbtree.git

Updating /Users/apple/Library/Caches/Homebrew/goshawkdb-server--github.com-glycerine-rbtree--git

==> Checking out revision cd7940bb26b149ce2faf398e7c63fff01aa7b394

==> Cloning https://github.com/msackman/gotimerwheel.git

Updating /Users/apple/Library/Caches/Homebrew/goshawkdb-server--github.com-msackman-gotimerwheel--git

==> Checking out revision d3263727885fcb6e20fbd01d29774580ec548590

==> Cloning https://github.com/msackman/chancell.git

Updating /Users/apple/Library/Caches/Homebrew/goshawkdb-server--github.com-msackman-chancell--git

==> Checking out revision f422164a269c10a3ec7495720dc97100d598fb98

==> Cloning https://github.com/msackman/gomdb.git

Updating /Users/apple/Library/Caches/Homebrew/goshawkdb-server--github.com-msackman-gomdb--git

==> Checking out revision b380364713e00fe67c90f5867952663e95aba720

==> Cloning https://github.com/msackman/skiplist.git

Updating /Users/apple/Library/Caches/Homebrew/goshawkdb-server--github.com-msackman-skiplist--git

==> Checking out revision 4c22b4dbe8ed82d9b62dd4923b3e3877242f03f4

==> Cloning https://src.goshawkdb.io/common

Updating /Users/apple/Library/Caches/Homebrew/goshawkdb-server--goshawkdb.io-common--hg

==> Checking out revision 5f63d41d5a5c6a9a4df9d76d57893ab85b85f78c

==> go build -o /usr/local/Cellar/goshawkdb-server/0.3.1/bin/goshawkdb main.go

🍺  /usr/local/Cellar/goshawkdb-server/0.3.1: 5 files, 9.1M, built in 19 seconds

x-MacBook-Pro:~ apple$ 


--


it installs a ton of stuff, but i guess its needed.


Matthew Sackman

unread,
Dec 23, 2016, 11:43:03 AM12/23/16
to GoshawkDB
On Fri, Dec 23, 2016 at 02:22:30PM +0000, Joe Blue wrote:
> Yes Mercurial is already installed. Good guess.
> i uninstalled it, then reinstalled it
> hg now works
>
> then i rerun it an it worked:

Excellent - glad it all worked.

Matthew
Reply all
Reply to author
Forward
0 new messages