2017-03-05 24 views
1

私はLuaで全く新しいです。そして、私が新しい仮想Ubuntuでやったことがここにあります。最初に、公式サイトからダウンロードしたlua-5.3.4をインストールします。エラー:クエリに一致する結果が見つかりませんでした。 ubuntuのluarocksのため

make linux 
make install 

は、そして、これは私が示唆LIBの依存のREADME.mdです。

luarocks install torch 
luarocks install nn 
luarocks install dpnn 
luarocks install torchx 
luarocks install rnn 

ただし、どこで使用してもこのエラーメッセージは常に返されます。

Error: No results matching query were found.

だから私は、私はこれは私が

git clone https://github.com/torch/distro.git ~/torch --recursive 
cd ~/torch; bash install-deps; 
./install.sh 
source ~/.bashrc 

何をすべきか、このコマンドはすべて、mycount

[email protected]:~/Documents/relation inference$

下にある http://torch.ch/docs/getting-started.html

からトーチをインストールするには、ここで見つかった提案に従ってください

その後、依存関係をインストールして再試行します。

sudo luarocks install rnn 
sudo luarocks install nn 
sudo luarocks install torch 

私はsudo suでルートカウントに切り替えます。その後私はluarocks install nnをもう一度やります。私はこれを持っています:

[email protected]:/home/vera/Documents/relation inference# luarocks install nn 
Installing https://rocks.moonscript.org/nn-1.0.4-1.src.rock... 
Using https://rocks.moonscript.org/nn-1.0.4-1.src.rock... switching to 'build' mode 
gcc -O2 -fPIC -I/usr/include/lua5.1 -c lnn.c -o lnn.o 
lnn.c:4:23: fatal error: nanomsg/nn.h: 没有那个文件或目录(this means :no that file or the dict) 
compilation terminated. 

Error: Build error: Failed compiling object lnn.o 

私はrootの下で他のコマンドを使っていますが、私はまだ同じエラーメッセージを受け取りました。

[email protected]:/home/vera/Documents/relation inference# luarocks install rnn 
Error: No results matching query were found. 

[email protected]:/home/vera/Documents/relation inference# luarocks install torch 
Error: No results matching query were found. 

[email protected]:/home/vera/Documents/relation inference# luarocks install torch7-master 
Error: No results matching query were found. 

すでにGitHubから依存関係をダウンロードしました。

+0

、インストールできるパッケージを参照してください--all'検索須藤luarocks '試してみてください。 トーチには独自の岩石があるので、実行している 'luarocks'があなたのシステムではなくトーチのものであることを確認してください。 –

答えて

1

最後に、この方法で問題を解決しました。

Error: No results matching query were found. for luarocks in ubuntu私のブログで解決策の詳細を見つけることができます。

以下は私が行ったことです。


私は公式ウェブサイトは私に言ったし、3回のためにそれをインストールしました。何をしたのに、私が実際にトーチをインストールしなかったことがわかり最初の(そして、私はまだ理由を知りませんが。) することができますあなたはth

> th 
    ______    __ | Torch7 
/_ __/__ ________// | Scientific computing for Lua. 
///_ \/ __/ __/ _ \ | Type ? for help 
/_/ \___/_/ \__/_//_/ | https://github.com/torch 
          | http://torch.ch 

でトーチをインストールsuccessedしている場合は、テスト後多分あなたはまだコマンドluarocks install xxx useless.Continueがあります。

this is the solution which I finally found useful.は(これはChinese.Ifであるあなたは、私がダウンして書かれたものは見ることができ、理解していない。)

ダウンロードgithubの上の依存関係のすべて、辞書に解凍し、そしてCD。

luarocks install nn-master/rocks/nn-scm-1.rockspec 
luarocks install rnn-master/rocks/rnn-scm-1.rockspec 

最も重要な点は、あなたがここに.rockspec

は、いくつかの依存関係の場所です場所を見つける必要があるということです。そして、あなたはいつも同じフォーマットであるとは限りません。

luarocks install torchx-master/torchx-scm-1.rockspec 
luarocks install Moses-master/rockspec/moses-1.4.0-1.rockspec 
luarocks install dpnn-master/rocks/dpnn-scm-1.rockspec 
luarocks install rnn-master/rocks/rnn-scm-1.rockspec 
luarocks install optim-master/optim-1.0.5-0.rockspec 

インストール時に、これが発生する可能性があります。

pnn-scm-1.rockspec 
Using dpnn-master/rocks/dpnn-scm-1.rockspec... switching to 'build' mode 

Missing dependencies for dpnn: 
moses >= 1.3.1 

mkdir: 无法创建目录"/home/vera/.cache/luarocks/https___raw.githubusercontent.com_torch_rocks_master": 权限不够 
mkdir: 无法创建目录"/home/vera/.cache/luarocks/https___raw.githubusercontent.com_torch_rocks_master": 权限不够 
mkdir: 无法创建目录"/home/vera/.cache/luarocks/https___raw.githubusercontent.com_torch_rocks_master": 权限不够 
Warning: Failed searching manifest: Failed creating temporary cache directory /home/vera/.cache/luarocks/https___raw.githubusercontent.com_torch_rocks_master 
mkdir: 无法创建目录"/home/vera/.cache/luarocks/https___raw.githubusercontent.com_rocks-moonscript-org_moonrocks-mirror_master": 权限不够 
mkdir: 无法创建目录"/home/vera/.cache/luarocks/https___raw.githubusercontent.com_rocks-moonscript-org_moonrocks-mirror_master": 权限不够 
mkdir: 无法创建目录"/home/vera/.cache/luarocks/https___raw.githubusercontent.com_rocks-moonscript-org_moonrocks-mirror_master": 权限不够 
Warning: Failed searching manifest: Failed creating temporary cache directory /home/vera/.cache/luarocks/https___raw.githubusercontent.com_rocks-moonscript-org_moonrocks-mirror_master 

だから、私はちょうどrnn, nn, optim, torchを必要とInfactはここで、それはあなたが見ることができるloop.As for.so尋ねる依存関係を見つけ、githubのに移動し、他はすべて、この依存関係が求めるです。

あなたのdictに依存関係がインストールされていることを確認してください。

luarocks list 

お手数ですが、

sudo apt install luarocks 
sudo ~/torch/install/bin/luarocks install nn 
0

最初のエントリとして$ PATHに〜/ torch/install/binを含めます。 このような問題なしでluarocksのインストールを使用できるようになります。詳細については

、以下のリンクを参照してください - https://github.com/torch/nngraph/issues/52

0

あなたはトーチが提供するluarocksを使用する必要があります。次の手順を実行し、それを解決するために XD

関連する問題