1

我很难安装 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
4

1 回答 1

0

我无法解决这个问题,但至少我可以为您指出一个 vowpalwabbit 可执行文件。所以你不必成功。

https://github.com/MLWave/vowpal-wabbit-cygwin-executables

一位来自 Kaggle 的高贵灵魂向我指出了这个链接。您需要安装 Cycwin 并从 cygwin 执行 .exe。

还有一个纯 Windows 可执行文件构建https://github.com/MLWave/Kaggle_Rotten_Tomatoes

也由 Triskelion 提供,提供上述构建的同一个人。他的建议:要运行该命令,请使用“cmd”打开控制台,不要单击该文件。

于 2014-12-22T16:51:31.727 回答