1
我很難安裝vowpal wabbit。vowpal wabbit安裝製作文件
我遇到的問題是在克隆vw後運行make命令。錯誤消息如下
非常感謝任何幫助! 操作系統:Windows 8.1的64位 感謝
一個
$ make
Making all in vowpalwabbit
make[1]: Entering directory '/home/Alejandro/vowpal_wabbit/vowpalwabbit'
make all-am
make[2]: Entering directory '/home/Alejandro/vowpal_wabbit/vowpalwabbit'
/bin/sh ../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I/usr/include -I/include
-O3 -fomit-frame-pointer -ffast-math -fno-strict-aliasing -D_FILE_OFFSET_BITS=64 -DNDEBUG -
Wall -pedantic -std=c++0x -MT global_data.lo -MD -MP -MF .deps/global_data.Tpo -c -o global_data.lo global_data.cc
libtool: compile: g++ -DHAVE_CONFIG_H -I. -I/usr/include -I/include -O3 -fomit-frame-pointer - ffast-math -fno-strict-aliasing -D_FILE_OFFSET_BITS=64 -DNDEBUG -Wall -pedantic -std=c++0x -MT global_data.lo -MD -MP -MF .deps/global_data.Tpo -c global_data.cc -DDLL_EXPORT -DPIC -o .libs/global_data.o
In file included from comp_io.h:7:0,
from global_data.h:17,
from global_data.cc:13:
io_buf.h: In member function 'virtual int io_buf::open_file(const char*, bool, int)':
io_buf.h:72:25: error: 'fileno' was not declared in this scope ret = fileno(stdin);
In file included from global_data.h:17:0,
from global_data.cc:13:
comp_io.h: In member function 'virtual int comp_io_buf::open_file(const char*, bool, int)':
comp_io.h:28:34: error: 'fileno' was not declared in this scope
fil = gzdopen(fileno(stdin), "rb");
^
global_data.cc: In constructor 'vw::vw()':
global_data.cc:295:32: error: 'fileno' was not declared in this scope
stdout_fileno = fileno(stdout);
^
Makefile:619: recipe for target 'global_data.lo' failed
make[2]: *** [global_data.lo] Error 1
make[2]: Leaving directory '/home/Alejandro/vowpal_wabbit/vowpalwabbit'
Makefile:390: recipe for target 'all' failed
make[1]: *** [all] Error 2
make[1]: Leaving directory '/home/Alejandro/vowpal_wabbit/vowpalwabbit'
Makefile:503: recipe for target 'all-recursive' failed
make: *** [all-recursive] Error 1
我相信要在Windows上構建,您需要從Microsoft獲得Visual Studio。過去有些人設法用cygwin和GNU/free工具集構建vw,但我不確定它是否微不足道,以及這是否仍然如此。請參閱源代碼樹中的'README.windows.txt'以使用Visual Studio進行構建。另一個可能的途徑是在Windows上安裝一個linux虛擬機,並使用一個簡單的linux'make'。 – arielf
我也想立即編譯VW(在Windows 8.1 64位上使用Cygwin),我也遇到了同樣的錯誤。我遵循[here](http://mlwave.com/install-vowpal-wabbit-on-windows-and-cygwin/)的指示。我完全忘了.NET多麼討厭C++,感謝它的舒適生態系統。我會回來,如果我找到一種方法來解決這個問題... – stmax
我放棄..我修復fileno(...)錯誤,但隨後彈出新的錯誤,如未聲明的alloca(我也修復),然後未聲明to_string(我似乎無法修復)。我想我會使用下面鏈接的二進制文件(雖然有點過時),或者只是在Azure上啓動Linux機器。 ( – stmax