mediachain / concat

Mediachain daemons
MIT License
42 stars 13 forks source link

Installing from source fails on Windows 10 #65

Closed edsilv closed 7 years ago

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

related? https://github.com/mattn/go-sqlite3/issues/214

vyzo commented 7 years ago

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 commented 7 years ago

tried this: https://github.com/mattn/go-sqlite3/issues/214#issuecomment-244604166

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 commented 7 years ago

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 commented 7 years ago

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 commented 7 years ago

hey @edsilv are you using the latest mingw64?

edsilv commented 7 years ago

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

vyzo commented 7 years ago

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.

parkan commented 7 years ago

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