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

Installing from source fails on Windows 10 #65

Closed
edsilv opened this issue Oct 25, 2016 · 8 comments
Closed

Installing from source fails on Windows 10 #65

edsilv opened this issue Oct 25, 2016 · 8 comments

Comments

@edsilv
Copy link

edsilv commented Oct 25, 2016

Installing unvendored deps
# github.com/mattn/go-sqlite3
exec: "gcc": executable file not found in %PATH%
FAILED

related? mattn/go-sqlite3#214

@vyzo
Copy link
Contributor

vyzo commented Oct 25, 2016

We use cgo for sqlite and rocksdb, so that means you need gcc and g++ -- and yes, that's the same issue for sqlite.

Unfortunately none of us has any windows computers, so we haven't been able to test there. If you can get it to build we'll be happy to add a section in the README for building on windows.

@edsilv
Copy link
Author

edsilv commented Oct 25, 2016

tried this: mattn/go-sqlite3#214 (comment)

had to manually select the x64 option.

now getting this:

Installing unvendored deps
Installing gorocksdb; this can take a while!
# github.com/cockroachdb/c-jemalloc
..\..\cockroachdb\c-jemalloc\arena.c:1:9: error: expected '=', ',', ';', 'asm' or '__attribute__' before '/' token
 internal/src/arena.c
         ^
# github.com/cockroachdb/c-lz4
..\..\cockroachdb\c-lz4\lz4.c:1:9: error: expected '=', ',', ';', 'asm' or '__attribute__' before '/' token
 internal/lib/lz4.c
         ^
# github.com/cockroachdb/c-snappy
..\..\cockroachdb\c-snappy\snappy-c.cc:1:1: error: 'internal' does not name a type
 internal/snappy-c.cc
 ^~~~~~~~
FAILED

maybe I should just buy a mac :-)

@vyzo
Copy link
Contributor

vyzo commented Oct 25, 2016

this looks like it might be some c++ std version support issue? Maybe it needs a more recent g++ or some std specific option.

@yusefnapora can you take a shot at building on a windows vm?

@yusefnapora
Copy link
Contributor

yeah, I'm trying to get my windows vm into shape now. it's possible that we might need to build rocksdb separately on windows and not use the embed tag. I'll try to sort it out :)

@parkan
Copy link
Contributor

parkan commented Oct 25, 2016

hey @edsilv are you using the latest mingw64?

@edsilv
Copy link
Author

edsilv commented Oct 25, 2016

@parkan think so... downloaded from here: https://sourceforge.net/projects/mingw-w64/

@vyzo
Copy link
Contributor

vyzo commented Oct 26, 2016

README has been upgraded to provide instructions for running with the linux binaries.

Keeping the issue open, as we eventually have to figure out building from source on windows.

@vyzo vyzo changed the title Install failed on Windows 10 Installing from source fails on Windows 10 Oct 26, 2016
@parkan
Copy link
Contributor

parkan commented Nov 8, 2016

@edsilv closing this, let me know if you're still having trouble

@parkan parkan closed this as completed Nov 8, 2016
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

4 participants