Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem installing Xake on Mac OS #3

Open
minarzp opened this issue Apr 28, 2020 · 4 comments
Open

Problem installing Xake on Mac OS #3

minarzp opened this issue Apr 28, 2020 · 4 comments

Comments

@minarzp
Copy link

minarzp commented Apr 28, 2020

I'm trying to install xake by following the instructions here: https://ximera.osu.edu/introduction/gettingStarted/installingLocallyMac/installingLocally

First, for installing go, the "cross-compile-common" option doesn't seem to exist anymore, so I just installed it without the option ("brew install go"). Then trying to install Xake by
"brew install ximeraproject/xake/xake"
I get the following error:

Last 15 lines from /Users/mina/Library/Logs/Homebrew/xake/04.go:
cli.BoolFlag does not implement cli.Flag (Apply method has pointer receiver)
./main.go:113:15: cannot use cli.BoolFlag literal (type cli.BoolFlag) as type cli.Flag in slice literal:
cli.BoolFlag does not implement cli.Flag (Apply method has pointer receiver)
./main.go:117:15: cannot use cli.BoolFlag literal (type cli.BoolFlag) as type cli.Flag in slice literal:
cli.BoolFlag does not implement cli.Flag (Apply method has pointer receiver)
./main.go:121:14: cannot use cli.IntFlag literal (type cli.IntFlag) as type cli.Flag in slice literal:
cli.IntFlag does not implement cli.Flag (Apply method has pointer receiver)
./main.go:126:17: cannot use cli.StringFlag literal (type cli.StringFlag) as type cli.Flag in slice literal:
cli.StringFlag does not implement cli.Flag (Apply method has pointer receiver)
./main.go:131:17: cannot use cli.StringFlag literal (type cli.StringFlag) as type cli.Flag in slice literal:
cli.StringFlag does not implement cli.Flag (Apply method has pointer receiver)
./main.go:136:17: cannot use cli.StringFlag literal (type cli.StringFlag) as type cli.Flag in slice literal:
cli.StringFlag does not implement cli.Flag (Apply method has pointer receiver)
./main.go:165:11: invalid argument c.Args() (type cli.Args) for len
./main.go:165:11: too many errors

I have OS X Catalina 10.15.4 (19E287) and golang version go1.14.2 darwin/amd64.

Could you please advise what is the problem? I've also tried building Xake from source using the instructions in https://github.com/XimeraProject/xake/blob/master/docs/install.md,
and I get the same error.

Thanks a lot.

--Mina

@chemprofra
Copy link

I have the same issue.

I ran the install with the debug option:

brew install ximeraproject/xake/xake -d

In additional to the message @minarzp produced, this was added on (I choose "raise" option):
./main.go:165:11: invalid argument c.Args() (type cli.Args) for len
./main.go:165:11: too many errors
/usr/bin/curl --version
/usr/libexec/java_home --xml --failfast
/usr/libexec/java_home --xml --failfast
/usr/local/Homebrew/Library/Homebrew/debrew.rb:13:in `raise'
BuildError: Failed executing: go get -tags static .

  1. raise
  2. ignore
  3. backtrace
  4. irb
  5. shell
    Choose an action: 1
    ==> Kept temporary files
    Temporary files retained at /private/tmp/xake-20200515-28289-w1jnzk

If reporting this issue, please do so at (not Homebrew/brew or Homebrew/core):
https://github.com/ximeraproject/homebrew-xake/issues

/usr/bin/curl --disable --globoff --show-error --user-agent Homebrew/2.2.16\ (Macintosh;\ Intel\ Mac\ OS\ X\ 10.14.6)\ curl/7.54.0 --retry 3 --location https://api.github.com/search/issues\?q=xake\+state\%3Aopen\+repo\%3Aximeraproject\%2Fhomebrew-xake\+in\%3Atitle\&per_page=100 --header Accept:\ application/vnd.github.v3+json --write-out '
'%{http_code} --header Accept:\ application/vnd.github.antiope-preview+json --dump-header /private/tmp/github_api_headers20200515-27660-5y9eqj

Thanks for help.
Rodney

@minarzp
Copy link
Author

minarzp commented May 17, 2020

Update: I managed to install xake from source (https://github.com/XimeraProject/xake/blob/master/docs/install.md), with a couple small modifications:

  1. This error:

    "cli.BoolFlag does not implement cli.Flag"
    

There has been a change to cli API since the last Xake update and the code is no longer compatible (see urfave/cli#925). Short of migrating to cli v2, we need to pin to v1 by importing the following in main.go:

    "gopkg.in/urfave/cli.v1" 
  1. After fixing this I get the error:

     ./data.go:76:23: cannot convert resp.Size (type func() int64) to type int
    

    Fix this by explicitly casting "resp.size" to int64:

      import(
       ...
       "github.com/reiver/go-cast"
        ....
        )
        ...
        respSize, err := cast.Int64(resp.Size) // Line 77
        bar = pb.StartNew(int(respSize)) 
    

I'll see if I can send a commit with these 2 fixes.

@chemprofra
Copy link

Thanks for this update. I was able to download and install xake. I hope to work out the bugs in deploying, now.

@moorewf
Copy link

moorewf commented Jun 24, 2020

Any updates on this? I tried to follow the default instructions and had the same issue as @minarzp originally. Will try the fix mentioned above as well.

Edit: The instructions given in the May 17th post work for me.

bfindell added a commit to bfindell/xake that referenced this issue Aug 24, 2020
Implement suggested edits in May 17 post at XimeraProject/homebrew-xake#3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants