在Kubuntu 14.04 LTS x64上安装Torch7:“错误:构建错误:编译对象readline.o失败”

问题描述 投票:0回答:1

我按照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

我想念什么?

torch
1个回答
0
投票

要解决此问题,您需要运行:

sudo apt-get install -y libreadline-dev

然后删除构建文件夹(否则将产生另一个错误:collect2: error: ld returned 1 exit status,然后再次运行安装命令。

© www.soinside.com 2019 - 2024. All rights reserved.