AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • 主页
  • 系统&网络
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • 主页
  • 系统&网络
    • 最新
    • 热门
    • 标签
  • Ubuntu
    • 最新
    • 热门
    • 标签
  • Unix
    • 最新
    • 标签
  • DBA
    • 最新
    • 标签
  • Computer
    • 最新
    • 标签
  • Coding
    • 最新
    • 标签
主页 / ubuntu / 问题

问题[octave](ubuntu)

Martin Hope
Archisman Panigrahi
Asked: 2020-08-14 22:03:44 +0800 CST

如何使用在我的计算机上编译的 OpenBLAS 存储库中的 Octave?

  • 1

有人建议使用 Octave 和在我自己的计算机上编译的 OpenBLAS(而不是从存储库预编译的 OpenBLAS)将使计算更快。我使用 apt 从存储库安装了 GNU Octave (4.2.2),并从https://www.openblas.net/编译了最新版本的 OpenBLAS 。

如何让 Octave 使用这个 OpenBLAS?

到目前为止我所尝试的。

编译 OpenBLAS 后,我将其安装在opt/openblas.

然后我输入命令

sudo update-alternatives --install /usr/lib/libblas.so libblas.so /opt/openblas/lib/libopenblas.so 50

sudo update-alternatives --install /usr/lib/libblas.so.3 libblas.so.3 /opt/openblas/lib/libopenblas.so 50

sudo update-alternatives --install /usr/lib/liblapack.so liblapack.so /opt/openblas/lib/libopenblas.so 50

sudo update-alternatives --install /usr/lib/liblapack.so.3 liblapack.so.3 /opt/openblas/lib/libopenblas.so 50

然后我配置为使用新的 OpenBLAS

update-alternatives --config libblas.so 
update-alternatives --config libblas.so.3 
update-alternatives --config liblapack.so 
update-alternatives --config liblapack.so.3 

最后我用新的 OpenBLAS 运行了 Octave,但得到了这个错误。

$ LD_PRELOAD=/opt/openblas/lib/libopenblas.so octave-cli
octave-cli: symbol lookup error: /usr/lib/x86_64-linux-gnu/libblas.so.3: undefined symbol: gotoblas
shared-library octave 18.04 update-alternatives
  • 1 个回答
  • 575 Views
Martin Hope
Archisman Panigrahi
Asked: 2020-08-10 08:18:50 +0800 CST

如何将 GNU Octave 与 Ubuntu 存储库中的 Intel MKL 一起使用,以实现更快的科学计算?

  • 1

Intel Math Kernel Library 是一个 BLAS 库,可在Ubuntu 19.10 及更高版本的Ubuntu 存储库中使用,据报道它可以提供更快的结果。

如何让 GNU Octave 使用从存储库安装的 Intel MKL?

intel shared-library octave
  • 1 个回答
  • 854 Views
Martin Hope
Bernt Ribbum
Asked: 2020-05-04 12:38:21 +0800 CST

GNU Octave 文档失败

  • 2

启动 GNU Octave 时,出现此错误窗口

在此处输入图像描述

看着/usr/share/octave/4.4.1/doc我发现我没有对.qhc那里的文件的写访问权。我试图给每个人写访问它的权限,但这并没有帮助。Octave 运行良好,但文档选项卡无法正常工作。没有显示文档,当导航到该选项卡的“内容”页面时,显示的只是一个忙碌的光标,没有文本。

我希望这是可以理解的,并且有人可以给我一个提示。

仅供参考:Ubuntu 19.10,从具有以下内容的桌面文件运行八度:

cat octave.desktop #!/usr/bin/env xdg-open [Desktop Entry] Version=1.0 Type=Application Terminal=false Icon=octave Name=octave Exec=octave --gui

octave
  • 1 个回答
  • 238 Views
Martin Hope
hoo2
Asked: 2020-03-15 05:56:06 +0800 CST

无法将控制包安装到 Octave(通过 snap 安装)

  • 2

我在安装 octave 包时遇到了一些困难(5.2.0 via snap)。我正在运行 ubuntu 19.10

问题是:

>> pkg install -forge control
configure: error: in `/tmp/oct-bdXz48/control-3.2.0/src':
configure: error: C++ compiler cannot create executables
See `config.log' for more details
checking for mkoctfile... /snap/octave/22/bin/mkoctfile-5.2.0
checking for octave-config... /snap/octave/22/bin/octave-config-5.2.0
checking whether the C++ compiler works... no

pkg: error running the configure script for control.
error: called from
    configure_make at line 82 column 9
    install at line 190 column 7
    pkg at line 441 column 9
>> which make
>> which gcc
>> which g++

我是apt那种人,而且很新,所以我不知道我是否正在寻找正确的方向。里面的whichoctave没有任何编译器相关工具的运气,但是基础安装有gcc、g++、make等...

hoo2@shirka:~$ uname -a
Linux shirka 5.3.0-40-generic #32-Ubuntu SMP Fri Jan 31 20:24:34 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux
hoo2@shirka:~$ apt list --installed build*
Listing... Done
build-essential/eoan,now 12.8ubuntu1 amd64 [installed]
octave snap
  • 1 个回答
  • 3588 Views
Martin Hope
Soheil Paper
Asked: 2020-02-02 08:05:09 +0800 CST

/bin/sh: 1: 语法错误:未终止的带引号的字符串 <builtin>:目标“wfdbinit.o”的配方在 WFDB 八度工具箱安装中失败

  • 0

我需要通过 EEG 信号工作,并尝试使用来自 physionet站点的WFDB,因此根据它的readme.MD文件,我尝试执行以下操作:

$ sudo apt-get install gcc libcurl4-openssl-dev perl
Reading package lists... Done
Building dependency tree       
Reading state information... Done
gcc is already the newest version (4:7.4.0-1ubuntu2.3).
libcurl4-openssl-dev is already the newest version (7.58.0-2ubuntu3.8).
perl is already the newest version (5.26.1-6ubuntu0.3).
0 upgraded, 0 newly installed, 0 to remove and 99 not upgraded.

当我尝试时sudo make,我得到这个输出:

$ sudo ./configure
Checking the operating system type ...
Configuring the WFDB software package for Linux-64.
Checking the echo command ...

Looking for the C compiler ... gcc
Looking for the command to strip debugging metadata ... strip
The WFDB software will be installed in '/usr/local'.
The manual pages will be installed in '/usr/local/share/man'.

Looking for libcurl ... found
The WFDB software will be compiled with NETFILES access
using libcurl.

Creating Makefile in lib ...
Creating Makefile in app ...
Creating Makefile in checkpkg ...
Creating Makefile in convert ...
Creating Makefile in data ...
Creating Makefile in doc ...
Creating Makefile in doc/wag-src ...
Creating Makefile in doc/wpg-src ...
Creating Makefile in doc/wug-src ...
Creating Makefile in examples ...
Creating Makefile in fortran ...
Creating Makefile in psd ...
Creating Makefile in wave ...
Creating Makefile in waverc ...
Creating Makefile in xml ...
Creating Makefile in . ...
rm conf/site.def conf/site-slib.def

IMPORTANT: You have chosen to build a dynamic (shared) WFDB library in
a directory, /usr/local/lib, that is not normally searched for such
libraries.  In order to use the applications that will be compiled
with this library, it may be necessary to add this directory to your
LD_LIBRARY_PATH.  If your shell is csh or a variant, do this by
typing:
  setenv LD_LIBRARY_PATH /usr/local/lib
Otherwise, do this by typing:
  LD_LIBRARY_PATH=/usr/local/lib
  export LD_LIBRARY_PATH

Summary:

wfdb-10.6.2-Linux-64 is now ready to be compiled using 'gcc'.
The WFDB library will be compiled as a dynamic library with NETFILES
 access via libcurl, and it will be installed in '/usr/local/lib'.
The WFDB library .h files will be installed in '/usr/local/include/wfdb'.
The WFDB applications will be linked to dynamic system libraries, and
 they will be installed in '/usr/local/bin'.
WAVE will not be compiled.
Manual pages will be installed in subdirectories of '/usr/local/share/man'.
Sample data files will be installed in '/usr/local/database', which
 will be included in the default WFDB path.

If you need to compile a different WFDB library type, or install into different
directories, rerun this script with its "-i" (interactive) option:
      ./configure -i
Other options can be viewed by rerunning this script with its "-h" option:
      ./configure -h

WFDB software configuration is complete.
Now run 'make' to compile and test, followed by 'make install' to recompile
and install the software, man pages, and example data.  Finally, run
'make check' to verify that the installation is complete and successful.

so@so-notebook:/media/so/ACAC8B5FAC8B2346/Elasa/Softwares/Linux's/AI/Octave/Biomed/wfdb/wfdb-10.6.2$ sudo make 
make WFDBROOT=`pwd`/build LIBDIR=`pwd`/build/lib install
make[1]: Entering directory '/media/so/ACAC8B5FAC8B2346/Elasa/Softwares/Linux's/AI/Octave/Biomed/wfdb/wfdb-10.6.2'
cd lib;      make clean; make install
make[2]: Entering directory '/media/so/ACAC8B5FAC8B2346/Elasa/Softwares/Linux's/AI/Octave/Biomed/wfdb/wfdb-10.6.2/lib'
rm -f wfdbinit.o annot.o signal.o calib.o wfdbio.o libwfdb.* *.dll *~
make[2]: Leaving directory '/media/so/ACAC8B5FAC8B2346/Elasa/Softwares/Linux's/AI/Octave/Biomed/wfdb/wfdb-10.6.2/lib'
make[2]: Entering directory '/media/so/ACAC8B5FAC8B2346/Elasa/Softwares/Linux's/AI/Octave/Biomed/wfdb/wfdb-10.6.2/lib'
make clean      # force recompilation since config may have changed
make[3]: Entering directory '/media/so/ACAC8B5FAC8B2346/Elasa/Softwares/Linux's/AI/Octave/Biomed/wfdb/wfdb-10.6.2/lib'
rm -f wfdbinit.o annot.o signal.o calib.o wfdbio.o libwfdb.* *.dll *~
make[3]: Leaving directory '/media/so/ACAC8B5FAC8B2346/Elasa/Softwares/Linux's/AI/Octave/Biomed/wfdb/wfdb-10.6.2/lib'
make all
make[3]: Entering directory '/media/so/ACAC8B5FAC8B2346/Elasa/Softwares/Linux's/AI/Octave/Biomed/wfdb/wfdb-10.6.2/lib'
make setup
make[4]: Entering directory '/media/so/ACAC8B5FAC8B2346/Elasa/Softwares/Linux's/AI/Octave/Biomed/wfdb/wfdb-10.6.2/lib'
sed "s+DBDIR+/media/so/ACAC8B5FAC8B2346/Elasa/Softwares/Linux's/AI/Octave/Biomed/wfdb/wfdb-10.6.2/build/database+" <wfdblib.h0 >wfdblib.h
make[4]: Leaving directory '/media/so/ACAC8B5FAC8B2346/Elasa/Softwares/Linux's/AI/Octave/Biomed/wfdb/wfdb-10.6.2/lib'
make wfdbinit.o annot.o signal.o calib.o wfdbio.o
make[4]: Entering directory '/media/so/ACAC8B5FAC8B2346/Elasa/Softwares/Linux's/AI/Octave/Biomed/wfdb/wfdb-10.6.2/lib'
gcc -Wno-implicit -Wformat  -fpic -g -O -DWFDB_MAJOR=10 -DWFDB_MINOR=6 -DWFDB_RELEASE=2 `curl-config --cflags` -I/media/so/ACAC8B5FAC8B2346/Elasa/Softwares/Linux's/AI/Octave/Biomed/wfdb/wfdb-10.6.2/build/include   -c -o wfdbinit.o wfdbinit.c
/bin/sh: 1: Syntax error: Unterminated quoted string
<builtin>: recipe for target 'wfdbinit.o' failed
make[4]: *** [wfdbinit.o] Error 2
make[4]: Leaving directory '/media/so/ACAC8B5FAC8B2346/Elasa/Softwares/Linux's/AI/Octave/Biomed/wfdb/wfdb-10.6.2/lib'
Makefile:224: recipe for target 'all' failed
make[3]: *** [all] Error 2
make[3]: Leaving directory '/media/so/ACAC8B5FAC8B2346/Elasa/Softwares/Linux's/AI/Octave/Biomed/wfdb/wfdb-10.6.2/lib'
Makefile:230: recipe for target 'install' failed
make[2]: *** [install] Error 2
make[2]: Leaving directory '/media/so/ACAC8B5FAC8B2346/Elasa/Softwares/Linux's/AI/Octave/Biomed/wfdb/wfdb-10.6.2/lib'
Makefile:268: recipe for target 'install' failed
make[1]: *** [install] Error 2
make[1]: Leaving directory '/media/so/ACAC8B5FAC8B2346/Elasa/Softwares/Linux's/AI/Octave/Biomed/wfdb/wfdb-10.6.2'
Makefile:263: recipe for target 'all' failed
make: *** [all] Error 2

基于此的更多信息:

安装 gcc、libcurl 和 perl(需要 root 权限)。使用命令检查它们是否已安装

gcc --version 
curl-config --version
perl --version

如果这些命令有效,请跳到下一步。否则,在 Fedora 和其他基于 RPM 的 GNU/Linux 发行版上,命令

$ gcc --version
gcc (Ubuntu 7.4.0-1ubuntu1~18.04.1) 7.4.0
Copyright (C) 2017 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

so@so-notebook:/media/so/ACAC8B5FAC8B2346/Elasa/Softwares/Linux's/AI/Octave/Biomed/wfdb/wfdb-10.6.2$ curl-config --version
libcurl 7.58.0
so@so-notebook:/media/so/ACAC8B5FAC8B2346/Elasa/Softwares/Linux's/AI/Octave/Biomed/wfdb/wfdb-10.6.2$ perl --version

This is perl 5, version 26, subversion 1 (v5.26.1) built for x86_64-linux-gnu-thread-multi
(with 67 registered patches, see perl -V for more detail)

Copyright 1987-2017, Larry Wall

Perl may be copied only under the terms of either the Artistic License or the
GNU General Public License, which may be found in the Perl 5 source kit.

Complete documentation for Perl, including FAQ lists, should be found on
this system using "man perl" or "perldoc perl".  If you have access to the
Internet, point your browser at http://www.perl.org/, the Perl Home Page.

所以在这里问这个问题。

谢谢。

software-installation octave 18.04
  • 1 个回答
  • 3019 Views
Martin Hope
Cameron Taggart
Asked: 2019-07-16 20:40:47 +0800 CST

Octave 主目录的 snap 权限

  • 1

我昨天安装了octavesnap,但是当我运行时octave,它没有权限访问我的$HOME. 如何启用权限?

ctaggart@rustasia:~/octave-add$ octave
octave: X11 DISPLAY environment variable not set
octave: disabling GUI features
GNU Octave, version 5.1.0
Copyright (C) 2019 John W. Eaton and others.
This is free software; see the source code for copying conditions.
There is ABSOLUTELY NO WARRANTY; not even for MERCHANTABILITY or
FITNESS FOR A PARTICULAR PURPOSE.  For details, type 'warranty'.

Octave was configured for "x86_64-pc-linux-gnu".

Additional information about Octave is available at https://www.octave.org.

Please contribute if you find this software useful.
For more information, visit https://www.octave.org/get-involved.html

Read https://www.octave.org/bugs.html to learn how to submit bug reports.
For information about changes from previous versions, type 'news'.

warning: load_path: .: Permission denied
octave:1> ls
ls: cannot open directory '.': Permission denied

阅读https://docs.snapcraft.io/interface-management后,我​​认为这会起作用:

sudo snap connect octave:home :home
error: cannot resolve connection, slot snap name is empty

快照的详细信息:

ctaggart@rustasia:~/octave-add$ snap info octave
name:      octave
summary:   Interactive programming environment for numerical computations
publisher: GNU Octave (octave-snap✓)
contact:   [email protected]
license:   unset
description: |
  GNU Octave is a high-level interpreted language, primarily intended for
  numerical computations. It provides capabilities for the numerical
  solution of linear and nonlinear problems, and for performing other
  numerical experiments. It also provides extensive graphics capabilities
  for data visualization and manipulation. Octave is normally used through
  its interactive command line interface, but it can also be used to write
  non-interactive programs. The Octave language is quite similar to
  Matlab so that most programs are easily portable.
commands:
  - octave
  - octave.octave-cli
snap-id:      AC5zoejRZUR3QS4V1ZCktZ2yUUz3ubRb
tracking:     beta
refresh-date: yesterday at 05:54 UTC
channels:
  stable:    –                          
  candidate: –                          
  beta:      5.1.0 2019-06-13 (5) 192MB -
  edge:      5.1.0 2019-06-13 (5) 192MB -
installed:   5.1.0            (5) 192MB -

和连接:

ctaggart@rustasia:~/octave-add$ snap connections octave
Interface       Plug                   Slot  Notes
desktop         octave:desktop         -     -
desktop-legacy  octave:desktop-legacy  -     -
home            octave:home            -     -
opengl          octave:opengl          -     -
pulseaudio      octave:pulseaudio      -     -
unity7          octave:unity7          -     -
wayland         octave:wayland         -     -
x11             octave:x11             -     -
permissions octave snap
  • 1 个回答
  • 2743 Views
Martin Hope
Archisman Panigrahi
Asked: 2019-06-23 23:34:13 +0800 CST

无法在 armhf 中安装 Octave - 加载“libopenblas.so.0”时出错

  • 0

我在手机的 Termux 中安装了 Ubuntu 18.04(使用 Canonical 创建的 armhf rootfs )。

安装 octave ( sudo apt install octave) 时出现以下错误。

Setting up octave (4.2.2-1ubuntu1) ...    
/usr/bin/octave-cli: error while loading shared libraries: libopenblas.so.0: cannot enable executable stack as shared object requires: Permission denied
dpkg: error processing package octave (--configure):
 installed octave package post-installation script subprocess returned error exit status 127
Errors were encountered while processing:
  octave                                   
E: Sub-process /usr/bin/dpkg returned an error code (1)

我跑octave --configure了,这又说

/usr/bin/octave-cli: error while loading shared libraries: libopenblas.so.0: cannot enable executable stack as shared object requires: Permission denied

有没有办法解决这个问题?该软件包libopenblas-dev已安装。

android arm shared-library octave 18.04
  • 1 个回答
  • 1646 Views
Martin Hope
Rishabh
Asked: 2019-05-25 00:12:59 +0800 CST

如何创建一个可以用八度打开的数据文件

  • 0

我使用以下命令创建了两个文件 FeaturesX.dat 和 PriceY.dat:

touch FeaturesX.dat

和

touch PriceY.dat

但是当我尝试使用以下命令从八度打开这些文件时:

load FeaturesX.dat

会弹出这个错误:

error: load: unable to determine the file format of ...
octave
  • 1 个回答
  • 2191 Views
Martin Hope
Ethan
Asked: 2018-09-24 11:37:39 +0800 CST

Octave - 无效的 ELF 标头 - Ubuntu 18.04

  • 1

TLDR;

我想在没有任何 GUI 的终端中运行 octave 代码,但面临 ELF 标头错误。

完整的问题;

我正在尝试运行一个基本的 octave 脚本,如此处所示,它保存为名为 testing.oct 的文件

