Skip to content
This repository has been archived by the owner on Nov 27, 2018. It is now read-only.

build.sh doesn't build on OS X #240

Closed
khalidabuhakmeh opened this issue Nov 27, 2015 · 6 comments
Closed

build.sh doesn't build on OS X #240

khalidabuhakmeh opened this issue Nov 27, 2015 · 6 comments

Comments

@khalidabuhakmeh
Copy link

I've cloned the repo on both a Windows VM and a OS X machine. The windows machine compiles utilizing the build.cmd fine. The OS X build.sh fails due to KoreBuild initially.

@davidfowl
Copy link
Member

Can you provide some more info? What was the error? What version of mono do you have installed?

@khalidabuhakmeh
Copy link
Author

Mono

Mono JIT compiler version 4.2.0 (Stable 4.2.0.179/a224653 Tue Oct  6 11:28:25 PDT 2015)
Copyright (C) 2002-2014 Novell, Inc, Xamarin Inc and Contributors. www.mono-project.com
    TLS:           normal
    SIGSEGV:       altstack
    Notification:  kqueue
    Architecture:  amd64
    Disabled:      none
    Misc:          softdebug
    LLVM:          supported, not enabled.
    GC:            sgen

Dnvm List

Active              Version Runtime Architecture OperatingSystem Alias
------              ------- ------- ------------ --------------- -----
            1.0.0-rc1-final coreclr          x64          darwin
            1.0.0-rc1-final    mono                    linux/osx
            1.0.0-rc2-16219 coreclr          x64          darwin
            1.0.0-rc2-16219    mono                    linux/osx
            1.0.0-rc2-16237 coreclr          x64          darwin
     *      1.0.0-rc2-16237    mono                    linux/osx default

Nuget Sources

Registered Sources:

  1.  nuget.org [Enabled]
      https://www.nuget.org/api/v2/
  2.  nuget.org v3 [Enabled]
      https://api.nuget.org/v3/index.json
  3.  aspnetrelease [Enabled]
      http://myget.org/F/aspnetrelease
  4.  AspNetVNext [Enabled]
      https://www.myget.org/F/aspnetcidev/api/v3/index.json
  5.  NuGet [Enabled]
      https://api.nuget.org/v3/index.json

Build Output

➜  Routing git:(dev) ./build.sh
An error occurred while retrieving package metadata for 'KoreBuild' from source 'https://api.nuget.org/v3/registration1/'.
Attempting to gather dependencies information for package 'Sake.0.2.2' with respect to project 'packages', targeting 'Any,Version=v0.0'
Attempting to resolve dependencies for package 'Sake.0.2.2' with DependencyBehavior 'Lowest'
Resolving actions to install package 'Sake.0.2.2'
Resolved actions to install package 'Sake.0.2.2'
Adding package 'Sake.0.2.2' to folder 'packages'
Added package 'Sake.0.2.2' to folder 'packages'
Successfully installed 'Sake 0.2.2' to packages
./build.sh: line 33: packages/KoreBuild/build/dnvm.sh: No such file or directory
./build.sh: line 37: dnvm: command not found
./build.sh: line 38: dnvm: command not found
fail: Directory '/Users/khalidabuhakmeh/Projects/aspnet/Routing/packages/KoreBuild/build' not found.
fail: Stack trace:
   at System.IO.Directory.ValidateDirectoryListing (System.String path, System.String searchPattern, System.Boolean& stop) in <filename unknown>:line 0
   at System.IO.Directory+<EnumerateKind>c__Iterator0.MoveNext () in <filename unknown>:line 0
   at Sake.Engine.Loader.DefaultLoader.Load (Sake.Engine.Options options) in <filename unknown>:line 0
   at Sake.Engine.SakeEngine.Execute (Sake.Engine.Options options) in <filename unknown>:line 0
   at Sake.Engine.SakeEngine.Execute (System.String[] args) in <filename unknown>:line 0
   at Sake.Program.Main (System.String[] args) in <filename unknown>:line 0

I hope that helps. It isn't finding KoreBuild initially. Which is weird, since it is using the same nuget.config in the repo, which is used by Windows (right?).

@davidfowl
Copy link
Member

Mono 4.2 has known issues with HttpClient. You can git clean and try again until it works or try downgrading mono to 4.0.5

@khalidabuhakmeh
Copy link
Author

bummer :( Ok I'll try downgrading.

On a positive note, I think the new Routing looks really good, and I am excited about #224.

@davidfowl
Copy link
Member

@rynowak has some gnarly prototypes 2cca9d6

@khalidabuhakmeh
Copy link
Author

Downgrading fixed the issue. Thanks again.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants