私は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
下にある http://torch.ch/docs/getting-started.html[email protected]:~/Documents/relation inference$
からトーチをインストールするには、ここで見つかった提案に従ってください
その後、依存関係をインストールして再試行します。
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から依存関係をダウンロードしました。
、インストールできるパッケージを参照してください--all'検索須藤luarocks '試してみてください。 トーチには独自の岩石があるので、実行している 'luarocks'があなたのシステムではなくトーチのものであることを確認してください。 –