x = 5
% This is just some silly comment to make minimum length. 

但是,当我octave testing.oct使用该文件进入已经在该目录中的命令行时,出现以下错误

error: /home/user/programs/junk/testing.oct: failed to load: /home/user/programs/junk/testing.oct: invalid ELF header

运行cat testing.oct验证我正在加载我打算加载的文件。

我正在运行刚刚从 16.04 更新到的 Ubuntu 18.04。根据octave --version我正在使用 4.2.2 。我以前(在 16.04 中)以这种方式使用了 octave,“命令窗口”输出出现在我的终端中,并且绘图/图形函数作为小窗口弹出,耐心地等待您关闭它们以便可以继续执行。

我已经尝试按照此处包含的建议修复我的 octave 安装,以防万一出现问题,但这并没有解决我的问题。

加载 octave GUI 并将脚本放入命令行窗口会引发相同的错误。

任何可以帮助我以这种方式从命令行使用 octave 的信息将不胜感激。

编辑1:响应评论请求apt-cache policy octave:

octave:
  Installed: 4.2.2-1ubuntu1
  Candidate: 4.2.2-1ubuntu1
  Version table:
 *** 4.2.2-1ubuntu1 500
        500 http://us.archive.ubuntu.com/ubuntu bionic/universe amd64 Packages
        100 /var/lib/dpkg/status

编辑2:响应评论请求dpkg -l | grep octave:

ii  liboctave4:amd64  4.2.2-1ubuntu1  amd64  shared libraries of the GNU Octave language
ii  octave            4.2.2-1ubuntu1  amd64  GNU Octave language for numerical computations
ii  octave-common     4.2.2-1ubuntu1  all    architecture-independent files for octave
ii  octave-doc        4.2.2-1ubuntu1  all    documentation of the GNU Octave language
command-line octave 18.04
  • 1 个回答
  • 1834 Views
Martin Hope
user1717552
Asked: 2018-04-16 14:24:17 +0800 CST

八度命令窗口显示不可读的文本[重复]

  • 6
这个问题在这里已经有了答案:
八度显示错误,非常小的字体 1 个回答
4年前关闭。

当我启动 Octave 时,在命令窗口中我看到:

八度命令窗口

但是,在我运行一些命令之后,我可以看到它们在历史记录中并且它们确实执行了。如果我将其复制粘贴到某处,我可以看到文本。

如何使命令窗口文本可见?

octave
  • 1 个回答
  • 1560 Views

Sidebar

Stats

  • 问题 205573
  • 回答 270741
  • 最佳答案 135370
  • 用户 68524
  • 热门
  • 回答
  • Marko Smith

    如何运行 .sh 脚本?

    • 16 个回答
  • Marko Smith

    如何安装 .tar.gz(或 .tar.bz2)文件?

    • 14 个回答
  • Marko Smith

    如何列出所有已安装的软件包

    • 24 个回答
  • Marko Smith

    无法锁定管理目录 (/var/lib/dpkg/) 是另一个进程在使用它吗?

    • 25 个回答
  • Martin Hope
    Flimm 如何在没有 sudo 的情况下使用 docker? 2014-06-07 00:17:43 +0800 CST
  • Martin Hope
    Ivan 如何列出所有已安装的软件包 2010-12-17 18:08:49 +0800 CST
  • Martin Hope
    La Ode Adam Saputra 无法锁定管理目录 (/var/lib/dpkg/) 是另一个进程在使用它吗? 2010-11-30 18:12:48 +0800 CST
  • Martin Hope
    David Barry 如何从命令行确定目录(文件夹)的总大小? 2010-08-06 10:20:23 +0800 CST
  • Martin Hope
    jfoucher “以下软件包已被保留:”为什么以及如何解决? 2010-08-01 13:59:22 +0800 CST
  • Martin Hope
    David Ashford 如何删除 PPA? 2010-07-30 01:09:42 +0800 CST

热门标签

10.10 10.04 gnome networking server command-line package-management software-recommendation sound xorg

Explore

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve