1

Win7 システムに Torch 7 をインストールして RNN を実行しようとしていますが、非常識です。Ubuntu VM に簡単にインストールできましたが、CUDA アクセラレーションのために GPU にアクセスできないため、実験的な PCI パススルー ソフトウェアを試すか、Windows で Torch を入手しようとします。これまでのところ、Lua と LuaRocks をインストールできました (ただし、C:\Program Files (x86)\LuaRocks\2.2 パス以外からは実行できません)。私はmingwとcmakeをインストールしました。次のコマンドを使用して Torch をインストールしようとしました。

luarocks --server=https://raw.githubusercontent.com/torch/rocks/master install torch

(ソース: Windows で Luarocks を使用して Torch7 を mingw ビルド エラーでインストールする)

しかし、私は得る:

Missing dependencies for torch:
paths >= 1.0

Using https://raw.githubusercontent.com/torch/rocks/master/paths-scm-1.rocksp
Cloning into 'paths'...
remote: Counting objects: 10, done.
remote: Compressing objects: 100% (9/9), done.
remote: Total 10 (delta 0), reused 5 (delta 0), pack-reused 0
Receiving objects: 100% (10/10), 12.81 KiB | 0 bytes/s, done.
Checking connectivity... done.
cmake -E make_directory build && cd build && cmake .. -DCMAKE_BUILD_TYPE=Rele
gram Files (x86)/lua/5.3/include/" -DLUA_LIBDIR="C:/Program Files (x86)/lua/5
uaRocks\systree/lib/luarocks/rocks/paths/scm-1/lua" -DLIBDIR="C:\Program File
/paths/scm-1/lib" -DCMAKE_INSTALL_PREFIX="C:\Program Files (x86)\LuaRocks\sys
gw32-make

-- Building for: NMake Makefiles
CMake Warning in :
  To use the NMake generator, cmake must be run from a shell that can use the
  compiler cl from the command line.  This environment does not contain
  INCLUDE, LIB, or LIBPATH, and these must be set for the cl compiler to
  work.


-- The C compiler identification is unknown
-- The CXX compiler identification is unknown
CMake Error in :
  The CMAKE_C_COMPILER:

    cl

  is not a full path and was not found in the PATH.

  Tell CMake where to find the compiler by setting either the environment
  variable "CC" or the CMake cache entry CMAKE_C_COMPILER to the full path to
  the compiler, or to the compiler name if it is in the PATH.


CMake Error in :
  The CMAKE_CXX_COMPILER:

    cl

  is not a full path and was not found in the PATH.

  Tell CMake where to find the compiler by setting either the environment
  variable "CXX" or the CMake cache entry CMAKE_CXX_COMPILER to the full path
  to the compiler, or to the compiler name if it is in the PATH.

cl コンパイラがどこにあるのか、自分のシステムにあるかどうかさえわかりません。私の PATH 変数に関しては、明らかにシステム変数ではなくユーザー変数です (システム PATH 変数はありません)。それが問題かどうかはわかりません。現在、次のようになっています。

C:\Users\USERNAME\AppData\Roaming\npm;C:\MinGW\bin;C:\Program Files (x86)\lua\5.3\bin;C\Program Files (x86)\LuaRocks\2.2;C:\Users\USERNAME\AppData\Roaming\LuaRocks\bin;C:\Program Files (x86)\LuaRocks\systree\bin

それが正しいかどうかはわかりませんが、それぞれの bin ディレクトリの外から lua または luarocks を実行できるようにするためのものであれば、その時点で失敗します。誰かが Windows に Torch をインストールする簡単な方法を持っている場合は、私に知らせてください (または、VM で GPU アクセラレーションを有効にする方法さえあります。このスタックした状況から抜け出す方法は何でも)。

4

1 に答える 1