Installing Torch7 on Kubuntu 14.04 LTS x64: "Error: Build error: Failed compiling object readline.o"
Installing Torch7 on Kubuntu 14.04 LTS x64: "Error: Build error: Failed compiling object readline.o"
我按照 http://torch.ch/docs/getting-started.html 的说明在 Kubuntu 14.04 LTS x64 上的 Torch7 上安装了 Torch。
# in a terminal, run the commands
sudo apt-get install -y cmake # is needed to compile when running ./install.sh
curl -s https://raw.githubusercontent.com/torch/ezinstall/master/install-deps | bash
git clone https://github.com/torch/distro.git ~/torch --recursive
cd ~/torch; ./install.sh
执行 ./install.sh
时失败并显示此错误消息:
Error: Build error: Failed compiling object readline.o
我错过了什么?
要解决此问题,您需要 运行:
sudo apt-get install -y libreadline-dev
然后删除构建文件夹(否则会出现另一个错误:collect2: error: ld returned 1 exit status
)并再次运行安装命令。
我按照 http://torch.ch/docs/getting-started.html 的说明在 Kubuntu 14.04 LTS x64 上的 Torch7 上安装了 Torch。
# in a terminal, run the commands
sudo apt-get install -y cmake # is needed to compile when running ./install.sh
curl -s https://raw.githubusercontent.com/torch/ezinstall/master/install-deps | bash
git clone https://github.com/torch/distro.git ~/torch --recursive
cd ~/torch; ./install.sh
执行 ./install.sh
时失败并显示此错误消息:
Error: Build error: Failed compiling object readline.o
我错过了什么?
要解决此问题,您需要 运行:
sudo apt-get install -y libreadline-dev
然后删除构建文件夹(否则会出现另一个错误:collect2: error: ld returned 1 exit status
)并再次运行安装命令。