Octave锻造包安装

时间:2017-03-06 12:01:48

标签: octave packages

我正在尝试将image-2.6.1软件包安装到GNU Octave 4.0.0版。我下载了 image-2.6.1.tar.gz 并尝试使用

进行安装
pkg install /home/vladimirmatveev/Downloads/image-2.6.1.tar.gz

但是收到错误。

configure: error: in `/tmp/oct-BAtlFb/image-2.6.1/src':
configure: error: C++ compiler cannot create executables
See `config.log' for more details
checking for a sed that does not truncate output... /bin/sed
checking for octave... /usr/bin/octave
checking for mkoctfile... /usr/bin/mkoctfile
checking whether the C++ compiler works... no

pkg: error running the configure script for image.
error: called from 'configure_make' in file /usr/share/octave/4.0.0/m/pkg/private/configure_make.m near line 79, column 9

我确信我有C / C ++编译器,它们是gcc和g ++(当我尝试使用apt-get安装它们时,它说我已经有了最新版本,我确信它是真的)。 我尝试使用

将c / c ++编译器设置为系统变量
export CC=/usr/bin/gcc-4.8
export CXX=/usr/bin/g++-4.8

export CC=/usr/bin/gcc-5
export CXX=/usr/bin/g++-5

(我有两个版本)但它没有帮助。当cmake找不到编译器时,它通常适用于我。

我找到了im-config.log文件,但它只包含

Script for ibus started at run_im.
Script for auto started at run_im.
Script for default started at run_im.

我不确定这是错误消息中提到的配置文件,但它是唯一具有合适修改日期的文件。

我在ubuntu 16.04工作。

我解压缩.tar.gz,cd到它和src /,然后运行./configure并且在检查编译器时没有发现任何麻烦,这是控制台日志。

checking for a sed that does not truncate output... /bin/sed
checking for octave... /usr/bin/octave
checking for mkoctfile... /usr/bin/mkoctfile
checking whether the C++ compiler works... yes
checking for C++ compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C++ compiler... yes
checking whether /usr/bin/g++-5 accepts -g... yes
checking for /usr/bin/g++-5 option to enable C++11 features... -std=gnu++11
checking whether xmin is in the octave::math namespace... no
checking whether templated lambda functions accept '&const int'... yes
configure: creating ./config.status
config.status: creating im2double.m
config.status: creating Makefile
config.status: creating config.h

这是完整的配置日志http://pastebin.com/u6MNSqCB

0 个答案:

没有答案