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 / 问题 / 1207353
Accepted
Soheil Paper
Soheil Paper
Asked: 2020-02-02 08:05:09 +0800 CST2020-02-02 08:05:09 +0800 CST 2020-02-02 08:05:09 +0800 CST

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

  • 772

我需要通过 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 1 个回答
  • 3019 Views

1 个回答

  • Voted
  1. Best Answer
    N0rbert
    2020-02-03T00:05:28+08:002020-02-03T00:05:28+08:00

    我建议在您的主目录中编译代码:

    cd ~/Downloads
    wget https://physionet.org/physiotools/wfdb.tar.gz
    tar -xf wfdb.tar.gz
    cd wfdb-10.6.2
    ./configure
    make
    sudo make install
    

    因为它将/usr/local顺便安装。

    • 1

相关问题

  • 如何在没有 root 访问权限的情况下安装软件包?

  • 设置 LAMP 堆栈的最简单方法是什么?

  • 我应该在哪里安装 sagemath?

  • How do I install Adobe Flash player?对于 11.10 及更高版本明确修复 11.10 上的 64 位 Flash

  • 如何设置软件中心为非 root 用户安装软件?

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